Merge branch 'master' into docker_package
This commit is contained in:
commit
1669dc52ff
|
@ -74,7 +74,7 @@ public class TRemindersController {
|
|||
public Result save(@RequestBody TRemindersDTO dto) {
|
||||
UserDetail user = SecurityUser.getUser();
|
||||
SysUserDTO userDTO = sysUserService.get(user.getId());
|
||||
dto.setRecipient(userDTO);
|
||||
dto.setSponsor(userDTO);
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
tRemindersService.save(dto);
|
||||
|
|
|
@ -83,6 +83,7 @@ public class TRemindersServiceImpl extends CrudServiceImpl<TRemindersDao, TRemin
|
|||
dto.setProcessType(processInstanceDTO.getProcessVariables().getOrDefault("flowType", "未知流程").toString());
|
||||
}
|
||||
Task task = taskService.createTaskQuery().taskId(dto.getProcessTaskId().toString()).includeProcessVariables().singleResult();
|
||||
logger.info("该任务对应审核人:" + task.getAssignee());
|
||||
if (StringUtils.isNumeric(task.getAssignee())) { // 对审核人发消息
|
||||
Optional<SysUserDTO> assignee = Optional.ofNullable(sysUserService.get(Long.parseLong(task.getAssignee()))); // 获取审批人
|
||||
dto.setRecipient(assignee.get());
|
||||
|
|
Loading…
Reference in New Issue