From ab6ed92b27dab771202620a6e44779660570748d Mon Sep 17 00:00:00 2001 From: hyingbo <1363390067@qq.com> Date: 星期五, 25 七月 2025 10:59:58 +0800 Subject: [PATCH] 安灯管理列表添加当前登陆人的数据筛选逻辑 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/AndonOrderMapper.xml | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/AndonOrderMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/AndonOrderMapper.xml index 9c4dad1..2d6a91c 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/AndonOrderMapper.xml +++ b/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> \ No newline at end of file -- Gitblit v1.9.3