符合性流程-发消息内容-截止日期错误问题修改。
This commit is contained in:
+8
-8
@@ -168,15 +168,15 @@ public class PrehomoJob implements Job {
|
||||
}
|
||||
}
|
||||
//如果prehomo - 结束日期是一周后的日期
|
||||
if(StringUtils.equals(oneWeekLaterDaysStr,sdf.format(projectLawsInventoryEO.getDesignDueDate()))){
|
||||
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getDesignDutyId())){
|
||||
oneWeeksLaterUserIdList.add(projectLawsInventoryEO.getDesignDutyId());
|
||||
if(StringUtils.equals(oneWeekLaterDaysStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))){
|
||||
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getPrehomoDutyId())){
|
||||
oneWeeksLaterUserIdList.add(projectLawsInventoryEO.getPrehomoDutyId());
|
||||
}
|
||||
}
|
||||
//如果prehomo - 逾期后每天通知
|
||||
if (!StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))&&projectLawsInventoryEO.getDesignDueDate().before(currentDate)) {
|
||||
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getDesignDutyId())){
|
||||
dueUserIdList.add(projectLawsInventoryEO.getDesignDutyId());
|
||||
if (!StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))&&projectLawsInventoryEO.getPrehomoDueDate().before(currentDate)) {
|
||||
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getPrehomoDutyId())){
|
||||
dueUserIdList.add(projectLawsInventoryEO.getPrehomoDutyId());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,12 +202,12 @@ public class PrehomoJob implements Job {
|
||||
feishuMsgVo.setCnContentLower("项目: " + projectName +
|
||||
"\n法规: " + LAW_CN +
|
||||
"\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.setEnContentLower("Project: " + projectName +
|
||||
"\nRegulation No: " + LAW_EN +
|
||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()+
|
||||
"\nDue Date: "+ sdf.format(projectLawsInventoryEO.getDesignDueDate()));
|
||||
"\nDue Date: "+ sdf.format(projectLawsInventoryEO.getPrehomoDueDate()));
|
||||
feishuMsgVo.setUrl(hrefFeishu);
|
||||
feishuMsgVo.setColor(MsgColorEnum.YELLOW.getValue()); // 颜色
|
||||
feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo);
|
||||
|
||||
+2
-2
@@ -201,12 +201,12 @@ public class VerifyComplianceJob implements Job {
|
||||
feishuMsgVo.setCnContentLower("项目: " + projectName +
|
||||
"\n法规: " + LAW_CN +
|
||||
"\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.setEnContentLower("Project: " + projectName +
|
||||
"\nRegulation No: " + LAW_EN +
|
||||
"\nInitiator: " + MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()+
|
||||
"\nDue Date: "+ sdf.format(projectLawsInventoryEO.getDesignDueDate()));
|
||||
"\nDue Date: "+ sdf.format(projectLawsInventoryEO.getVerifyDueDate()));
|
||||
feishuMsgVo.setUrl(hrefFeishu);
|
||||
feishuMsgVo.setColor(MsgColorEnum.YELLOW.getValue()); // 颜色
|
||||
feishuService.sendCard(thirdIdList.toArray(new String[thirdIdList.size()]), feishuMsgVo);
|
||||
|
||||
+2
-2
@@ -3206,12 +3206,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
cnContentLower = "项目: " + PRN +
|
||||
"\n法规: " + LAW_CN +
|
||||
"\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";
|
||||
enContentLower = "Project: " + PRN +
|
||||
"\nRegulation No: " + LAW_EN +
|
||||
"\nInitiator: " + sysUser.getUsername() +
|
||||
"\nDue Date: " + sdf.format(projectLawsInventoryEO.getVerifyDueDate());
|
||||
"\nDue Date: " + sdf.format(projectLawsInventoryEO.getPrehomoDueDate());
|
||||
color = MsgColorEnum.GREEN.getValue();
|
||||
|
||||
//feishuMsgVo.setAssignee(sysUser.getUsername());
|
||||
|
||||
Reference in New Issue
Block a user