fix:查询子项

pg_adapter
wangxy 6 months ago
parent e487823d6c
commit 283cf3f4f5

@ -95,16 +95,14 @@ public class CheckReportManager {
return checkTypeItemDTOList;
}
public List<CheckTypeDTO> getCheckTypeDTOParent(String type) {
public List<CheckTypeDTO> getCheckTypeDtoParent(String type) {
List<CheckTypeDTO> checkTypeDtoS = new ArrayList<>();
SysDictData sysDictData =new SysDictData();
sysDictData.setDictType(type);
List<SysDictData> list = dictDataService.selectDictDataList(sysDictData);
list.forEach(sysDictData1 -> {
checkTypeDtoS.add(CheckTypeDTO.builder()
list.forEach(sysDictData1 -> checkTypeDtoS.add(CheckTypeDTO.builder()
.typeName(sysDictData1.getDictLabel())
.checkType(sysDictData1.getDictValue()).build());
});
.checkType(sysDictData1.getDictValue()).build()));
return checkTypeDtoS;
}

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

Loading…
Cancel
Save