Browse Source

modify:

1. 区县项目备案详情增加创建时间;
tags/24090101
WendyYang 2 months ago
parent
commit
a8c2c08e61
3 changed files with 12 additions and 6 deletions
  1. +2
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java
  2. +7
    -6
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java
  3. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/vo/QxProjectVO.java

+ 2
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java View File

@@ -171,6 +171,8 @@ public class MhSystemReplaceManage {
query.eq(MhSystemReplaceInfo::getStopped, Boolean.FALSE);
if (StrUtil.isBlank(req.getReplaceType())) {
query.in(MhSystemReplaceInfo::getReplaceType, Arrays.asList(MhSystemReplaceType.IM, MhSystemReplaceType.IT));
} else if (MhSystemReplaceType.NE.eq(req.getReplaceType())) {
return Collections.emptyList();
}
UnitQueryState state = mhUnitQueryHelper.listCanViewUnitIds(req.getBuildOrgCode());
if (!state.isState()) {


+ 7
- 6
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java View File

@@ -107,12 +107,13 @@ public class QxProjectManage {
qxProjectSystemReplaceInfosService.saveBatch(projectSystemReplaceInfos);
List<QxProjectSystemReplaceInfosRelation> relations = new ArrayList<>();
for (int i = 0; i < tmpSourceSystemIds.size(); i++) {
QxProjectSystemReplaceInfos replaceInfos = projectSystemReplaceInfos.get(i);
QxProjectSystemReplaceInfosRelation relation = new QxProjectSystemReplaceInfosRelation();
relation.setSourceSystemId(tmpSourceSystemIds.get(i));
relation.setReplaceInfosId(replaceInfos.getId());
relation.setProjectId(project.getId());
relations.add(relation);
for (String sourceSystemId : tmpSourceSystemIds.get(i).split(",")) {
QxProjectSystemReplaceInfosRelation relation = new QxProjectSystemReplaceInfosRelation();
relation.setProjectId(project.getId());
relation.setSourceSystemId(sourceSystemId);
relation.setReplaceInfosId(projectSystemReplaceInfos.get(i).getId());
relations.add(relation);
}
}
qxProjectSystemReplaceInfosRelationService.saveBatch(relations);
}


+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/vo/QxProjectVO.java View File

@@ -53,4 +53,7 @@ public class QxProjectVO {
@ApiModelProperty("更新时间")
private LocalDateTime updateOn;

@ApiModelProperty("创建时间")
private LocalDateTime createOn;

}

Loading…
Cancel
Save