update
This commit is contained in:
@@ -313,6 +313,11 @@ public class ExperimentController extends JeecgController<Experiment, IExperimen
|
|||||||
localData.setStatus(ExperimentStatus.COMPLETED);
|
localData.setStatus(ExperimentStatus.COMPLETED);
|
||||||
localData.setExperimentNo(dbData.getExperimentNo());
|
localData.setExperimentNo(dbData.getExperimentNo());
|
||||||
localData.setExperimentId(dbData.getId());
|
localData.setExperimentId(dbData.getId());
|
||||||
|
List<ExperimentSampleInfo> sampleInfoList = experimentSampleInfoService.getByExperimentId(dbData.getId());
|
||||||
|
if (CollUtil.isNotEmpty(sampleInfoList)) {
|
||||||
|
String joinStr = String.join(",", sampleInfoList.stream().map(v -> v.getSampleModel()).collect(Collectors.toSet()));
|
||||||
|
localData.setSampleModel(joinStr);
|
||||||
|
}
|
||||||
localDatabaseService.save(localData);
|
localDatabaseService.save(localData);
|
||||||
return Result.OK("试验已完成!");
|
return Result.OK("试验已完成!");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,4 +133,11 @@ public class LocalDatabase implements Serializable {
|
|||||||
@Schema(description = "状态")
|
@Schema(description = "状态")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
@Excel(name = "样品型号", width = 15)
|
||||||
|
@Schema(description = "样品型号")
|
||||||
|
private String sampleModel;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user