ZQN
2024-06-20 3467fa64f4be6efc9b742913419e7c3a501c541b
project-enforce/src/main/resources/mapper/enforce/EnforceOrderMapper.xml
@@ -23,6 +23,8 @@
        <result property="applyDeptId"    column="apply_dept_id"    />
        <result property="applyDeptName"    column="apply_dept_name"    />
        <result property="applyTime"    column="apply_time"    />
        <result property="planTime"    column="plan_time"    />
        <result property="inTime"    column="in_time"    />
        <result property="userNum"    column="user_num"    />
        <result property="warnStatus"    column="warn_status"    />
        <result property="warnReason"    column="warn_reason"    />
@@ -60,7 +62,9 @@
        from sys_job_log
    </sql>
    <select id="selectCheckList" parameterType="EnforceOrderQueryBo" resultMap="EnforceOrderResult">
    <select id="selectCheckList"
            parameterType="EnforceOrderQueryBo"
            resultMap="EnforceOrderResult">
        <include refid="selectEnforceOrderVo"/>
        <where>
            <if test="orderNo != null and orderNo != ''">
@@ -69,24 +73,20 @@
            <if test="companyName != null and companyName != ''">
                AND company_name like concat('%', #{companyName}, '%')
            </if>
            <if test="orderStatus != null and orderStatus != ''">
                AND order_status = #{orderStatus}
            </if>
            <if test="checkDeptId != null ">
                AND check_dept_id = #{checkDeptId}
            <if test="checkIds != null and checkIds != '' ">
                AND check_ids like concat('%', #{checkIds}, '%')
            </if>
            <if test="checkLevel != null ">
                AND check_level = #{checkLevel}
            <if test="applyDeptIds != null ">
                AND apply_dept_id in
                <foreach collection="applyDeptIds" item="applyDeptId" open="(" separator="," close=")">
                    #{applyDeptId}
                </foreach>
            </if>
            <if test="checkLevel != null ">
                AND apply_dept_id in #{checkLevel}
            </if>
        </where>
    </select>
</mapper>