From ae9f9d9a9b9d6c286fa0646171a6c85e9578cf21 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期三, 18 九月 2024 10:30:50 +0800 Subject: [PATCH] update --- jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 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..7d7380e 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,17 @@ 鏂囨。鍙锛歨ttps://www.iocoder.cn/MyBatis/x-plugins/ --> + <select id="getLatestRent" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO"> + select * from lihu.dev_rent + <where> + <if test="devId != null and devId != ''"> + and dev_id = #{devId} + </if> + <if test="patId != null and patId != ''"> + and pat_id = #{patId} + </if> + </where> + order by rent_time desc limit 1 + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3