1. 完成试验时 需要校验是否填写了条目统计数量。

This commit is contained in:
dengchun
2025-07-06 19:36:11 +08:00
parent e466d8ae3f
commit 6eb7734d6b
2 changed files with 5 additions and 1 deletions

View File

@@ -380,6 +380,10 @@ public class ExperimentController extends JeecgController<Experiment, IExperimen
if (StringUtils.equals(dbData.getStatus(), ExperimentStatus.COMPLETED)) {
return Result.error("试验状态:[" + dbData.getStatus() + "]不能进行修改!");
}
// 如果没有填写条目统计则不能完成试验, 20250706 邓春
if(dbData.getTotalCountXhy() == null || dbData.getTotalCountLhs() == null) {
return Result.error("请填写条目统计!");
}
experimentService.changeStatus(experiment.getId(), ExperimentStatus.COMPLETED);
LocalDatabase localData = new LocalDatabase();
localData.setClientName(dbData.getClientName());