From 8045900f35d49ae11e90e9155f9082d2f20ca31c Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 24 十月 2024 11:16:04 +0800 Subject: [PATCH] 获取简单检查类型列表 不需要登录 --- jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 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 0288321..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,11 +9,14 @@ 鏂囨。鍙锛歨ttps://www.iocoder.cn/MyBatis/x-plugins/ --> - <select id="getDismantleRentByState" 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="state != null"> - and state = #{state} + <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} @@ -21,8 +24,9 @@ <if test="patId != null and patId != ''"> and pat_id = #{patId} </if> + and TO_DAYS(create_time) = TO_DAYS(NOW()) </where> limit 1 </select> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3