update
This commit is contained in:
@@ -80,9 +80,11 @@ public class ExperimentDeviationConditionController
|
||||
if (StringUtils.contains(sampleId, ",")) {
|
||||
for (String id : sampleId.split(",")) {
|
||||
ExperimentDeviationCondition cloned = ObjectUtils.clone(experimentDeviationCondition);
|
||||
if (ObjectUtils.isNotEmpty(cloned)) {
|
||||
cloned.setSampleId(id);
|
||||
experimentDeviationConditionService.save(experimentDeviationCondition);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
experimentDeviationConditionService.save(experimentDeviationCondition);
|
||||
}
|
||||
@@ -106,8 +108,10 @@ public class ExperimentDeviationConditionController
|
||||
if (StringUtils.contains(sampleId, ",")) {
|
||||
for (String id : sampleId.split(",")) {
|
||||
ExperimentDeviationCondition cloned = ObjectUtils.clone(experimentDeviationCondition);
|
||||
if (ObjectUtils.isNotEmpty(cloned)) {
|
||||
cloned.setSampleId(id);
|
||||
experimentDeviationConditionService.saveOrUpdate(experimentDeviationCondition);
|
||||
experimentDeviationConditionService.saveOrUpdate(cloned);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
experimentDeviationConditionService.updateById(experimentDeviationCondition);
|
||||
|
||||
Reference in New Issue
Block a user