From 643e1af242a139b408969dfa1ba2f52e554c8c41 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期三, 25 十月 2023 17:03:53 +0800 Subject: [PATCH] 已经处理的问题 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentReportRepairMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentReportRepairMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentReportRepairMapper.xml index ac70eca..79d1969 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentReportRepairMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentReportRepairMapper.xml @@ -26,6 +26,7 @@ t2.num equipmentNum, t2.name equipmentName, t2.model equipmentModel, + t2.team_id teamId, t2.specification equipmentSpecification, t3.depart_name departName, t4.item_text urgencyName, @@ -35,6 +36,7 @@ mom_eam_equipment_report_repair t1 left join mom_eam_equipment t2 on t1.equipment_id = t2.id left join sys_depart t3 on t1.use_depart_id = t3.id + left join sys_user t8 on t2.team_id = t2.team_id left join (select * from v_sys_dict where dict_code='urgency') t4 on t1.urgency = t4.item_value left join (select * from v_sys_dict where dict_code='equipment_report_repair_status') t5 on t1.status = t5.item_value left join (select * from v_sys_dict where dict_code='is_stop') t6 on t1.is_stop = t6.item_value @@ -48,6 +50,15 @@ <if test="params.equipmentNum != null and params.equipmentNum != ''"> and t2.num like concat('%',#{params.equipmentNum},'%') </if> + <if test="params.equipmentName != null and params.equipmentName != ''"> + and t2.name like concat('%',#{params.equipmentName},'%') + </if> + <if test="params.status != null and params.status != ''"> + and t1.status = #{params.status} + </if> + <if test="params.teamId != null and params.teamId != ''"> + and t2.team_id = #{params.teamId} + </if> ORDER BY t1.create_time desc </select> </mapper> -- Gitblit v1.9.3