Browse Source

modify:

1. 修改标项数据;
tags/24082301
WendyYang 4 months ago
parent
commit
29c985b1ef
3 changed files with 16 additions and 23 deletions
  1. +2
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/model/vo/PurchaseVO.java
  2. +10
    -20
      hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java
  3. +4
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/workbench/model/WorkbenchProjectLibReq.java

+ 2
- 2
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/model/vo/PurchaseVO.java View File

@@ -169,10 +169,10 @@ public class PurchaseVO {
private BigDecimal bidPayAmount;

@ApiModelProperty("采购时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate purchaseDate;

@ApiModelProperty("是否发布信创云图")
public Boolean publishMhNotice;
private Boolean publishMhNotice;

}

+ 10
- 20
hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java View File

@@ -278,9 +278,7 @@ public class WorkbenchManage {
w -> {
Set<String> sourceNames = CollUtils.fieldSet(w, ProjectGovSystemReplaceInfos::getSourceSystem);
Set<String> targetNames = CollUtils.fieldSet(w, ProjectGovSystemReplaceInfos::getTargetSystem);
int targetCount = CollUtil.count(targetNames, isValidSystem::test);
int sourceCount = CollUtil.count(sourceNames, isValidSystem::test);
return Pair.create(sourceCount, targetCount);
return Pair.create(sourceNames.size(), targetNames.size());
}))).values();
int totalTargetCount = 0;
int totalSourceCount = 0;
@@ -534,11 +532,13 @@ public class WorkbenchManage {
// 下达金额
.ge(req.getApproveAmountMin() != null, Project::getApprovalAmount, req.getApproveAmountMin())
.ge(req.getApproveAmountMax() != null, Project::getApprovalAmount, req.getApproveAmountMax())
.eq(req.getUnitStrip() != null, Project::getUnitStrip, req.getUnitStrip())
.eq(Project::getStage, ProjectStatus.STOPPED.getCode())
.eq(Project::getNewest, Boolean.TRUE)
.orderByDesc(Project::getUpdateOn);
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.PROJECT_APPLICATION_SUBMIT);
switch (req.getProcessNode()) {
case PROJECT_DECLARED:
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.COMPLIANCE_REVIEW_PASS);
break;
case PROJECT_REVIEW:
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.PROJECT_REVIEW_PASS);
@@ -547,29 +547,19 @@ public class WorkbenchManage {
query.isNotNull(Project::getApprovalAmount).gt(Project::getApprovalAmount, BigDecimal.ZERO);
break;
case PROJECT_APPROVAL:
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.DECLARED_RECORD_PASS);
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.DECLARED_RECORD_SUBMIT);
break;
case PROJECT_PURCHASE:
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_PURCHASE_NOTICE);
break;
case PROJECT_ADAPTION:
projectQueryByPurchaseStatusChange(query, AdaptStateChangeEvent.ADAPT_INFO_PASSED);
break;
case SYSTEM_SELF_TEST:
projectQueryByPurchaseStatusChange(query, SelfTestStateChangeEvent.SELF_TEST_PASSED);
break;
case SYSTEM_TEST_VALID:
projectQueryByPurchaseStatusChange(query, TestValidStateChangeEvent.TEST_VALID_INFO_PASSED);
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_PURCHASE_CONTRACT_RECORD);
break;
case FIRST_INSPECTED:
case PILOT_RUNNING:
projectQueryByPurchaseStatusChange(query, TenderStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES);
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES);
break;
case XCFHX_REVIEW:
projectQueryByPurchaseStatusChange(query, XcfhxStateChangeEvent.XCFHX_APPLY_PASSED);
case PROJECT_ADAPTION:
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_PURCHASE_ORG_CONFIRM);
break;
case FINAL_INSPECTED:
projectQueryByPurchaseStatusChange(query, TenderStateChangeEvent.FINALLY_INSPECTED_PASSED);
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.FINAL_ACCEPTANCE_PASS);
break;
default:
return PageVo.empty();


+ 4
- 1
hz-pm-api/src/main/java/com/hz/pm/api/workbench/model/WorkbenchProjectLibReq.java View File

@@ -24,11 +24,14 @@ public class WorkbenchProjectLibReq extends PagePo {
@ApiModelProperty("单位ID")
private Long unitId;

@ApiModelProperty("所属领域")
private Integer unitStrip;

@ApiModelProperty("项目年度")
private Integer projectYear;

@ApiModelProperty("项目阶段")
private ProcessNode processNode;
private WorkbenchProcessNode processNode;

@ApiModelProperty("项目名称")
private String projectName;


Loading…
Cancel
Save