| | |
| | | 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> |