From b101f9266589cc16424a3898bd336f13713021c5 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Wed, 31 Jul 2024 10:59:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A3=80=E6=9F=A5=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=AD=97=E5=85=B8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/examitems/examitemsController.java | 8 ++++++++ .../system/dal/mysql/examitems/examitemsMapper.java | 4 ++++ .../module/system/service/examitems/examitemsService.java | 4 ++++ .../system/service/examitems/examitemsServiceImpl.java | 5 +++++ .../main/resources/mapper/examitems/examitemsMapper.xml | 3 +++ 5 files changed, 24 insertions(+) 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