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