| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectProductionProductMainDto" |
| | | resultType="com.ruoyi.production.dto.ProductionProductMainDto"> |
| | | SELECT ppm.id, |
| | | ppm.product_no, |
| | | ppm.post_name, |
| | | ppm.schedule, |
| | | ppm.reporting_time, |
| | | ppo.quantity, |
| | | ppo.scrap_qty, |
| | | ppo.total_quantity |
| | | FROM production_product_main ppm |
| | | left join production_product_output ppo on ppm.id = ppo.product_main_id |
| | | WHERE product_order_id=#{productOrderId} |
| | | order by reporting_time |
| | | </select> |
| | | |
| | | <delete id="deleteByWorkOrderIds" parameterType="java.util.List"> |
| | | DELETE FROM production_product_main |