|
|
@ -342,8 +342,8 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
String userName = ""; |
|
|
|
String userName = ""; |
|
|
|
PushExtrasReq req = new PushExtrasReq(); |
|
|
|
PushExtrasReq req = new PushExtrasReq(); |
|
|
|
log.info("--------------------------req:" + req, groupEntityManagerId, userName, date); |
|
|
|
log.info("--------------------------req:" + req, groupEntityManagerId, userName, date); |
|
|
|
if (ObjectUtil.isNotEmpty(userR.getData()) && StringUtil.isNotBlank(userR.getData().getName())) { |
|
|
|
if (ObjectUtil.isNotEmpty(userR.getData()) && StringUtil.isNotBlank(userR.getData().getRealName())) { |
|
|
|
userName = userR.getData().getName(); |
|
|
|
userName = userR.getData().getRealName(); |
|
|
|
log.info("--------------------------req2:" + req, groupEntityManagerId, userName, date); |
|
|
|
log.info("--------------------------req2:" + req, groupEntityManagerId, userName, date); |
|
|
|
} |
|
|
|
} |
|
|
|
String format = DateUtil.format(date, PATTERN_DATETIME); |
|
|
|
String format = DateUtil.format(date, PATTERN_DATETIME); |
|
|
@ -552,11 +552,11 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
} |
|
|
|
} |
|
|
|
ImsSchedulingVo imsSchedulingVo = imsDutyMainServiceImpl.getByIdOneV2(entity.getId(), null);//交班人
|
|
|
|
ImsSchedulingVo imsSchedulingVo = imsDutyMainServiceImpl.getByIdOneV2(entity.getId(), null);//交班人
|
|
|
|
if (ObjectUtil.isNotEmpty(imsSchedulingVo)&&null != imsSchedulingVo.getManagerId()) { |
|
|
|
if (ObjectUtil.isNotEmpty(imsSchedulingVo)&&null != imsSchedulingVo.getManagerId()) { |
|
|
|
imsSchedulingVo.setUserName(userClient.userInfoById(imsSchedulingVo.getManagerId()).getData().getName()); |
|
|
|
imsSchedulingVo.setUserName(userClient.userInfoById(imsSchedulingVo.getManagerId()).getData().getRealName()); |
|
|
|
} |
|
|
|
} |
|
|
|
ImsSchedulingVo imsSchedulingVo1 = imsDutyMainServiceImpl.getByIdOneV2(null, entity.getId()); |
|
|
|
ImsSchedulingVo imsSchedulingVo1 = imsDutyMainServiceImpl.getByIdOneV2(null, entity.getId()); |
|
|
|
if (ObjectUtil.isNotEmpty(imsSchedulingVo1)&&null != imsSchedulingVo1.getManagerId()) { |
|
|
|
if (ObjectUtil.isNotEmpty(imsSchedulingVo1)&&null != imsSchedulingVo1.getManagerId()) { |
|
|
|
imsSchedulingVo1.setUserName(userClient.userInfoById(imsSchedulingVo1.getManagerId()).getData().getName()); |
|
|
|
imsSchedulingVo1.setUserName(userClient.userInfoById(imsSchedulingVo1.getManagerId()).getData().getRealName()); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
throw new ServiceException("没有找到接班对象值班信息,请联系管理人员,尽快进行排班!!!!"); |
|
|
|
throw new ServiceException("没有找到接班对象值班信息,请联系管理人员,尽快进行排班!!!!"); |
|
|
|
} |
|
|
|
} |
|
|
@ -773,7 +773,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
if (ObjectUtil.isNotEmpty(groupEntityManagerId) && ObjectUtil.isNotEmpty(classEntity)) { |
|
|
|
if (ObjectUtil.isNotEmpty(groupEntityManagerId) && ObjectUtil.isNotEmpty(classEntity)) { |
|
|
|
String userName = ""; |
|
|
|
String userName = ""; |
|
|
|
if (null != groupEntityManagerId) { |
|
|
|
if (null != groupEntityManagerId) { |
|
|
|
userName = userClient.userInfoById(groupEntityManagerId).getData().getName(); |
|
|
|
userName = userClient.userInfoById(groupEntityManagerId).getData().getRealName(); |
|
|
|
} |
|
|
|
} |
|
|
|
PushExtrasReq req = new PushExtrasReq(); |
|
|
|
PushExtrasReq req = new PushExtrasReq(); |
|
|
|
if (null != entity.getPreDutyId()) { |
|
|
|
if (null != entity.getPreDutyId()) { |
|
|
@ -834,7 +834,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
remondingCarryV2(carryMainentity.getDutyDate(),2, carryManagerId, user.getData().getName(), classEntity, null, carryTenantId, carryCreateDept, carryMainentity.getId(), carryMainentity.getCreateUser());//提醒接班人
|
|
|
|
remondingCarryV2(carryMainentity.getDutyDate(),2, carryManagerId, user.getData().getRealName(), classEntity, null, carryTenantId, carryCreateDept, carryMainentity.getId(), carryMainentity.getCreateUser());//提醒接班人
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1157,7 +1157,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
messagePushRecordDto.setTaskId(taskId); |
|
|
|
messagePushRecordDto.setTaskId(taskId); |
|
|
|
messagePushRecordDto.setTenantId(tenantId); |
|
|
|
messagePushRecordDto.setTenantId(tenantId); |
|
|
|
messagePushRecordDto.setPusher(admin.getId().toString()); |
|
|
|
messagePushRecordDto.setPusher(admin.getId().toString()); |
|
|
|
messagePushRecordDto.setPusherName(admin.getName()); |
|
|
|
messagePushRecordDto.setPusherName(admin.getRealName()); |
|
|
|
messagePushRecordDto.setAccount(admin.getId().toString()); |
|
|
|
messagePushRecordDto.setAccount(admin.getId().toString()); |
|
|
|
messagePushRecordDto.setContent(" 负责人"+userName + datyTime+ "("+classEntity.getStartTime() |
|
|
|
messagePushRecordDto.setContent(" 负责人"+userName + datyTime+ "("+classEntity.getStartTime() |
|
|
|
+ "-" + classEntity.getEndTime()+")"+" 的值班,目前已交班延迟,请尽快联系该负责人进行交班工作!"); |
|
|
|
+ "-" + classEntity.getEndTime()+")"+" 的值班,目前已交班延迟,请尽快联系该负责人进行交班工作!"); |
|
|
@ -1620,7 +1620,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
ImsDutyGroupEntity groupEntity = imsDutyGroupService.getById(dutyGroupId); |
|
|
|
ImsDutyGroupEntity groupEntity = imsDutyGroupService.getById(dutyGroupId); |
|
|
|
User manager = UserCache.getUser(groupEntity.getManagerId()); |
|
|
|
User manager = UserCache.getUser(groupEntity.getManagerId()); |
|
|
|
if (cn.hutool.core.util.ObjectUtil.isNotEmpty(manager)){ |
|
|
|
if (cn.hutool.core.util.ObjectUtil.isNotEmpty(manager)){ |
|
|
|
managerName=manager.getName(); |
|
|
|
managerName=manager.getRealName(); |
|
|
|
} |
|
|
|
} |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
ImsDutyMainPersonEntity dutyMainPerson = imsDutyMainPersonService.getOne(new LambdaQueryWrapper<ImsDutyMainPersonEntity>() {{ |
|
|
|
ImsDutyMainPersonEntity dutyMainPerson = imsDutyMainPersonService.getOne(new LambdaQueryWrapper<ImsDutyMainPersonEntity>() {{ |
|
|
@ -1629,7 +1629,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
User manager = UserCache.getUser(dutyMainPerson.getDutyChargePerson()); |
|
|
|
User manager = UserCache.getUser(dutyMainPerson.getDutyChargePerson()); |
|
|
|
if (cn.hutool.core.util.ObjectUtil.isNotEmpty(manager)){ |
|
|
|
if (cn.hutool.core.util.ObjectUtil.isNotEmpty(manager)){ |
|
|
|
managerName=manager.getName(); |
|
|
|
managerName=manager.getRealName(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return managerName; |
|
|
|
return managerName; |
|
|
@ -1643,9 +1643,9 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
User user = UserCache.getUser(Long.valueOf(split[j])); |
|
|
|
User user = UserCache.getUser(Long.valueOf(split[j])); |
|
|
|
if (org.springblade.core.tool.utils.ObjectUtil.isNotEmpty(user)) { |
|
|
|
if (org.springblade.core.tool.utils.ObjectUtil.isNotEmpty(user)) { |
|
|
|
if (j == split.length - 1) { |
|
|
|
if (j == split.length - 1) { |
|
|
|
handNumber= handNumber + user.getName(); |
|
|
|
handNumber= handNumber + user.getRealName(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
handNumber= handNumber + user.getName()+ "、"; |
|
|
|
handNumber= handNumber + user.getRealName()+ "、"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|