解决库存流水接口逻辑的sql查询bug
This commit is contained in:
@@ -253,7 +253,7 @@
|
|||||||
<if test="inOutManageFlag">
|
<if test="inOutManageFlag">
|
||||||
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
||||||
</if>
|
</if>
|
||||||
<if test="depotIdArray != null">
|
<if test="depotIdArray != null and depotIdArray.length>0">
|
||||||
and di.depot_id in (
|
and di.depot_id in (
|
||||||
<foreach collection="depotIdArray" item="depotId" separator=",">#{depotId}</foreach>
|
<foreach collection="depotIdArray" item="depotId" separator=",">#{depotId}</foreach>
|
||||||
)
|
)
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
select dh.number from jsh_depot_head dh
|
select dh.number from jsh_depot_head dh
|
||||||
left join jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
|
left join jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
|
||||||
where dh.type='出库' and dh.sub_type='调拨'
|
where dh.type='出库' and dh.sub_type='调拨'
|
||||||
<if test="depotIdArray != null">
|
<if test="depotIdArray != null and depotIdArray.length>0">
|
||||||
and di.another_depot_id in (
|
and di.another_depot_id in (
|
||||||
<foreach collection="depotIdArray" item="depotId" separator=",">#{depotId}</foreach>
|
<foreach collection="depotIdArray" item="depotId" separator=",">#{depotId}</foreach>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user