Browse Source

modify:

1. 项目申报修改;
tags/24090101
WendyYang 2 weeks ago
parent
commit
50284f3fa5
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      hz-pm-api/src/test/java/com/hz/pm/api/projectlib/ProjectTest.java

+ 0
- 15
hz-pm-api/src/test/java/com/hz/pm/api/projectlib/ProjectTest.java View File

@@ -1,15 +1,11 @@
package com.hz.pm.api.projectlib;

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.IQxProjectSystemReplaceInfosService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
* <p>
* ProjectTests
@@ -28,17 +24,6 @@ public class ProjectTest extends AppTests {

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

}
}

}

Loading…
Cancel
Save