| | |
| | | end as workOrderStatus, |
| | | su.nick_name as nickName, |
| | | ifnull(ppo.quantity, 0) as quantity, |
| | | ifnull(ppo.rework_minor_qty, 0) as reworkMinorQty, |
| | | ifnull(ppo.rework_major_qty, 0) as reworkMajorQty, |
| | | ifnull(ppo.scrap_qty, 0) as scrapQty, |
| | | p.product_name as productName, |
| | | ifnull(p.standard_quantity, 0) as productStandardQuantity, |
| | |
| | | <if test="c.process != null and c.process != ''"> |
| | | and poro.operation_name like concat('%', #{c.process}, '%') |
| | | </if> |
| | | <if test="c.majorCategory != null and c.majorCategory != ''"> |
| | | and ppm.major_category = #{c.majorCategory} |
| | | </if> |
| | | <if test="c.schedulingDate != null"> |
| | | and date(ppm.create_time) = #{c.schedulingDate} |
| | | </if> |
| | |
| | | and ppm.id = #{c.productMainId} |
| | | </if> |
| | | </where> |
| | | order by ppm.create_time desc |
| | | order by ppm.product_no desc |
| | | </select> |
| | | |
| | | <select id="getOrderByMainId" resultType="com.ruoyi.production.pojo.ProductionOrder"> |