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)); } /**