From c127accdddb76d11847f41b5685f5ef5e9e988d7 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期三, 13 三月 2024 09:14:42 +0800
Subject: [PATCH] 设备管理问题修改
---
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml | 70 +++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml
index 05462b7..796eb9e 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml
@@ -252,11 +252,16 @@
t1.line_id lineId,
t1.is_meta isMeta,
t1.id showId,
+ t1.is_line_equip isLineEquip,
+ t1.is_judging isJudging,
t3.sumOfEquipment
from mom_eam_equipment t1
left join (select * from mom_eam_equipment_category where del_flag = 0) t2 on t1.equipment_category_id = t2.id
left join(select count(id) sumOfEquipment,line_id from mom_eam_equipment where del_flag=0 group by line_id) t3 on t3.line_id = t1.id
where t1.del_flag = 0
+ <if test="equipmentCategoryId != null and equipmentCategoryId != ''">
+ and t1.equipment_category_id = #{equipmentCategoryId}
+ </if>
<if test="num != null and num != ''">
and t1.num like concat('%',#{num},'%')
</if>
@@ -287,8 +292,20 @@
<if test="equipmentStatus != null and equipmentStatus != ''">
and t1.equipment_status = #{equipmentStatus}
</if>
+ <if test="isLineEquip != null and isLineEquip != ''">
+ and t1.is_line_equip = #{isLineEquip}
+ </if>
+ <if test="isLine != null and isLine != ''">
+ and t1.is_line = #{isLine}
+ </if>
<if test="specificEquipment != null and specificEquipment != ''">
and t1.specific_equipment = #{specificEquipment}
+ </if>
+ <if test="equipNums.size!=0">
+ and t1.num in
+ <foreach collection="equipNums" open="(" separator="," close=")" item="num">
+ #{num}
+ </foreach>
</if>
<if test="warrantyStart != null">
and DATEDIFF(day,t1.warranty_start,#{warrantyStart})=0
@@ -341,4 +358,57 @@
order by t9.type
</select>
+ <select id="getEquipmentListAllStandard" parameterType="Map" resultType="Map">
+ SELECT
+ t1.id,
+ t2.name as categoryName,
+ t1.num as equipmentNum,
+ t1.name as equipmentName,
+ t1.model as equipmentModel,
+ t1.equipment_importance_id as abc,
+ t1.precision_parameters as precisionParameters,
+ t1.precision_parameters_template_id as precisionParametersTemplateId,
+ t3.depart_name as departName,
+ t4.item_text as technologyStatus,
+ t5.item_text as specificEquipment
+ FROM
+ mom_eam_equipment t1
+ LEFT JOIN mom_eam_equipment_category t2 ON t1.equipment_category_id = t2.id
+ LEFT JOIN sys_depart t3 ON t1.use_id = t3.id
+ LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'technology_status' ) t4 ON t4.item_value = t1.technology_status
+ LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'specific_equipment' ) t5 ON t5.item_value = t1.specific_equipment
+ WHERE t1.del_flag = '0'
+ <if test="params.num != null and params.num != ''">
+ and t1.num like concat('%',#{params.num},'%')
+ </if>
+ <if test="params.name != null and params.name != ''">
+ and t1.name like concat('%',#{params.name},'%')
+ </if>
+ <if test="params.model != null and params.model != ''">
+ and t1.model like concat('%',#{params.model},'%')
+ </if>
+ <if test="params.useId != null and params.useId != ''">
+ and t1.use_id = #{params.useId}
+ </if>
+ <if test="params.equipmentImportanceId != null and params.equipmentImportanceId != ''">
+ and t1. equipment_importance_id = #{params.equipmentImportanceId}
+ </if>
+ <if test="params.technologyStatus != null and params.technologyStatus != ''">
+ and t1.technology_status = #{params.technologyStatus}
+ </if>
+ <if test="params.equipmentStatus != null and params.equipmentStatus != ''">
+ and t1.equipment_status = #{params.equipmentStatus}
+ </if>
+ <if test="params.specificEquipment != null and params.specificEquipment != ''">
+ and t1.specific_equipment = #{params.specificEquipment}
+ </if>
+ <if test="params.factoryModelId != null and params.factoryModelId != ''">
+ and t1.factory_model_id = #{params.factoryModelId}
+ </if>
+ <if test="params.equipmentCategoryId != null and params.equipmentCategoryId != ''">
+ and t1.equipment_category_id = #{params.equipmentCategoryId}
+ </if>
+ ORDER BY t1.create_time desc
+ </select>
+
</mapper>
--
Gitblit v1.9.3