diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java index 2c9ef07..a13422d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java @@ -134,6 +134,7 @@ public class CheckReportController extends BaseController { * 详情 */ @GetMapping("/view/{checkId}") + @ResponseBody public AjaxResult view(@PathVariable("checkId") String checkId) { return AjaxResult.success(checkReportManager.getTdCheckReportDTO(checkId)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java index a56b6a8..6b86ae8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java @@ -16,14 +16,12 @@ import com.ruoyi.system.service.check.TdCheckTypeService; import com.ruoyi.web.controller.manager.CheckReportManager; import com.ruoyi.web.controller.manager.SysAreaManager; import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.List; -import java.util.Objects; @Controller @RequestMapping("/system/checkresult") @@ -108,6 +106,16 @@ public class TdCheckResultController extends BaseController { return toAjax(checkReportManager.deletedTdCheckReportIds(ids)); } + + /** + * 详情 + */ + @GetMapping("/view/{checkId}") + @ResponseBody + public AjaxResult view(@PathVariable("checkId") String checkId) { + return AjaxResult.success(checkReportManager.getTdCheckReportDTO(checkId)); + } + /** * 检查 报告管理 */