符合性流程-发消息内容-截止日期错误问题修改。

This commit is contained in:
wangzhijiang
2023-02-16 11:55:22 +08:00
parent 3504521f66
commit d7a3e26494
3 changed files with 12 additions and 12 deletions
@@ -168,15 +168,15 @@ public class PrehomoJob implements Job {
} }
} }
//如果prehomo - 结束日期是一周后的日期 //如果prehomo - 结束日期是一周后的日期
if(StringUtils.equals(oneWeekLaterDaysStr,sdf.format(projectLawsInventoryEO.getDesignDueDate()))){ if(StringUtils.equals(oneWeekLaterDaysStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))){
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getDesignDutyId())){ if(StringUtils.isNotEmpty(projectLawsInventoryEO.getPrehomoDutyId())){
oneWeeksLaterUserIdList.add(projectLawsInventoryEO.getDesignDutyId()); oneWeeksLaterUserIdList.add(projectLawsInventoryEO.getPrehomoDutyId());
} }
} }
//如果prehomo - 逾期后每天通知 //如果prehomo - 逾期后每天通知
if (!StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))&&projectLawsInventoryEO.getDesignDueDate().before(currentDate)) { if (!StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))&&projectLawsInventoryEO.getPrehomoDueDate().before(currentDate)) {
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getDesignDutyId())){ if(StringUtils.isNotEmpty(projectLawsInventoryEO.getPrehomoDutyId())){
dueUserIdList.add(projectLawsInventoryEO.getDesignDutyId()); dueUserIdList.add(projectLawsInventoryEO.getPrehomoDutyId());
} }
} }
} }
@@ -202,12 +202,12 @@ public class PrehomoJob implements Job {
feishuMsgVo.setCnContentLower("项目: " + projectName + feishuMsgVo.setCnContentLower("项目: " + projectName +
"\n法规: " + LAW_CN + "\n法规: " + LAW_CN +
"\n发起人: 系统通知"+ "\n发起人: 系统通知"+
"\n截止时间: "+ sdf.format(projectLawsInventoryEO.getDesignDueDate())); "\n截止时间: "+ sdf.format(projectLawsInventoryEO.getPrehomoDueDate()));
feishuMsgVo.setEnContentUpper("Hello! Your task is overdue. Please check and address it ASAP"); feishuMsgVo.setEnContentUpper("Hello! Your task is overdue. Please check and address it ASAP");
feishuMsgVo.setEnContentLower("Project: " + projectName + feishuMsgVo.setEnContentLower("Project: " + projectName +
"\nRegulation No: " + LAW_EN + "\nRegulation No: " + LAW_EN +
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()+ "\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()+
"\nDue Date: "+ sdf.format(projectLawsInventoryEO.getDesignDueDate())); "\nDue Date: "+ sdf.format(projectLawsInventoryEO.getPrehomoDueDate()));
feishuMsgVo.setUrl(hrefFeishu); feishuMsgVo.setUrl(hrefFeishu);
feishuMsgVo.setColor(MsgColorEnum.YELLOW.getValue()); // 颜色 feishuMsgVo.setColor(MsgColorEnum.YELLOW.getValue()); // 颜色
feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo); feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo);
@@ -201,12 +201,12 @@ public class VerifyComplianceJob implements Job {
feishuMsgVo.setCnContentLower("项目: " + projectName + feishuMsgVo.setCnContentLower("项目: " + projectName +
"\n法规: " + LAW_CN + "\n法规: " + LAW_CN +
"\n发起人: 系统通知"+ "\n发起人: 系统通知"+
"\n截止时间: "+ sdf.format(projectLawsInventoryEO.getDesignDueDate())); "\n截止时间: "+ sdf.format(projectLawsInventoryEO.getVerifyDueDate()));
feishuMsgVo.setEnContentUpper("Hello! Your task is overdue. Please check and address it ASAP"); feishuMsgVo.setEnContentUpper("Hello! Your task is overdue. Please check and address it ASAP");
feishuMsgVo.setEnContentLower("Project: " + projectName + feishuMsgVo.setEnContentLower("Project: " + projectName +
"\nRegulation No: " + LAW_EN + "\nRegulation No: " + LAW_EN +
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()+ "\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()+
"\nDue Date: "+ sdf.format(projectLawsInventoryEO.getDesignDueDate())); "\nDue Date: "+ sdf.format(projectLawsInventoryEO.getVerifyDueDate()));
feishuMsgVo.setUrl(hrefFeishu); feishuMsgVo.setUrl(hrefFeishu);
feishuMsgVo.setColor(MsgColorEnum.YELLOW.getValue()); // 颜色 feishuMsgVo.setColor(MsgColorEnum.YELLOW.getValue()); // 颜色
feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo); feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo);
@@ -3206,12 +3206,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
cnContentLower = "项目: " + PRN + cnContentLower = "项目: " + PRN +
"\n法规: " + LAW_CN + "\n法规: " + LAW_CN +
"\n发起人: " + sysUser.getUsername() + "\n发起人: " + sysUser.getUsername() +
"\n截止时间: " + sdf.format(projectLawsInventoryEO.getVerifyDueDate()); "\n截止时间: " + sdf.format(projectLawsInventoryEO.getPrehomoDueDate());
enContentUpper = "Hello! "+ sysUser.getUsername() +" has completed the task. Please check and review it"; enContentUpper = "Hello! "+ sysUser.getUsername() +" has completed the task. Please check and review it";
enContentLower = "Project: " + PRN + enContentLower = "Project: " + PRN +
"\nRegulation No: " + LAW_EN + "\nRegulation No: " + LAW_EN +
"\nInitiator: " + sysUser.getUsername() + "\nInitiator: " + sysUser.getUsername() +
"\nDue Date: " + sdf.format(projectLawsInventoryEO.getVerifyDueDate()); "\nDue Date: " + sdf.format(projectLawsInventoryEO.getPrehomoDueDate());
color = MsgColorEnum.GREEN.getValue(); color = MsgColorEnum.GREEN.getValue();
//feishuMsgVo.setAssignee(sysUser.getUsername()); //feishuMsgVo.setAssignee(sysUser.getUsername());