fix out of index
This commit is contained in:
@@ -66,9 +66,16 @@ public class ExperimentTestProcessServiceImpl extends ServiceImpl<ExperimentTest
|
||||
public void assembleDetails(ExperimentTestProcess experimentTestProcess) {
|
||||
String testStandardsId = experimentTestProcess.getTestStandardsId();
|
||||
if (StringUtils.isNotBlank(testStandardsId)) {
|
||||
if (StringUtils.contains(testStandardsId, ",")) {
|
||||
String[] split = testStandardsId.split(",");
|
||||
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();
|
||||
List<ExperimentSampleInfo> sampleInfoList;
|
||||
|
||||
Reference in New Issue
Block a user