From 9b015b51b72ba050b4c38a6ba79eb45b7065e67d Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期四, 25 七月 2024 10:11:52 +0800 Subject: [PATCH] 调整sql --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/MaintenanceStandardMapper.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/MaintenanceStandardMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/MaintenanceStandardMapper.xml index ec02478..aab28b6 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/MaintenanceStandardMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/MaintenanceStandardMapper.xml @@ -29,7 +29,7 @@ left join sys_depart t4 on t2.use_id = t4.id left join mom_base_team t5 on t2.team_id = t5.id left join (select * from v_sys_dict where dict_code = 'assign_mode') t6 on t1.assign_mode = t6.item_value - where t1.del_flag = 0 and t1.type = #{params.type} + where t1.del_flag = 0 and t1.type = #{params.type} and t2.technology_status in ('qualified','limitedUse') <if test="params.useId != null and params.useId != ''"> and t2.use_id = #{params.useId} </if> @@ -78,7 +78,7 @@ left join sys_depart t4 on t2.use_id = t4.id left join mom_base_team t5 on t2.team_id = t5.id left join (select * from v_sys_dict where dict_code = 'assign_mode') t6 on t1.assign_mode = t6.item_value - where t1.del_flag = 0 and t1.type = #{params.type} and t2.equipment_importance_id in ('A','B','C') + where t1.del_flag = 0 and t1.type = #{params.type} and t2.equipment_importance_id in ('A','B','C') and t2.technology_status in ('qualified','limitedUse') <if test="params.useId != null and params.useId != ''"> and t2.use_id = #{params.useId} </if> @@ -135,7 +135,9 @@ t1.write_person as writePerson, t1.audit_person as auditPerson, t1.approval_person as approvalPerson, - t1.lose_efficacy_person as loseEfficacyPerson + t1.lose_efficacy_person as loseEfficacyPerson, + t1.maintenance_standard_uda1 as maintenanceStandardUda1, + t1.maintenance_standard_uda2 as maintenanceStandardUda2 FROM mom_eam_maintenance_standard t1 LEFT JOIN mom_eam_equipment t2 ON t1.equipment_id = t2.id -- Gitblit v1.9.3