This commit is contained in:
Timer
2026-03-28 00:50:10 +08:00
parent 04610aa678
commit c3babf2c4d
2 changed files with 3 additions and 5 deletions

View File

@ -379,8 +379,7 @@ public class RptCreateController {
// 权限验证:检查用户是否有报表生成权限
if (rptsetId != null && !rptsetId.isEmpty()) {
if (!this.rptCreateService.checkGeneratePermission(rptsetId, cu)) {
Result result = Result.failed("您没有该报表的生成权限");
model.addAttribute("result", CommUtil.toJson(result));
model.addAttribute("result", "{\"res\":\"您没有该报表的生成权限\",\"msg\":\"您没有该报表的生成权限\"}");
return "result";
}
}
@ -568,7 +567,7 @@ public class RptCreateController {
// 权限验证:检查用户是否有报表生成权限
if (rptCreate.getRptsetId() != null && !rptCreate.getRptsetId().isEmpty()) {
if (!this.rptCreateService.checkGeneratePermission(rptCreate.getRptsetId(), cu)) {
model.addAttribute("result", "{\"res\":\"-1\",\"msg\":\"您没有该报表的生成权限\"}");
model.addAttribute("result", "{\"res\":\"您没有该报表的生成权限\",\"msg\":\"您没有该报表的生成权限\"}");
return new ModelAndView("result");
}
}

View File

@ -215,8 +215,7 @@ public class RptDayLogController {
// 权限验证:检查用户是否有填报权限
String rptdeptId = (String) jsonObject.get("rptdeptId");
if (!this.rptDayLogService.checkInputPermission(rptdeptId, cu)) {
Result result = Result.failed("您没有该报表的填报权限");
model.addAttribute("result", "{\"res\":\"您没有该报表的生成权限\",\"msg\":\"您没有该报表的生成权限\"}");
model.addAttribute("result", "{\"res\":\"您没有该报表的填报权限\",\"msg\":\"您没有该报表的填报权限\"}");
return new ModelAndView("result");
}