Browse Source

modify:

1. 关联系统下拉选择接口修改;
tags/24110601
WendyYang 4 weeks ago
parent
commit
865a32de28
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/MhSystemReplaceManage.java

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

@@ -183,10 +183,11 @@ public class MhSystemReplaceManage {
"where qpr.source_system_id = mh_system_replace_info.id");
String includeProjectCodeSql = "";
if (StrUtil.isNotBlank(req.getIncludeProjectCode())) {
includeProjectCodeSql += " and npr.project_code != '" + req.getIncludeProjectCode() + "'";
includeProjectCodeSql += " and t.project_code != '" + req.getIncludeProjectCode() + "'";
}
query.notExists("select 1 from nd_project_gov_system_replace_infos npr " +
"where npr.source_system_id = mh_system_replace_info.id" + includeProjectCodeSql);
query.notExists("select 1 from (SELECT ROW_NUMBER() OVER (PARTITION BY SOURCE_SYSTEM_ID ORDER BY CREATE_ON DESC) row_no,"
+ "* FROM ND_PROJECT_GOV_SYSTEM_REPLACE_INFOS npr where npr.source_system_id = mh_system_replace_info.id) t"
+ " where row_no = 1 and t.replace_type != 6" + includeProjectCodeSql);
List<MhSystemReplaceInfo> page = mhSystemReplaceInfoService.list(query);
return BeanUtil.copyToList(page, MhSystemReplaceInfoVO.class);
}


Loading…
Cancel
Save