From 9de1d40d3a61ce166c63a2c07d02d89bf8bdabd0 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期五, 07 三月 2025 16:16:18 +0800 Subject: [PATCH] art: 选择设备查询逻辑修改, 点检工单新增时产线逻辑修改 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/OperationCertificateDetailMapper.xml | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/OperationCertificateDetailMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/OperationCertificateDetailMapper.xml index 6fca9a7..7be6dd5 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/OperationCertificateDetailMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/OperationCertificateDetailMapper.xml @@ -9,8 +9,11 @@ operation_certificate_id = #{mainId} </delete> <select id="selectByMainId" parameterType="java.lang.String" resultType="org.jeecg.modules.eam.entity.OperationCertificateDetail"> - SELECT * - FROM mom_eam_operation_certificate_detail + SELECT t1.*,t3.name equipmentName,t4.deduction_score deductionScore,t4.content deductionScoreName + FROM mom_eam_operation_certificate_detail t1 + left join mom_eam_operation_certificate t2 on t1.operation_certificate_id = t2.id + left join mom_eam_equipment t3 on t3.id = t1.equipment_id + left join mom_eam_base_deduction_item t4 on t4.id = t1.deduction_item WHERE operation_certificate_id = #{mainId} </select> </mapper> -- Gitblit v1.9.3