update
This commit is contained in:
@@ -124,6 +124,7 @@ public class ExperimentAnnealProcessServiceImpl extends ServiceImpl<ExperimentAn
|
||||
experiment.setExperimentId(newExperimentId);
|
||||
experiment.setAnnealStartTime(null);
|
||||
experiment.setAnnealEndTime(null);
|
||||
experiment.setCreateTime(new Date());
|
||||
List<ExperimentSampleInfo> sampleInfoList = experimentSampleInfoService.getByExperimentId(newExperimentId);
|
||||
if (CollUtil.isNotEmpty(sampleInfoList)) {
|
||||
experiment.setSampleInfo(sampleInfoList.stream().map(v -> v.getId()).collect(Collectors.joining()));
|
||||
|
||||
@@ -114,6 +114,7 @@ public class ExperimentRadiationProcessServiceImpl extends ServiceImpl<Experimen
|
||||
experiment.setExperimentId(newExperimentId);
|
||||
experiment.setRadiationStartTime(null);
|
||||
experiment.setRadiationEndTime(null);
|
||||
experiment.setCreateTime(new Date());
|
||||
String radiationDetail = experiment.getRadiationDetail();
|
||||
if (StringUtils.isNotBlank(radiationDetail)) {
|
||||
com.alibaba.fastjson2.JSONObject jsonObject = JSON.parseObject(radiationDetail);
|
||||
|
||||
@@ -131,6 +131,7 @@ public class ExperimentServiceImpl extends ServiceImpl<ExperimentMapper, Experim
|
||||
experiment.setStatus(ExperimentStatus.PRE_TEST);
|
||||
experiment.setStartDate(null);
|
||||
experiment.setEndDate(null);
|
||||
experiment.setCreateTime(new Date());
|
||||
save(experiment);
|
||||
List<ExperimentSampleInfo> sampleInfoList = oldExperiment.getSampleInfoList();
|
||||
if (CollUtil.isNotEmpty(sampleInfoList)) {
|
||||
|
||||
@@ -85,6 +85,7 @@ public class ExperimentTestProcessServiceImpl extends ServiceImpl<ExperimentTest
|
||||
experiment.setId(null);
|
||||
experiment.setTestStartTime(null);
|
||||
experiment.setTestEndTime(null);
|
||||
experiment.setCreateTime(new Date());
|
||||
List<ExperimentSampleInfo> sampleInfoList = experimentSampleInfoService.getByExperimentId(newExperimentId);
|
||||
if (CollUtil.isNotEmpty(sampleInfoList)) {
|
||||
experiment.setSampleInfo(sampleInfoList.stream().map(v -> v.getId()).collect(Collectors.joining()));
|
||||
|
||||
Reference in New Issue
Block a user