驳回试验报告时,不修改试验状态
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# 代码仓库
|
||||
链接:https://codeup.aliyun.com/?navKey=mine
|
||||
权限:找李山邀请添加
|
||||
|
||||
# 前端打包命令
|
||||
pnpm run build
|
||||
# minio bucket 权限配置
|
||||
|
||||
```json
|
||||
|
||||
@@ -301,18 +301,10 @@ public class ExperimentReportController extends JeecgController<ExperimentReport
|
||||
} else {
|
||||
return Result.error("实验报告状态异常!");
|
||||
}
|
||||
|
||||
experimentReportService.updateById(report);
|
||||
Experiment experiment = new Experiment();
|
||||
experiment.setId(report.getExperimentId());
|
||||
if (StringUtils.equals(report.getStatus(), ExperimentReportStatus.PASSED)) {
|
||||
experimentDocService.generate(report.getExperimentId(), ExperimentDocType.sybg.getType());
|
||||
} else if (StringUtils.equals(report.getStatus(), ExperimentReportStatus.REJECT)) {
|
||||
experiment.setStatus(ExperimentStatus.PROGRESSING);
|
||||
} else {
|
||||
//experiment.setStatus(ExperimentStatus.REPORT_AUDITING);
|
||||
}
|
||||
experimentService.updateById(experiment);
|
||||
|
||||
return Result.OK("审核成功!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user