From dc902484cd4d304ee02a3ce88f54e266cd40fdad Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 26 九月 2024 16:18:04 +0800
Subject: [PATCH] 数据录入功能
---
jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 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 7d7380e..96b122b 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,9 +9,15 @@
鏂囨。鍙锛歨ttps://www.iocoder.cn/MyBatis/x-plugins/
-->
- <select id="getLatestRent" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
+ <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>
@@ -19,7 +25,7 @@
and pat_id = #{patId}
</if>
</where>
- order by rent_time desc limit 1
+ limit 1
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3