From e2efe712d2dc6593a03f71c6213f63a04437c3e7 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 20 九月 2024 16:04:10 +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