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