| | |
| | | p.product_name, |
| | | pp.name as process_name, |
| | | pm.product_id, |
| | | pm.model |
| | | pm.model, |
| | | pm.material_code as materialCode |
| | | from |
| | | product_structure ps |
| | | left join product_model pm on ps.product_model_id = pm.id |
| | |
| | | and ps.process_id=#{processId} |
| | | order by ps.id |
| | | </select> |
| | | <select id="selectByIds" resultType="com.ruoyi.production.dto.ProductStructureDto"> |
| | | select * |
| | | from product_structure |
| | | where id in |
| | | <foreach item="item" collection="parentIds" separator="," open="(" close=")" index=""> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |