|
|
@@ -7,6 +7,10 @@ import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.ningdatech.file.service.FileService; |
|
|
|
import com.ningdatech.pmapi.common.constant.ProjectDeclareConst; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.converter.ApplicationConverter; |
|
|
|
import com.ningdatech.pmapi.provincial.service.IJoinReviewProvincialBureauService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.checkerframework.checker.nullness.qual.Nullable; |
|
|
|
import org.flowable.engine.HistoryService; |
|
|
@@ -74,6 +78,10 @@ public class HandlerManage { |
|
|
|
private final NoticeManage noticeManage; |
|
|
|
private final DeclaredProjectManage declaredProjectManage; |
|
|
|
|
|
|
|
private final FileService fileService; |
|
|
|
|
|
|
|
private final IJoinReviewProvincialBureauService joinReviewProvincialBureauService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 审核通过后 所处理的逻辑 |
|
|
|
* @param declaredProject |
|
|
@@ -127,6 +135,21 @@ public class HandlerManage { |
|
|
|
// 当前项目状态是单位内部审核中 |
|
|
|
case UNDER_INTERNAL_AUDIT: |
|
|
|
// 当前项目状态是部门联审中 |
|
|
|
//如果是 区县 并且 500万及以上要推送省局重大项目 |
|
|
|
if(!StateMachineUtils.isCityProject(declaredProject) && |
|
|
|
StateMachineUtils.judgeDeclareAmount(declaredProject, |
|
|
|
ProjectDeclareConst.Number.DECLARE_COUNTY_AMOUNT_JUDGEMENT) ){ |
|
|
|
try{ |
|
|
|
List<ProjectApplication> applications = projectApplicationService |
|
|
|
.list(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
.eq(ProjectApplication::getProjectId,declaredProject.getId())); |
|
|
|
joinReviewProvincialBureauService.pushImportProject( |
|
|
|
ApplicationConverter.convertProject(declaredProject,applications,fileService)); |
|
|
|
}catch (Exception e){ |
|
|
|
log.info("区县推送省级联审失败[{}],{}", declaredProject.getProjectName() ,e.getMessage()); |
|
|
|
log.error("区县推送省级联审失败:" + e); |
|
|
|
} |
|
|
|
} |
|
|
|
case DEPARTMENT_JOINT_REVIEW: |
|
|
|
// 当前项目状态是方案评审中 |
|
|
|
case SCHEME_UNDER_REVIEW: |
|
|
|