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 | 41 ++++++++++++++++++++++++++++++++++-------
1 files changed, 34 insertions(+), 7 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 fe3afa2..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
@@ -6,9 +6,8 @@
import cn.lihu.jh.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.lihu.jh.framework.mybatis.core.mapper.BaseMapperX;
import cn.lihu.jh.module.ecg.dal.dataobject.checktype.CheckTypeDO;
-import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.*;
import cn.lihu.jh.module.ecg.controller.admin.checktype.vo.*;
-import org.apache.ibatis.annotations.Select;
/**
* 妫�鏌ョ被鍨� Mapper
@@ -31,12 +30,40 @@
.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("<script> " +
- "SELECT * FROM lihu.check_type;" +
- "</script>")
+ default PageResult<CheckTypeDO> selectPageForCallingScreen(CheckTypePageReqVO reqVO) {
+ return selectPage(reqVO, new LambdaQueryWrapperX<CheckTypeDO>()
+ .likeIfPresent(CheckTypeDO::getName, reqVO.getName())
+ .eqIfPresent(CheckTypeDO::getValue, reqVO.getValue())
+ .eqIfPresent(CheckTypeDO::getReadyNum, reqVO.getReadyNum())
+ .betweenIfPresent(CheckTypeDO::getCreateTime, reqVO.getCreateTime())
+ .eqIfPresent(CheckTypeDO::getNeedDevReady, reqVO.getNeedDevReady())
+ .neIfPresent(CheckTypeDO::getCallingColumn, reqVO.getCallingColumn())
+ .eqIfPresent(CheckTypeDO::getDisplayBarcode, reqVO.getDisplayBarcode())
+ .eqIfPresent(CheckTypeDO::getExpenseRecognition, reqVO.getExpenseRecognition())
+ .eqIfPresent(CheckTypeDO::getTimeslotBookNum, reqVO.getTimeslotBookNum())
+ .eqIfPresent(CheckTypeDO::getTimeslotReservedNum, reqVO.getTimeslotReservedNum())
+ .eqIfPresent(CheckTypeDO::getAffinityCheckTypes, reqVO.getAffinityCheckTypes())
+ // 闇�姹�9锛氭寜銆屾帓搴忓簭鍙枫�嶅崌搴忓睍绀猴紙鍘熷厛鎸� id 鍊掑簭锛屼笌涓氬姟鎺掑簭鏃犲叧锛�
+ .orderByAsc(CheckTypeDO::getSort)
+ .orderByAsc(CheckTypeDO::getValue));
+ }
+
+ @Select("SELECT * FROM lihu.check_type;")
+ @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)
+ })
List<CheckTypeDO> simpleCheckTypeList();
-}
\ No newline at end of file
+ @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