eight
2024-12-12 2bc90e242eceb83d9aa80d48ea9f991c0f9b99c6
jh-module-ecg/jh-module-ecg-biz/src/main/resources/mapper/devrent/DevRentMapper.xml
@@ -9,23 +9,4 @@
        文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
     -->
    <select id="getRentByState" resultType="cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO">
        select * from lihu.dev_rent
        <where>
            <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}
            </if>
            <if test="patId != null and patId != ''">
             and pat_id = #{patId}
            </if>
        </where>
        limit 1
    </select>
</mapper>
</mapper>