lyh
2 天以前 e41c3a2f9f64516a455819cde40f825b6a5dd9ef
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>