Lius
2025-08-01 60311724f9afc274f15cd07320947aca8adf27e4
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/AndonOrderMapper.xml
@@ -35,4 +35,42 @@
        ORDER BY
            ao.create_time
    </select>
    <select id="pageList" resultType="org.jeecg.modules.mdc.entity.AndonOrder">
        SELECT
            id,
            equipment_id,
            andon_type,
            operator,
            operate_time,
            responder,
            response_time,
            processor,
            process_time,
            order_status,
            problem_descreption,
            resolution_descreption,
            image_files,
            del_flag,
            create_by,
            create_time,
            update_by,
            update_time,
            call_reason,
            plant_name
        FROM
            andon_order
        WHERE
            del_flag = 0
          AND (operator = #{userId} OR responder = #{userId} OR processor = #{userId})
        <if test="andonOrder.equipmentId != null and andonOrder.equipmentId != '' ">
            AND equipment_id LIKE CONCAT(CONCAT('%',#{andonOrder.equipmentId}),'%')
        </if>
        <if test="andonOrder.andonType != null and andonOrder.andonType != '' ">
            AND andon_type = #{andonOrder.andonType}
        </if>
        <if test="andonOrder.orderStatus != null and andonOrder.orderStatus != '' ">
            AND order_status = #{andonOrder.orderStatus}
        </if>
    </select>
</mapper>