diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdCheckResultController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdCheckResultController.java index 87424a9..a8620e7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdCheckResultController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdCheckResultController.java @@ -57,7 +57,6 @@ public class TdCheckResultController extends BaseController { return util.exportExcel(list, "检查结果管理数据"); } - /** * 修改检查结果管理 */ @@ -97,11 +96,12 @@ public class TdCheckResultController extends BaseController { /** * 检查 报告管理 */ - @RequiresPermissions("system:checkresult:edit") + @RequiresPermissions("system:checkresult:check") @GetMapping("/checkresult/{checkId}") public String selfcheck(@PathVariable("checkId") Long checkId, ModelMap mmap) { TdCheck tdCheck = tdCheckService.selectTdCheckByCheckId(checkId); + mmap.put("sysuser",getSysUser()); mmap.put("tdCheck", tdCheck); return prefix + "/docheck"; } @@ -115,10 +115,16 @@ public class TdCheckResultController extends BaseController { @ResponseBody public AjaxResult selfcheckSave(TdCheck tdCheck) { + if (tdCheck.getCheckresult1().equals("0")&&tdCheck.getCheckresult2().equals("0") + &&tdCheck.getCheckresult3().equals("0")&&tdCheck.getCheckresult4().equals("0") + &&tdCheck.getCheckresult5().equals("0")&&tdCheck.getCheckresult6().equals("0")){ + tdCheck.setCheckState("0"); + }else { + tdCheck.setCheckState("1"); + } return toAjax(tdCheckService.updateTdCheck(tdCheck)); } - /** * 打印操作 */ @@ -128,10 +134,7 @@ public class TdCheckResultController extends BaseController { { TdCheck tdCheckResult = tdCheckService.selectTdCheckByCheckId(checkId); mmap.put("tdCheckResult", tdCheckResult); - return prefix + "/CheckResultPrint"; + return prefix + "/checkresultprint"; } - - - } diff --git a/ruoyi-admin/src/main/resources/templates/system/checkresult/add.html b/ruoyi-admin/src/main/resources/templates/system/checkresult/add.html deleted file mode 100644 index 59bd3e7..0000000 --- a/ruoyi-admin/src/main/resources/templates/system/checkresult/add.html +++ /dev/null @@ -1,114 +0,0 @@ - - -
-