| | |
| | | <result column="dept_id" property="deptId" /> |
| | | </resultMap> |
| | | |
| | | <select id="listByBomId" resultType="com.ruoyi.production.bean.vo.ProductionBomStructureVo"> |
| | | select pbs.*, |
| | | p.product_name as productName, |
| | | pm.product_id as productId, |
| | | pm.model, |
| | | top1.name as operationName |
| | | from production_bom_structure pbs |
| | | left join product_model pm on pbs.product_model_id = pm.id |
| | | left join product p on pm.product_id = p.id |
| | | left join technology_operation top1 on pbs.technology_operation_id = top1.id |
| | | where pbs.production_order_bom_id = #{bomId} |
| | | order by pbs.id |
| | | </select> |
| | | |
| | | </mapper> |