fuliqi
2025-01-20 9490c47566a0f253f35a1019fd1b1e1473630d67
ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml
@@ -57,12 +57,15 @@
        <if test="query.start != null and query.end != null">
            AND wo.create_time BETWEEN #{query.start} AND #{query.end}
        </if>
        <if test="query.errorType != null and query.errorType !='' ">
        <if test="query.errorTypeList != null and query.errorTypeList.size>0">
            AND (EXISTS (
            SELECT 1
            FROM t_work_order_error_type twoet
            WHERE twoet.work_order_no = wo.work_order_no
            AND twoet.error_name = #{query.errorType}
            AND twoet.error_name in
            <foreach collection="query.errorTypeList" open="(" close=")" separator="," item="errorType">
                #{errorType}
            </foreach>
            ))
        </if>
    </select>