|
|
@ -847,6 +847,8 @@ |
|
|
|
left JOIN logpm_warehouse_tray lwt on lwtg.tray_id= lwt.id |
|
|
|
left JOIN logpm_warehouse_tray lwt on lwtg.tray_id= lwt.id |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
ldsa.is_deleted = 0 and ldsa.order_status IN ( 10, 20, 30, 40, 50, 60, 70 ) |
|
|
|
ldsa.is_deleted = 0 and ldsa.order_status IN ( 10, 20, 30, 40, 50, 60, 70 ) |
|
|
|
|
|
|
|
and ldsa.hand_quantity > 0 |
|
|
|
|
|
|
|
and ldsa.genre = 1 |
|
|
|
<if test="paramMap.warehouseId != null and paramMap.warehouseId != ''"> |
|
|
|
<if test="paramMap.warehouseId != null and paramMap.warehouseId != ''"> |
|
|
|
and ldsa.warehouse_id = #{paramMap.warehouseId} |
|
|
|
and ldsa.warehouse_id = #{paramMap.warehouseId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|