From 7542603a0f22dd73287556c9ec0df39184091ab0 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期二, 10 六月 2025 10:30:32 +0800
Subject: [PATCH] 点检报表增加管理制度
---
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml | 66 +++++++++++++++++++++++++++++++++
1 files changed, 66 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 f4e7413..f81c85d 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
@@ -588,4 +588,70 @@
ORDER BY t1.create_time desc
</select>
+ <select id="exportXlsNew" parameterType="Map" resultType="map">
+ SELECT
+ t1.num,
+ t1.name,
+ t2.depart_name AS useDepart,
+ t2.depart_name AS manageDepart,
+ t4.name as workCenter,
+ t5.name as factoryModel,
+ t6.name as area,
+ t7.name as teamName,
+ t8.name as equipmentCategoryName,
+ t9.item_text as equipmentStatus,
+ t10.item_text as technologyStatus,
+ t1.equipment_importance_id as abc,
+ t11.item_text as specificEquipment,
+ t1.security_configuration as securityConfiguration,
+ t12.item_text as coolingSystem,
+ t1.fire_extinguisher as fireExtinguisher,
+ t1.fire_extinguisher_validity_period as fireExtinguisherValidityPeriod,
+ t13.item_text as operatingSystem,
+ t1.system,
+ t1.port,
+ t1.coordinate_num as coordinateNum,
+ t1.equipment_uda3 as equipmentUda3,
+ t1.equipment_uda4 as equipmentUda4,
+ t1.equipment_Uda5 as equipmentUda5,
+ t1.location,
+ CONVERT(VARCHAR(10), t1.leave_factory_date, 120) as leaveFactoryDate,
+ t1.project_approval_no as projectApprovalNo,
+ t1.fund_source as fundSource,
+ CONVERT(VARCHAR(10), t1.acceptance_check_date, 120) as acceptanceCheckDate,
+ t1.factory_number as factoryNumber,
+ t15.name as constructor,
+ t1.source_country as sourceCountry,
+ t1.model as equipmentModel,
+ t1.specification as equpmentSspecification,
+ t1.gpo,
+ t1.warranty_start as warrantyStart,
+ t1.warranty_end as warrantyEnd,
+ t14.item_text as propertyStatus,
+ CONVERT(VARCHAR(10), t1.third_maintenance_time, 120) as thirdMaintenanceTime,
+ CONVERT(VARCHAR(10), t1.next_technology_status_qualification_time, 120) as nextTechnologyStatusQualificationTime,
+ t1.create_by as createBy,
+ CONVERT(VARCHAR(10), t1.create_time, 120) as createTime,
+ t1.update_by as updateBy,
+ CONVERT(VARCHAR(10), t1.update_time, 120) as updateTime
+ FROM
+ mom_eam_equipment t1
+ LEFT JOIN sys_depart t2 ON t1.use_id = t2.id
+ left join sys_depart t3 on t1.manage_id = t3.id
+ left join mom_base_area t4 on t1.work_center_id = t4.id
+ left join mom_base_area t5 on t1.factory_model_id = t5.id
+ left join mom_base_area t6 on t1.area_id = t6.id
+ left join mom_base_team t7 on t1.team_id = t7.id
+ left join mom_eam_equipment_category t8 on t1.equipment_category_id = t8.id
+ left join (SELECT * FROM v_sys_dict WHERE dict_code = 'equipment_status') t9 on t1.equipment_status = t9.item_value
+ left join (SELECT * FROM v_sys_dict WHERE dict_code = 'technology_status') t10 on t1.technology_status =t10.item_value
+ left join (SELECT * FROM v_sys_dict WHERE dict_code = 'specific_equipment') t11 on t1.specific_equipment = t11.item_value
+ left join (SELECT * FROM v_sys_dict WHERE dict_code = 'cooling_system') t12 on t1.cooling_system = t12.item_value
+ left join (SELECT * FROM v_sys_dict WHERE dict_code = 'operation_flag') t13 on t1.operating_system = t13.item_value
+ left join (SELECT * FROM v_sys_dict WHERE dict_code = 'property_status') t14 on t1.property_status = t14.item_value
+ left join mom_base_constructor t15 on t1.constructor_id = t15.id
+ where t1.del_flag = '0' ORDER BY t1.create_time DESC
+
+ </select>
+
</mapper>
--
Gitblit v1.9.3