|
|
@ -87,7 +87,7 @@ public class MaintenanceTaskRemindHandler { |
|
|
|
XxlJobLogger.log(taskEntity.getId() +"执行人消息推送失败!"); |
|
|
|
XxlJobLogger.log(taskEntity.getId() +"执行人消息推送失败!"); |
|
|
|
} |
|
|
|
} |
|
|
|
// 任务执行人发送短信
|
|
|
|
// 任务执行人发送短信
|
|
|
|
R<List<User>> listR = userClient.relationUserListByRoleAlias(CommonConstant.TENANT_ID, taskEntity.getCreateDept(), RoleAliasConstants.PROJECT_MANAGER); |
|
|
|
R<List<User>> listR = userClient.queryUserByRoleAlias(CommonConstant.TENANT_ID, taskEntity.getCreateDept(), RoleAliasConstants.PROJECT_MANAGER); |
|
|
|
if(listR.isSuccess()) { |
|
|
|
if(listR.isSuccess()) { |
|
|
|
request.setUserIds(listR.getData().stream().map(User::getId).map(String::valueOf).collect(Collectors.joining(","))); |
|
|
|
request.setUserIds(listR.getData().stream().map(User::getId).map(String::valueOf).collect(Collectors.joining(","))); |
|
|
|
request.setContent("有一条待执行的日常维护任务【"+taskEntity.getTitle()+"】即将于"+ DateUtil.format(taskEntity.getPlanEndTime(),DateUtil.PATTERN_DATETIME) +"过期,请确认。"); |
|
|
|
request.setContent("有一条待执行的日常维护任务【"+taskEntity.getTitle()+"】即将于"+ DateUtil.format(taskEntity.getPlanEndTime(),DateUtil.PATTERN_DATETIME) +"过期,请确认。"); |
|
|
|