fix out of index
This commit is contained in:
@@ -66,9 +66,16 @@ public class ExperimentTestProcessServiceImpl extends ServiceImpl<ExperimentTest
|
|||||||
public void assembleDetails(ExperimentTestProcess experimentTestProcess) {
|
public void assembleDetails(ExperimentTestProcess experimentTestProcess) {
|
||||||
String testStandardsId = experimentTestProcess.getTestStandardsId();
|
String testStandardsId = experimentTestProcess.getTestStandardsId();
|
||||||
if (StringUtils.isNotBlank(testStandardsId)) {
|
if (StringUtils.isNotBlank(testStandardsId)) {
|
||||||
String[] split = testStandardsId.split(",");
|
if (StringUtils.contains(testStandardsId, ",")) {
|
||||||
TestStandards testStandards = testStandardsService.findByRequirements(split[0],split[1]);
|
String[] split = testStandardsId.split(",");
|
||||||
experimentTestProcess.setTestStandards(testStandards);
|
TestStandards testStandards = testStandardsService.findByRequirements(split[0], split[1]);
|
||||||
|
experimentTestProcess.setTestStandards(testStandards);
|
||||||
|
} else {
|
||||||
|
TestStandards others = new TestStandards();
|
||||||
|
others.setId("others");
|
||||||
|
others.setName("others");
|
||||||
|
experimentTestProcess.setTestStandards(others);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String sampleInfoIds = experimentTestProcess.getSampleInfo();
|
String sampleInfoIds = experimentTestProcess.getSampleInfo();
|
||||||
List<ExperimentSampleInfo> sampleInfoList;
|
List<ExperimentSampleInfo> sampleInfoList;
|
||||||
|
|||||||
Reference in New Issue
Block a user