给出入库明细和出入库汇总报表增加出入库开关的判断
This commit is contained in:
@@ -306,6 +306,9 @@
|
||||
<if test="type != null">
|
||||
and dh.type=#{type}
|
||||
</if>
|
||||
<if test="inOutManageFlag">
|
||||
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
||||
</if>
|
||||
<if test="creatorArray != null">
|
||||
and dh.creator in (
|
||||
<foreach collection="creatorArray" item="creator" separator=",">
|
||||
@@ -367,6 +370,9 @@
|
||||
<if test="type != null">
|
||||
and dh.type=#{type}
|
||||
</if>
|
||||
<if test="inOutManageFlag">
|
||||
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
||||
</if>
|
||||
<if test="creatorArray != null">
|
||||
and dh.creator in (
|
||||
<foreach collection="creatorArray" item="creator" separator=",">
|
||||
@@ -461,6 +467,9 @@
|
||||
<if test="forceFlag">
|
||||
and dh.status = '1'
|
||||
</if>
|
||||
<if test="inOutManageFlag">
|
||||
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
||||
</if>
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
group by di.material_id
|
||||
<if test="offset != null and rows != null">
|
||||
@@ -521,6 +530,9 @@
|
||||
<if test="forceFlag">
|
||||
and dh.status = '1'
|
||||
</if>
|
||||
<if test="inOutManageFlag">
|
||||
and (dh.sub_type!='采购' and dh.sub_type!='采购退货' and dh.sub_type!='销售' and dh.sub_type!='销售退货')
|
||||
</if>
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
group by di.material_id) a
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user