diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/examitems/examitemsController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/examitems/examitemsController.java index e4073172b..4020ecb15 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/examitems/examitemsController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/examitems/examitemsController.java @@ -97,6 +97,14 @@ public class examitemsController { return success(BeanUtils.toBean(examitems, examitemsRespVO.class)); } + @GetMapping("/getlist") + @Operation(summary = "获得检查部位集合") + @PreAuthorize("@ss.hasPermission('examitems:examitems:query')") + public CommonResult> getexamitemslist() { + List examitems = examitemsService.getexamitemsList(); + return success(BeanUtils.toBean(examitems, examitemsRespVO.class)); + } + @GetMapping("/page") @Operation(summary = "获得检查部位分页") @PreAuthorize("@ss.hasPermission('examitems:examitems:query')") diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/examitems/examitemsMapper.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/examitems/examitemsMapper.java index 1ab7474dc..f5593cc3e 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/examitems/examitemsMapper.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/examitems/examitemsMapper.java @@ -10,6 +10,8 @@ import org.apache.ibatis.annotations.Mapper; import cn.iocoder.yudao.module.system.controller.admin.examitems.vo.*; import org.apache.ibatis.annotations.Param; +import java.util.List; + /** * 检查部位 Mapper * @@ -29,4 +31,6 @@ public interface examitemsMapper extends BaseMapperX { } int selectItemCount(@Param("examItemCode") String examItemCode); + //返回检查项目字典 + List getexamitemsList(); } \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsService.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsService.java index 296cb523b..25a8826c4 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsService.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsService.java @@ -1,6 +1,7 @@ package cn.iocoder.yudao.module.system.service.examitems; import java.util.*; + import cn.iocoder.yudao.module.system.controller.admin.examitems.vo.*; import cn.iocoder.yudao.module.system.dal.dataobject.examitems.examitemsDO; import cn.iocoder.yudao.framework.common.pojo.PageResult; @@ -54,4 +55,7 @@ public interface examitemsService { PageResult getexamitemsPage(examitemsPageReqVO pageReqVO); boolean getexamItemcodexist(String code); + + // 查询检查项目字典 + List getexamitemsList(); } \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsServiceImpl.java index c01ff902b..8fa52694c 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/examitems/examitemsServiceImpl.java @@ -90,4 +90,9 @@ public class examitemsServiceImpl implements examitemsService { return bol; } + @Override + public List getexamitemsList() { + return examitemsMapper.getexamitemsList(); + } + } \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/examitems/examitemsMapper.xml b/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/examitems/examitemsMapper.xml index 0cc5d9cba..272c93dbd 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/examitems/examitemsMapper.xml +++ b/yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/examitems/examitemsMapper.xml @@ -14,4 +14,7 @@ + \ No newline at end of file