Administrator
2023-08-03 c426fdcccb92bc3ac22c7eb4e34c50ce78e59a55
ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
@@ -21,11 +21,11 @@
    <select id="selectArdAppPatrolplanList" parameterType="ArdAppPatrolplan" resultMap="ArdAppPatrolplanResult">
        <include refid="selectArdAppPatrolplanVo"/>
        <where>  
            <if test="patroEndTime != null  and patroEndTime != ''"> and patro_end_time = #{patroEndTime}</if>
            <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
            <if test="cycle != null  and cycle != ''"> and cycle = #{cycle}</if>
            <if test="planName != null  and planName != ''"> and plan_name like '%'||#{planName}||'%'</if>
            <if test="patroBeginTime != null  and patroBeginTime != ''"> and patro_begin_time = #{patroBeginTime}</if>
            <if test="patroBeginTime != null  and patroBeginTime != ''"> and patro_begin_time &gt;= #{patroBeginTime}</if>
            <if test="patroEndTime != null  and patroEndTime != ''"> and patro_end_time &lt;= #{patroEndTime}</if>
        </where>
    </select>