|
@@ -219,7 +219,9 @@
|
|
left join common_company c on c.comp_id = b.comp_id and c.delete_flag = 0
|
|
left join common_company c on c.comp_id = b.comp_id and c.delete_flag = 0
|
|
left join in_out_warehouse_task i on w.contract_no = i.move_task_no and i.delete_flag = 0 and i.in_out_type =
|
|
left join in_out_warehouse_task i on w.contract_no = i.move_task_no and i.delete_flag = 0 and i.in_out_type =
|
|
'移库出库'
|
|
'移库出库'
|
|
- and i.receive_warehouse = #{warehouseName}
|
|
|
|
|
|
+ <if test="warehouseName != null and warehouseName != ''">
|
|
|
|
+ AND i.receive_warehouse = #{warehouseName}
|
|
|
|
+ </if>
|
|
left join tran_car_info t on t.contract_no = w.contract_no and t.delete_flag = 0 and t.tran_car_no =
|
|
left join tran_car_info t on t.contract_no = w.contract_no and t.delete_flag = 0 and t.tran_car_no =
|
|
w.tran_car_no and t.car_no = w.car_no
|
|
w.tran_car_no and t.car_no = w.car_no
|
|
left join tran_settlement_report r on r.car_id = t.id and r.delete_flag = 0
|
|
left join tran_settlement_report r on r.car_id = t.id and r.delete_flag = 0
|