| | |
| | | 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> |
| | | and ppm.status = 1 |
| | | and ifnull(ppo.quantity, 0) > 0 |
| | | <if test="c.workOrderIds != null and c.workOrderIds.size() > 0"> |
| | | and ppm.work_order_id in |
| | | <foreach collection="c.workOrderIds" item="workOrderId" open="(" separator="," close=")"> |
| | | #{workOrderId} |
| | | </foreach> |
| | | </if> |
| | | <if test="c.nickName != null and c.nickName != ''"> |
| | | and u.nick_name like concat('%',#{c.nickName},'%') |
| | | </if> |
| | |
| | | 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> |
| | | and ppm.status = 1 |
| | | and ifnull(ppo.quantity, 0) > 0 |
| | | <if test="c.workOrderIds != null and c.workOrderIds.size() > 0"> |
| | | and ppm.work_order_id in |
| | | <foreach collection="c.workOrderIds" item="workOrderId" open="(" separator="," close=")"> |
| | | #{workOrderId} |
| | | </foreach> |
| | | </if> |
| | | <if test="c.workOrderId != null"> |
| | | and ppm.work_order_id = #{c.workOrderId} |
| | | </if> |