流程发送消息-定时器统一修改

This commit is contained in:
wangzhijiang
2022-05-31 09:36:10 +08:00
parent dcd334f5e8
commit ff93603d5a
4 changed files with 85 additions and 75 deletions
@@ -89,6 +89,7 @@ public class InventoryAffirmJob implements Job {
for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) { for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) {
if(StringUtils.equals(projectLibraryBase.getId(),projectLawsInventoryEO.getProjectLibraryId())){ if(StringUtils.equals(projectLibraryBase.getId(),projectLawsInventoryEO.getProjectLibraryId())){
if(projectLawsInventoryEO.getInventoryAffirmDueDate() != null){
//如果清单确认结束日期是当前日期 //如果清单确认结束日期是当前日期
if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getInventoryAffirmDueDate()))){ if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getInventoryAffirmDueDate()))){
if(StringUtils.isEmpty(projectLawsInventoryEO.getSendMsgFlag())){ if(StringUtils.isEmpty(projectLawsInventoryEO.getSendMsgFlag())){
@@ -116,6 +117,7 @@ public class InventoryAffirmJob implements Job {
} }
} }
} }
}
if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){ if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){
threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList()); threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList());
@@ -97,6 +97,7 @@ public class PrehomoJob implements Job {
for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) { for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) {
if(StringUtils.equals(projectTaskInventoryEO.getProjectLawsInventoryId(),projectLawsInventoryEO.getId())){ if(StringUtils.equals(projectTaskInventoryEO.getProjectLawsInventoryId(),projectLawsInventoryEO.getId())){
if(projectLawsInventoryEO.getPrehomoDueDate() != null){
//如果prehomo - 结束日期是当前日期 //如果prehomo - 结束日期是当前日期
if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))){ if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getPrehomoDueDate()))){
if(StringUtils.isEmpty(projectTaskInventoryEO.getPrehomoSendMsgFlag())){ if(StringUtils.isEmpty(projectTaskInventoryEO.getPrehomoSendMsgFlag())){
@@ -123,6 +124,7 @@ public class PrehomoJob implements Job {
} }
} }
} }
}
if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){ if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){
threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList()); threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList());
@@ -97,6 +97,7 @@ public class VerifyComplianceJob implements Job {
for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) { for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) {
if(StringUtils.equals(projectTaskInventoryEO.getProjectLawsInventoryId(),projectLawsInventoryEO.getId())){ if(StringUtils.equals(projectTaskInventoryEO.getProjectLawsInventoryId(),projectLawsInventoryEO.getId())){
if(projectLawsInventoryEO.getVerifyDueDate() != null){
//如果验证符合性 - 结束日期是当前日期 //如果验证符合性 - 结束日期是当前日期
if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getVerifyDueDate()))){ if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getVerifyDueDate()))){
if(StringUtils.isEmpty(projectTaskInventoryEO.getVerifySendMsgFlag())){ if(StringUtils.isEmpty(projectTaskInventoryEO.getVerifySendMsgFlag())){
@@ -123,6 +124,7 @@ public class VerifyComplianceJob implements Job {
} }
} }
} }
}
if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){ if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){
threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList()); threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList());
@@ -95,6 +95,7 @@ public class designComplianceJob implements Job {
for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) { for (ProjectTaskInventoryEO projectTaskInventoryEO : projectTaskInventoryEOList) {
if(StringUtils.equals(projectTaskInventoryEO.getProjectLawsInventoryId(),projectLawsInventoryEO.getId())){ if(StringUtils.equals(projectTaskInventoryEO.getProjectLawsInventoryId(),projectLawsInventoryEO.getId())){
//如果设计符合性 - 结束日期是当前日期 //如果设计符合性 - 结束日期是当前日期
if(projectLawsInventoryEO.getDesignDueDate() != null){
if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getDesignDueDate()))){ if(StringUtils.equals(currentDateStr,sdf.format(projectLawsInventoryEO.getDesignDueDate()))){
if(StringUtils.isEmpty(projectTaskInventoryEO.getDesignSendMsgFlag())){ if(StringUtils.isEmpty(projectTaskInventoryEO.getDesignSendMsgFlag())){
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getDesignDutyId())){ if(StringUtils.isNotEmpty(projectLawsInventoryEO.getDesignDutyId())){
@@ -106,6 +107,7 @@ public class designComplianceJob implements Job {
projectTaskInventoryEOService.updateById(projectTaskInventoryEO); projectTaskInventoryEOService.updateById(projectTaskInventoryEO);
} }
} }
//如果设计符合性 - 结束日期是三天后的日期 //如果设计符合性 - 结束日期是三天后的日期
if(StringUtils.equals(threeDaysStr,sdf.format(projectLawsInventoryEO.getDesignDueDate()))){ if(StringUtils.equals(threeDaysStr,sdf.format(projectLawsInventoryEO.getDesignDueDate()))){
if(StringUtils.isEmpty(projectTaskInventoryEO.getDesignSendMsgCurrentFlag())){ if(StringUtils.isEmpty(projectTaskInventoryEO.getDesignSendMsgCurrentFlag())){
@@ -119,6 +121,8 @@ public class designComplianceJob implements Job {
} }
} }
} }
}
} }
if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){ if(CollectionUtils.isNotEmpty(threeDaysUserIdList)){
threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList()); threeDaysUserIdList = threeDaysUserIdList.stream().distinct().collect(Collectors.toList());