From e41c3a2f9f64516a455819cde40f825b6a5dd9ef Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 22 八月 2025 18:02:02 +0800 Subject: [PATCH] 设备管理首页 --- lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportProductHazardsMapper.xml | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportProductHazardsMapper.xml b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportProductHazardsMapper.xml index ed94b1c..fdaf505 100644 --- a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportProductHazardsMapper.xml +++ b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportProductHazardsMapper.xml @@ -3,7 +3,8 @@ <mapper namespace="org.jeecg.modules.eam.mapper.EamReportProductHazardsMapper"> <select id="queryPageList" resultType="org.jeecg.modules.eam.request.EamReportProductHazardsQuery"> - select erph.*, e.equipment_code, e.equipment_name,e.equipment_model, e.installation_position + select erph.*, e.equipment_code, e.equipment_name,e.equipment_model, e.installation_position, + arr.processing_part,arr.batch_number,arr.quantity from eam_report_product_hazards erph inner join eam_equipment e on erph.equipment_id = e.id @@ -13,4 +14,18 @@ and arr.del_flag=0 ${ew.customSqlSegment} </select> + <select id="queryList" resultType="org.jeecg.modules.eam.dto.EamReportProductHazardsDto"> + select erph.*, e.equipment_code, e.equipment_name,e.equipment_model, e.installation_position, + arr.processing_part,arr.batch_number,arr.quantity,arr.fault_description, + f.factory_name + from eam_report_product_hazards erph + inner join eam_equipment e + on erph.equipment_id = e.id + and e.del_flag=0 + left join eam_report_repair arr + on erph.report_id = arr.id + and arr.del_flag=0 + LEFT JOIN eam_base_factory f ON f.org_code = SUBSTRING ( e.factory_org_code , 1, 6 ) + ${ew.customSqlSegment} + </select> </mapper> -- Gitblit v1.9.3