| | |
| | | pm.model as productModelName, |
| | | ppo.quantity, |
| | | ppo.scrap_qty, |
| | | ppo.add_qty, |
| | | pm.unit, |
| | | sl.sales_contract_no salesContractNo |
| | | from |
| | |
| | | left join sales_ledger sl on sl.id = po.sales_ledger_id |
| | | left join sys_user u on u.user_id = ppm.user_id |
| | | <where> |
| | | <if test="c.nickName != null and c.nickName != ''"> |
| | | and u.nick_name like concat('%',#{c.nickName},'%') |
| | | <if test="c.teamNames != null and c.teamNames != ''"> |
| | | and ppm.team_names like concat('%',#{c.teamNames},'%') |
| | | </if> |
| | | <if test="c.workOrderNo != null and c.workOrderNo != ''"> |
| | | and pwo.work_order_no like concat('%',#{c.workOrderNo},'%') |
| | |
| | | IFNULL( |
| | | TIMESTAMPDIFF(MINUTE, ppm.start_time, ppm.end_time), |
| | | 0 |
| | | ) AS work_minutes |
| | | ) AS work_minutes, |
| | | ppo.add_qty, |
| | | ppo.scrap_qty, |
| | | ppo.replenish_qty |
| | | FROM |
| | | production_product_main ppm |
| | | LEFT JOIN sales_ledger_production_accounting slpa ON slpa.product_main_id = ppm.id |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |