解决仓库为空的时候实时库存查询的bug
This commit is contained in:
parent
450985af37
commit
ff21b5851f
@ -173,7 +173,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>
|
||||||
)
|
)
|
||||||
@ -210,7 +210,7 @@
|
|||||||
left join jsh_material m on di.material_id=m.id and ifnull(m.delete_flag,'0') !='1'
|
left join jsh_material m on di.material_id=m.id and ifnull(m.delete_flag,'0') !='1'
|
||||||
left join jsh_material_extend me on me.id=di.material_extend_id and ifnull(me.delete_Flag,'0') !='1'
|
left join jsh_material_extend me on me.id=di.material_extend_id and ifnull(me.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>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user