|
@@ -414,11 +414,11 @@ public class EarlyWarningInstanceNotStartTask { |
|
|
for(ProjectRenewalFundDeclaration needToWaringProject : needToWaringProjects){ |
|
|
for(ProjectRenewalFundDeclaration needToWaringProject : needToWaringProjects){ |
|
|
Project project = projectService.getProjectByCode(needToWaringProject.getProjectCode()); |
|
|
Project project = projectService.getProjectByCode(needToWaringProject.getProjectCode()); |
|
|
//去预警通知 发给区管 |
|
|
//去预警通知 发给区管 |
|
|
List<UserInfo> users = roleManage.getUsersByRoleType(RoleEnum.REGION_MANAGER.name()); |
|
|
|
|
|
|
|
|
List<UserInfo> users = roleManage.getUsersByRoleType(RoleEnum.REGION_MANAGER.name(),needToWaringProject.getRegionCode()); |
|
|
for(UserInfo user : users){ |
|
|
for(UserInfo user : users){ |
|
|
earlyWarningManage.doEarlyWarning(noticeMethod,noticeContent,time,null, |
|
|
earlyWarningManage.doEarlyWarning(noticeMethod,noticeContent,time,null, |
|
|
needToWaringProject.getUpdateOn(),user.getEmployeeCode(),project, |
|
|
needToWaringProject.getUpdateOn(),user.getEmployeeCode(),project, |
|
|
WarningRuleTypeEnum.OPERATION_WARNING.getCode()); |
|
|
|
|
|
|
|
|
WarningRuleTypeEnum.RENEWAL_FUND.getCode()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|