From 811e30133a6dcc6853aafbbe2bbd6a1b88e8fc71 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 13 九月 2024 10:35:07 +0800 Subject: [PATCH] 调整拆机查询实现-支持根据患者查找 --- 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