Browse Source

预警项目状态变更任务修改

tags/24090101
CMM 2 months ago
parent
commit
b78777f712
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      hz-pm-api/src/main/java/com/hz/pm/api/scheduler/task/EarlyWarningProjectTask.java

+ 6
- 6
hz-pm-api/src/main/java/com/hz/pm/api/scheduler/task/EarlyWarningProjectTask.java View File

@@ -139,8 +139,8 @@ public class EarlyWarningProjectTask {
if (!projectStatus.eq(project.getStatus())) { if (!projectStatus.eq(project.getStatus())) {
checkCommited(delay, flowTypeEnum, projectCode); checkCommited(delay, flowTypeEnum, projectCode);
// 其它几种 都没有 说明已经正常了 // 其它几种 都没有 说明已经正常了
if (!delay.getProcessWarning() &&
!delay.getDeclaredWarning()) {
if (Boolean.FALSE.equals(delay.getProcessWarning()) &&
Boolean.FALSE.equals(delay.getDeclaredWarning())) {
delay.setNormal(Boolean.TRUE); delay.setNormal(Boolean.TRUE);
delay.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name()); delay.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }
@@ -177,8 +177,8 @@ public class EarlyWarningProjectTask {
if (!projectStatus.eq(project.getStatus())) { if (!projectStatus.eq(project.getStatus())) {
checkCommited(declaredWarning, flowTypeEnum, projectCode); checkCommited(declaredWarning, flowTypeEnum, projectCode);
// 其它几种 都没有 说明已经正常了 // 其它几种 都没有 说明已经正常了
if (!declaredWarning.getProcessWarning() &&
!declaredWarning.getDelayWarning()) {
if (Boolean.FALSE.equals(declaredWarning.getProcessWarning()) &&
Boolean.FALSE.equals(declaredWarning.getDelayWarning())) {
declaredWarning.setNormal(Boolean.TRUE); declaredWarning.setNormal(Boolean.TRUE);
declaredWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name()); declaredWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }
@@ -255,8 +255,8 @@ public class EarlyWarningProjectTask {
//说明 已经审批通过了 //说明 已经审批通过了
processWarning.setProcessWarning(Boolean.FALSE); processWarning.setProcessWarning(Boolean.FALSE);
//其它三种 都没有 说明已经正常了 //其它三种 都没有 说明已经正常了
if (!processWarning.getDeclaredWarning() &&
!processWarning.getDelayWarning()) {
if (Boolean.FALSE.equals(processWarning.getDeclaredWarning()) &&
Boolean.FALSE.equals(processWarning.getDelayWarning())) {
processWarning.setNormal(Boolean.TRUE); processWarning.setNormal(Boolean.TRUE);
processWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name()); processWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }


Loading…
Cancel
Save