From 45c86945f735ab5a63025ed5dcff9aeae4106a1f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 16 十月 2024 14:08:35 +0800
Subject: [PATCH] 检查项目 大屏显示列 配置
---
jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml b/jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
index 0dcc0be..c0a35b5 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
@@ -9,4 +9,24 @@
鏂囨。鍙锛歨ttps://www.iocoder.cn/MyBatis/x-plugins/
-->
-</mapper>
\ No newline at end of file
+ <select id="getRentByState" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
+ select * from lihu.dev_rent
+ <where>
+ <if test="stateList != null">
+ and state in (
+ <foreach collection='stateList' separator=',' item='state'>
+ #{state}
+ </foreach> )
+ </if>
+ <if test="devId != null and devId != ''">
+ and dev_id = #{devId}
+ </if>
+ <if test="patId != null and patId != ''">
+ and pat_id = #{patId}
+ </if>
+ and TO_DAYS(create_time) = TO_DAYS(NOW())
+ </where>
+ limit 1
+ </select>
+
+</mapper>
--
Gitblit v1.9.3