Browse Source

工作台 预警 催办 处理

tags/24080901
PoffyZhang 1 year ago
parent
commit
cf7eb67176
2 changed files with 5 additions and 2 deletions
  1. +4
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java
  2. +1
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/ProjectEarlyWarningServiceImpl.java

+ 4
- 0
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java View File

@@ -183,6 +183,7 @@ public class EarlyWarningProjectTask {
!renewalFundWarning.getDeclaredWarning() && !renewalFundWarning.getDeclaredWarning() &&
!renewalFundWarning.getOperationWarning()){ !renewalFundWarning.getOperationWarning()){
renewalFundWarning.setNormal(Boolean.TRUE); renewalFundWarning.setNormal(Boolean.TRUE);
renewalFundWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }
projectEarlyWarningService.updateById(renewalFundWarning); projectEarlyWarningService.updateById(renewalFundWarning);
} }
@@ -223,6 +224,7 @@ public class EarlyWarningProjectTask {
!operationWarning.getDeclaredWarning() && !operationWarning.getDeclaredWarning() &&
!operationWarning.getRenewalFundWarning()){ !operationWarning.getRenewalFundWarning()){
operationWarning.setNormal(Boolean.TRUE); operationWarning.setNormal(Boolean.TRUE);
operationWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }
projectEarlyWarningService.updateById(operationWarning); projectEarlyWarningService.updateById(operationWarning);
} }
@@ -261,6 +263,7 @@ public class EarlyWarningProjectTask {
!declaredWarning.getOperationWarning() && !declaredWarning.getOperationWarning() &&
!declaredWarning.getRenewalFundWarning()){ !declaredWarning.getRenewalFundWarning()){
declaredWarning.setNormal(Boolean.TRUE); declaredWarning.setNormal(Boolean.TRUE);
declaredWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }
projectEarlyWarningService.updateById(declaredWarning); projectEarlyWarningService.updateById(declaredWarning);
} }
@@ -299,6 +302,7 @@ public class EarlyWarningProjectTask {
!processWarning.getOperationWarning() && !processWarning.getOperationWarning() &&
!processWarning.getRenewalFundWarning()){ !processWarning.getRenewalFundWarning()){
processWarning.setNormal(Boolean.TRUE); processWarning.setNormal(Boolean.TRUE);
processWarning.setStatus(ProjectEarlyWarningStatusEnum.NORMAL.name());
} }
projectEarlyWarningService.updateById(processWarning); projectEarlyWarningService.updateById(processWarning);
} }


+ 1
- 2
pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/ProjectEarlyWarningServiceImpl.java View File

@@ -4,7 +4,6 @@ import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ningdatech.pmapi.common.constant.BizConst; import com.ningdatech.pmapi.common.constant.BizConst;
import com.ningdatech.pmapi.projectlib.mapper.ProjectMapper;
import com.ningdatech.pmapi.projectlib.model.entity.Project; import com.ningdatech.pmapi.projectlib.model.entity.Project;
import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.projectlib.service.IProjectService;
import com.ningdatech.pmapi.sys.enumeration.ProjectEarlyWarningStatusEnum; import com.ningdatech.pmapi.sys.enumeration.ProjectEarlyWarningStatusEnum;
@@ -105,7 +104,7 @@ public class ProjectEarlyWarningServiceImpl extends ServiceImpl<ProjectEarlyWarn
warning.setStatus(ProjectEarlyWarningStatusEnum.OVER_TIME.name()); warning.setStatus(ProjectEarlyWarningStatusEnum.OVER_TIME.name());
break; break;
case ADVENT: case ADVENT:
warning.setStatus(ProjectEarlyWarningStatusEnum.OVER_TIME.name());
warning.setStatus(ProjectEarlyWarningStatusEnum.ADVENT_TIME.name());
break; break;
default: default:
warning.setStatus(ProjectEarlyWarningStatusEnum.OVER_TIME.name()); warning.setStatus(ProjectEarlyWarningStatusEnum.OVER_TIME.name());


Loading…
Cancel
Save