|
@@ -1,15 +1,11 @@ |
|
|
package com.hz.pm.api.projectlib; |
|
|
package com.hz.pm.api.projectlib; |
|
|
|
|
|
|
|
|
import com.hz.pm.api.AppTests; |
|
|
import com.hz.pm.api.AppTests; |
|
|
import com.hz.pm.api.projectlib.entity.QxProjectSystemReplaceInfos; |
|
|
|
|
|
import com.hz.pm.api.projectlib.entity.QxProjectSystemReplaceInfosRelation; |
|
|
|
|
|
import com.hz.pm.api.projectlib.service.IQxProjectSystemReplaceInfosRelationService; |
|
|
import com.hz.pm.api.projectlib.service.IQxProjectSystemReplaceInfosRelationService; |
|
|
import com.hz.pm.api.projectlib.service.IQxProjectSystemReplaceInfosService; |
|
|
import com.hz.pm.api.projectlib.service.IQxProjectSystemReplaceInfosService; |
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* <p> |
|
|
* <p> |
|
|
* ProjectTests |
|
|
* ProjectTests |
|
@@ -28,17 +24,6 @@ public class ProjectTest extends AppTests { |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void test() { |
|
|
public void test() { |
|
|
List<QxProjectSystemReplaceInfos> list = qxProjectSystemReplaceInfosService.list(); |
|
|
|
|
|
for (QxProjectSystemReplaceInfos infos : list) { |
|
|
|
|
|
for (String s : infos.getSourceSystemIds().split(",")) { |
|
|
|
|
|
QxProjectSystemReplaceInfosRelation relation = new QxProjectSystemReplaceInfosRelation(); |
|
|
|
|
|
relation.setProjectId(infos.getProjectId()); |
|
|
|
|
|
relation.setReplaceInfosId(infos.getId()); |
|
|
|
|
|
relation.setSourceSystemId(s); |
|
|
|
|
|
qxProjectSystemReplaceInfosRelationService.save(relation); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |