From fce96ef468291fb9a0e6a4d34ab371315e9485d4 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 03 十月 2026 00:59:44 +0800
Subject: [PATCH] ai优化

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/checktype/CheckTypeMapper.java |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/checktype/CheckTypeMapper.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/checktype/CheckTypeMapper.java
index de911b4..393ff71 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/checktype/CheckTypeMapper.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/checktype/CheckTypeMapper.java
@@ -30,7 +30,9 @@
                 .eqIfPresent(CheckTypeDO::getTimeslotBookNum, reqVO.getTimeslotBookNum())
                 .eqIfPresent(CheckTypeDO::getTimeslotReservedNum, reqVO.getTimeslotReservedNum())
                 .eqIfPresent(CheckTypeDO::getAffinityCheckTypes, reqVO.getAffinityCheckTypes())
-                .orderByDesc(CheckTypeDO::getId));
+                // 闇�姹�9锛氭寜銆屾帓搴忓簭鍙枫�嶅崌搴忓睍绀猴紙鍘熷厛鎸� id 鍊掑簭锛屼笌涓氬姟鎺掑簭鏃犲叧锛�
+                .orderByAsc(CheckTypeDO::getSort)
+                .orderByAsc(CheckTypeDO::getValue));
     }
 
     default PageResult<CheckTypeDO> selectPageForCallingScreen(CheckTypePageReqVO reqVO) {
@@ -46,7 +48,9 @@
                 .eqIfPresent(CheckTypeDO::getTimeslotBookNum, reqVO.getTimeslotBookNum())
                 .eqIfPresent(CheckTypeDO::getTimeslotReservedNum, reqVO.getTimeslotReservedNum())
                 .eqIfPresent(CheckTypeDO::getAffinityCheckTypes, reqVO.getAffinityCheckTypes())
-                .orderByDesc(CheckTypeDO::getId));
+                // 闇�姹�9锛氭寜銆屾帓搴忓簭鍙枫�嶅崌搴忓睍绀猴紙鍘熷厛鎸� id 鍊掑簭锛屼笌涓氬姟鎺掑簭鏃犲叧锛�
+                .orderByAsc(CheckTypeDO::getSort)
+                .orderByAsc(CheckTypeDO::getValue));
     }
 
     @Select("SELECT * FROM lihu.check_type;")
@@ -56,4 +60,10 @@
     })
     List<CheckTypeDO> simpleCheckTypeList();
 
+    @Select("SELECT * FROM lihu.check_type where value = #{checkTypeCode} limit 1;")
+    @Results({
+            @Result(property = "displayBarcode", column = "display_barcode", typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class),
+            @Result(property = "affinityCheckTypes", column = "affinity_check_types", typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
+    })
+    CheckTypeDO getCheckTypeByValue(@Param("checkTypeCode") Integer checkTypeCode);
 }

--
Gitblit v1.9.3