update
This commit is contained in:
@@ -193,6 +193,7 @@ public class ExperimentController extends JeecgController<Experiment, IExperimen
|
||||
} else {
|
||||
experiment.setStatus(dbExp.getStatus());
|
||||
}
|
||||
experiment.setIndexNo(dbExp.getIndexNo());
|
||||
List<ExperimentSampleInfo> sampleInfoList = experiment.getSampleInfoList();
|
||||
List<ExperimentIrradiationBoard> irradiationBoardList = experiment.getIrradiationBoardList();
|
||||
List<ExperimentDeviationCondition> deviationConditionList = experiment.getDeviationConditionList();
|
||||
|
||||
@@ -202,11 +202,13 @@ public class ExperimentServiceImpl extends ServiceImpl<ExperimentMapper, Experim
|
||||
|
||||
@Override
|
||||
public void saveWithDetail(Experiment experiment) {
|
||||
if (Objects.isNull(experiment.getIndexNo())) {
|
||||
Integer lastIndex = getLastIndex();
|
||||
experiment.setIndexNo(lastIndex + 1);
|
||||
if (StringUtils.isBlank(experiment.getId())) {
|
||||
if (Objects.isNull(experiment.getIndexNo())) {
|
||||
Integer lastIndex = getLastIndex();
|
||||
experiment.setIndexNo(lastIndex + 1);
|
||||
}
|
||||
saveOrUpdate(experiment);
|
||||
}
|
||||
saveOrUpdate(experiment);
|
||||
|
||||
String experimentUser = experiment.getExperimentUser();
|
||||
if (StringUtils.isNotBlank(experimentUser)) {
|
||||
|
||||
Reference in New Issue
Block a user