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