eight
2024-10-10 a21055c644b56fc44b56ed7e2bfe77a82e1b739d
jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
@@ -9,11 +9,14 @@
        文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
     -->
    <select id="getDismantleRentByState" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
    <select id="getRentByState" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
        select * from lihu.dev_rent
        <where>
            <if test="state != null">
                and state = #{state}
            <if test="stateList != null">
                and state in (
                  <foreach collection='stateList' separator=',' item='state'>
                    #{state}
                  </foreach> )
            </if>
            <if test="devId != null and devId != ''">
             and dev_id = #{devId}
@@ -21,8 +24,9 @@
            <if test="patId != null and patId != ''">
             and pat_id = #{patId}
            </if>
            and TO_DAYS(create_time) = TO_DAYS(NOW())
        </where>
        limit 1
    </select>
</mapper>
</mapper>