diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningInstanceNotStartTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningInstanceNotStartTask.java index 274310c..08a9242 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningInstanceNotStartTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningInstanceNotStartTask.java @@ -231,7 +231,8 @@ public class EarlyWarningInstanceNotStartTask { List noticeTypes = noticeMap.get(needToWaringProject.getProjectCode()); for(Integer noticeType : noticeTypes) { for (String employeeCode : batchEmployees) { - earlyWarningManage.doEarlyWarning(noticeMethod, Objects.nonNull(noticeType) && noticeType.equals(1) ? noticeContent : adventContent, time, biz, + earlyWarningManage.doEarlyWarning(noticeMethod, Objects.nonNull(noticeType) && noticeType.equals(1) ? noticeContent : adventContent, + Objects.nonNull(noticeType) && noticeType.equals(1) ? time : adventTime, biz, needToWaringProject.getUpdateOn(),employeeCode, needToWaringProject, WarningRuleTypeEnum.DECLARED_WARNING.getCode(), noticeType, path, batchEmployeesStr,null); } @@ -383,7 +384,8 @@ public class EarlyWarningInstanceNotStartTask { if(noticeMap.containsKey(needToWaringProject.getProjectCode())){ List noticeTypes = noticeMap.get(needToWaringProject.getProjectCode()); for(Integer noticeType : noticeTypes){ - earlyWarningManage.doEarlyWarning(noticeMethod,Objects.nonNull(noticeType)&¬iceType.equals(1) ? noticeContent : adventContent,time,biz, + earlyWarningManage.doEarlyWarning(noticeMethod,Objects.nonNull(noticeType)&¬iceType.equals(1) ? noticeContent : adventContent, + Objects.nonNull(noticeType) && noticeType.equals(1) ? time : adventTime,biz, needToWaringProject.getUpdateOn(),employeeCode,needToWaringProject, WarningRuleTypeEnum.OPERATION_WARNING.getCode(),noticeType,path,employeeCode,null); } @@ -498,7 +500,8 @@ public class EarlyWarningInstanceNotStartTask { if(noticeTypeMap.containsKey(needToWaringProject.getProjectCode())){ List noticeTypes = noticeTypeMap.get(needToWaringProject.getProjectCode()); for(Integer noticeType : noticeTypes){ - earlyWarningManage.doEarlyWarning(noticeMethod,Objects.nonNull(noticeType)&¬iceType.equals(1) ? noticeContent : adventContent,time,null, + earlyWarningManage.doEarlyWarning(noticeMethod,Objects.nonNull(noticeType)&¬iceType.equals(1) ? noticeContent : adventContent, + Objects.nonNull(noticeType) && noticeType.equals(1) ? time : adventTime,null, needToWaringProject.getUpdateOn(),user.getEmployeeCode(),project, WarningRuleTypeEnum.RENEWAL_FUND.getCode(),noticeType,path,employeesStr,needToWaringProject.getId().toString()); }