@Service public class SignServiceImpl extends Object implements SignService
Constructor and Description |
---|
SignServiceImpl(SignDao signDao,
TaskDao taskDao,
GroupDao groupDao,
LabelDao labelDao,
UserDao userDao,
ExcelWorkBookFactory excelWorkBookFactory) |
Modifier and Type | Method and Description |
---|---|
Long |
addOneSign(Long creatorId,
Long aimGroupId,
Date startTime,
Date limitTime,
String title,
Long labelId,
List<Long> userIdList)
群相关负责人主动发起一次签到
|
void |
clockRecordOutPutExcel(Long userId,
UserIdentityEnum userIdentityEnum,
Long groupId,
List<Long> executorIdList,
List<Long> signIdList,
javax.servlet.http.HttpServletResponse response)
群组内部分人员的签到信息Excel表格导出
|
List<TaskEnt> |
listExecutorFinishProgressInSpecialSign(Long userId,
Long executorId,
List<Long> signIdList,
UserIdentityEnum userIdentity)
查询某一签到者在特定的几个签到中的完成情况
|
List<TaskEnt> |
listExecutorTask(Long userId,
Integer pageNum,
Integer pageSize)
查询用户相关的签到任务实体(详细)
|
List<SignEnt> |
listSignEntOfIssuedFromUser(Long userId,
Integer pageNum,
Integer pageSize)
查询用户发起的签到列表(详细)
|
List<TaskEnt> |
listSignFinishProgress(Long userId,
UserIdentityEnum userIdentity,
Long signId)
用户查看自己发起的某一次签到的完成进度(用户仅仅可以看到自己发起的签到,管理员身份也可以查看别人的签到)
|
List<SignEnt> |
listSignRecord(Long userId,
Long groupId,
Date from,
Date until,
Integer pageNum,
Integer pageSize)
查询用户在某一群组中的发起签到记录
|
@Transactional(rollbackFor=java.lang.Exception.class) public Long addOneSign(Long creatorId, Long aimGroupId, Date startTime, Date limitTime, String title, Long labelId, List<Long> userIdList)
addOneSign
in interface SignService
creatorId
- 签到发起者aimGroupId
- 发起群组startTime
- 签到开始时间limitTime
- 签到截止时间title
- 签到标题labelId
- 绑定的签到标签IduserIdList
- 签到用户Id列表public List<SignEnt> listSignEntOfIssuedFromUser(Long userId, Integer pageNum, Integer pageSize)
listSignEntOfIssuedFromUser
in interface SignService
userId
- 用户IdpageNum
- 页码号pageSize
- 页容量public List<TaskEnt> listExecutorTask(Long userId, Integer pageNum, Integer pageSize)
listExecutorTask
in interface SignService
userId
- 用户IdpageNum
- 页码号pageSize
- 页容量public List<TaskEnt> listSignFinishProgress(Long userId, UserIdentityEnum userIdentity, Long signId)
listSignFinishProgress
in interface SignService
userId
- 用户IduserIdentity
- 用户身份signId
- 用户要查看的签到Idpublic List<TaskEnt> listExecutorFinishProgressInSpecialSign(Long userId, Long executorId, List<Long> signIdList, UserIdentityEnum userIdentity)
listExecutorFinishProgressInSpecialSign
in interface SignService
userId
- 请求者executorId
- 被调查者signIdList
- 签到ID列表userIdentity
- 用户身份权限public List<SignEnt> listSignRecord(Long userId, Long groupId, Date from, Date until, Integer pageNum, Integer pageSize)
listSignRecord
in interface SignService
userId
- 用户IdgroupId
- 查询的群组Idfrom
- 开始时间until
- 截止时间(默认是现在)pageNum
- 页码号pageSize
- 页容量public void clockRecordOutPutExcel(Long userId, UserIdentityEnum userIdentityEnum, Long groupId, List<Long> executorIdList, List<Long> signIdList, javax.servlet.http.HttpServletResponse response)
clockRecordOutPutExcel
in interface SignService
userId
- 用户IduserIdentityEnum
- 用户身份groupId
- 群组IdexecutorIdList
- 签到者Id列表signIdList
- 签到Id列表response
- HttpServletResponseCopyright © 2022. All rights reserved.