From 750d08105ea928e547ec721c367a70ac946a0aef Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期五, 29 十一月 2024 14:54:49 +0800 Subject: [PATCH] App文件上传功能 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeWorkOrderMapper.xml | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeWorkOrderMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeWorkOrderMapper.xml index 2cdd204..ccf7545 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeWorkOrderMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeWorkOrderMapper.xml @@ -269,12 +269,24 @@ <where> AND ord.deleted = 0 + <if test = "dispatcherId != null"> + AND ord.dispatcher_id = #{dispatcherId} + </if> + + <if test = "inspectorId != null"> + AND ord.inspector_id = #{inspectorId} + </if> + <if test = "dispatcher != null and dispatcher !=''"> AND us1.name like CONCAT('%',#{dispatcher},'%') </if> <if test = "inspector != null and inspector !=''"> AND us2.name like CONCAT('%',#{inspector},'%') + </if> + + <if test = "state != null"> + AND ord.state = #{state} </if> <if test = "timeStart != null and timeStop != null"> @@ -308,7 +320,8 @@ WHEN res.state = 2 THEN '宸查�氳繃' WHEN res.state = 3 THEN '宸查┏鍥�' ELSE '鏈笂鎶�' - END AS processingState + END AS processingState, + res.id AS proResultId FROM ope_work_order ord INNER JOIN ba_user us1 ON us1.id = ord.dispatcher_id INNER JOIN ba_user us2 ON us2.id = ord.inspector_id @@ -317,6 +330,14 @@ <where> AND ord.deleted = 0 + <if test = "dispatcherId != null"> + AND ord.dispatcher_id = #{dispatcherId} + </if> + + <if test = "inspectorId != null"> + AND ord.inspector_id = #{inspectorId} + </if> + <if test = "dispatcher != null and dispatcher !=''"> AND us1.name like CONCAT('%',#{dispatcher},'%') </if> @@ -325,6 +346,10 @@ AND us2.name like CONCAT('%',#{inspector},'%') </if> + <if test = "state != null"> + AND ord.state = #{state} + </if> + <if test = "timeStart != null and timeStop != null"> AND ord.dispatch_time BETWEEN #{timeStart} AND #{timeStop} </if> -- Gitblit v1.8.0