jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
@@ -9,4 +9,17 @@ 文档可见:https://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>