eight
2024-09-24 91c60b946e0d2e8abc2c350598aa6d47ed28e83c
jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
@@ -9,9 +9,12 @@
        文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
     -->
    <select id="getLatestRent" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
    <select id="getDismantleRentByState" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
        select * from lihu.dev_rent
        <where>
            <if test="state != null">
                and state = #{state}
            </if>
            <if test="devId != null and devId != ''">
             and dev_id = #{devId}
            </if>
@@ -19,7 +22,7 @@
             and pat_id = #{patId}
            </if>
        </where>
        order by rent_time desc limit 1
        limit 1
    </select>
</mapper>