From 283cf3f4f5edeef28b7b6636f2e6b9449ab490b6 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 25 Sep 2024 14:17:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9F=A5=E8=AF=A2=E5=AD=90=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/manager/CheckReportManager.java | 10 ++++------ .../controller/system/check/CheckReportController.java | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java index 4977a23..36c39b8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CheckReportManager.java @@ -95,16 +95,14 @@ public class CheckReportManager { return checkTypeItemDTOList; } - public List getCheckTypeDTOParent(String type) { + public List getCheckTypeDtoParent(String type) { List checkTypeDtoS = new ArrayList<>(); SysDictData sysDictData =new SysDictData(); sysDictData.setDictType(type); List list = dictDataService.selectDictDataList(sysDictData); - list.forEach(sysDictData1 -> { - checkTypeDtoS.add(CheckTypeDTO.builder() - .typeName(sysDictData1.getDictLabel()) - .checkType(sysDictData1.getDictValue()).build()); - }); + list.forEach(sysDictData1 -> checkTypeDtoS.add(CheckTypeDTO.builder() + .typeName(sysDictData1.getDictLabel()) + .checkType(sysDictData1.getDictValue()).build())); return checkTypeDtoS; } 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 e094f5a..a42e92f 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 @@ -146,7 +146,7 @@ public class CheckReportController extends BaseController { @GetMapping("/checkViewParent/{type}") @ResponseBody public AjaxResult checkViewParent(@PathVariable("type") String type) { - return AjaxResult.success(checkReportManager.getCheckTypeDTOParent(type)); + return AjaxResult.success(checkReportManager.getCheckTypeDtoParent(type)); } /**