|
|
@@ -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); |
|
|
|
} |
|
|
|