浏览代码

系统替代情况增加项目编码

tags/24080901
WendyYang 6 个月前
父节点
当前提交
a86b5decb1
共有 3 个文件被更改,包括 8 次插入1 次删除
  1. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/ProjectGovSystemReplaceInfos.java
  2. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/DeclaredRecordManage.java
  3. +4
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectLibManage.java

+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/entity/ProjectGovSystemReplaceInfos.java 查看文件

@@ -40,6 +40,9 @@ public class ProjectGovSystemReplaceInfos implements Serializable {
@ApiModelProperty("项目ID")
private Long projectId;

@ApiModelProperty("项目编码")
private String projectCode;

@ApiModelProperty("批次号")
private Integer batchNo;



+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/DeclaredRecordManage.java 查看文件

@@ -195,7 +195,7 @@ public class DeclaredRecordManage {
item.setDeclaredUnit(w.getBuildOrgName());
item.setProjectCode(w.getProjectCode());
item.setProjectName(w.getProjectName());
item.setDeclaredAmount(w.getDeclareAmount());
item.setDeclaredAmount(w.getReviewAmount());
item.setCreateTime(w.getCreateOn());
return item;
}).collect(Collectors.toList());


+ 4
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectLibManage.java 查看文件

@@ -940,6 +940,9 @@ public class ProjectLibManage {
}

private void saveGovSystemReplaceInfos(Project project, List<GovSystemReplaceInfoDTO> govSystemReplaceInfos) {
Wrapper<ProjectGovSystemReplaceInfos> delQuery = Wrappers.lambdaQuery(ProjectGovSystemReplaceInfos.class)
.eq(ProjectGovSystemReplaceInfos::getProjectCode, project.getProjectCode());
projectGovSystemReplaceInfosService.remove(delQuery);
if (CollUtil.isEmpty(govSystemReplaceInfos)) {
return;
}
@@ -949,6 +952,7 @@ public class ProjectLibManage {
for (String systemName : curr.getSourceSystemNames()) {
ProjectGovSystemReplaceInfos replaceInfo = new ProjectGovSystemReplaceInfos();
replaceInfo.setProjectId(project.getId());
replaceInfo.setProjectCode(project.getProjectCode());
replaceInfo.setReplaceType(curr.getReplaceType());
replaceInfo.setSourceSystem(systemName);
replaceInfo.setTargetSystem(curr.getTargetSystemName());


正在加载...
取消
保存