This commit is contained in:
ls
2025-02-23 21:49:11 +08:00
parent 5b7c4dcaeb
commit 13bb0305d0

View File

@@ -320,7 +320,7 @@ public class ExperimentReportController extends JeecgController<ExperimentReport
return Result.error("用户未登录!");
}
Experiment experiment = experimentService.getById(experimentReport.getExperimentId());
if (!StringUtils.equals(experimentReport.getCreateBy(), username) || !StringUtils.equals(experiment.getCreateBy(), username)) {
if (StringUtils.equals(experimentReport.getCreateBy(), username) || StringUtils.equals(experiment.getCreateBy(), username)) {
return Result.error("您无权进行撤回!");
}
ExperimentReport report = experimentReportService.getById(experimentReport.getId());