From a8ddac646d5129e9818ea82f404d0c0a8d2bc239 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期四, 09 十一月 2023 10:39:25 +0800 Subject: [PATCH] 设备参数阈值管理接口 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/RepairOrderMapper.xml | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/RepairOrderMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/RepairOrderMapper.xml index 65a1ea3..aa3a807 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/RepairOrderMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/RepairOrderMapper.xml @@ -15,6 +15,10 @@ t2.name equipmentName, t2.model equipmentModel, t2.specific_equipment specificEquipment, + t1.fault_reason faultReason, + t1.fault_phenomenon faultPhenomenon, + t1.preventive_measure preventiveMeasure, + t1.fault_remove faultRemove, t1.fault_description faultDescription, t1.fault_time faultTime, t1.photo photo, @@ -57,6 +61,18 @@ </if> <if test="status != null and status != ''"> and t1.status = #{status} + </if> + <if test="equipmentCategoryId != null and equipmentCategoryId != ''"> + and t2.equipment_category_id = #{equipmentCategoryId} + </if> + <if test="factoryModelId != null and factoryModelId != ''"> + and t2.factory_model_id = #{factoryModelId} + </if> + <if test="specificEquipment != null and specificEquipment != ''"> + and t2.specific_equipment = #{specificEquipment} + </if> + <if test="teamId != null and teamId != ''"> + and t1.team_id = #{teamId} </if> and t1.repair_order_type = #{repairOrderType} order by t1.create_time desc @@ -104,7 +120,7 @@ LEFT JOIN mom_eam_spare_part t3 on t3.id =t1.spare_part_id LEFT JOIN mom_base_constructor t4 on t4.id =t3.constructor_id LEFT JOIN mom_base_unit t5 on t5.id =t1.main_unit_id - where t1.del_flag = 0 and t1.outbound_main_quantity != 0 and (ISNULL(t1.outbound_main_quantity,0)-ISNULL(t1.use_quantity,0)) != 0 + where t1.del_flag = 0 and t3.del_flag = 0 and t1.outbound_main_quantity != 0 and (ISNULL(t1.outbound_main_quantity,0)-ISNULL(t1.use_quantity,0)) != 0 <if test="status != null and status != ''"> and t1.status = #{status} </if> -- Gitblit v1.9.3