update
This commit is contained in:
@@ -24,6 +24,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 试验管理
|
* @Description: 试验管理
|
||||||
@@ -151,11 +152,17 @@ public class ExperimentController extends JeecgController<Experiment, IExperimen
|
|||||||
experimentService.save(copied);
|
experimentService.save(copied);
|
||||||
|
|
||||||
ExperimentAnnealProcess experimentAnnealProcess = experimentAnnealProcessService.getByExperimentId(old.getId());
|
ExperimentAnnealProcess experimentAnnealProcess = experimentAnnealProcessService.getByExperimentId(old.getId());
|
||||||
experimentAnnealProcessService.save(experimentAnnealProcess.copy(copied.getId()));
|
if (Objects.nonNull(experimentAnnealProcess)) {
|
||||||
|
experimentAnnealProcessService.save(experimentAnnealProcess.copy(copied.getId()));
|
||||||
|
}
|
||||||
ExperimentRadiationProcess experimentRadiationProcess = experimentRadiationProcessService.getByExperimentId(old.getId());
|
ExperimentRadiationProcess experimentRadiationProcess = experimentRadiationProcessService.getByExperimentId(old.getId());
|
||||||
experimentRadiationProcessService.save(experimentRadiationProcess.copy(copied.getId()));
|
if (Objects.nonNull(experimentRadiationProcess)) {
|
||||||
|
experimentRadiationProcessService.save(experimentRadiationProcess.copy(copied.getId()));
|
||||||
|
}
|
||||||
ExperimentTestProcess experimentTestProcess = experimentTestProcessService.getByExperimentId(old.getId());
|
ExperimentTestProcess experimentTestProcess = experimentTestProcessService.getByExperimentId(old.getId());
|
||||||
experimentTestProcessService.save(experimentTestProcess.copy(copied.getId()));
|
if (Objects.nonNull(experimentTestProcess)) {
|
||||||
|
experimentTestProcessService.save(experimentTestProcess.copy(copied.getId()));
|
||||||
|
}
|
||||||
return Result.OK("复制成功!");
|
return Result.OK("复制成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user