给零售、销售、采购统计接口增加仓库查询条件

This commit is contained in:
季圣华
2023-03-30 23:36:03 +08:00
parent 2f9cb7d824
commit a16cfc4da5
2 changed files with 29 additions and 12 deletions

View File

@@ -466,9 +466,9 @@
select ifnull(sum(basic_number),0) as BasicNumber from jsh_depot_item di,jsh_depot_head dh
where di.header_id = dh.id
and dh.type=#{type} and dh.sub_type=#{subType}
and di.material_id =#{MId}
and dh.oper_time >= #{beginTime}
and dh.oper_time <= #{endTime}
and di.material_id =#{MId}
<if test="creatorArray != null">
and dh.creator in (
<foreach collection="creatorArray" item="creator" separator=",">
@@ -500,9 +500,11 @@
select ifnull(sum(all_price),0) as AllPrice from jsh_depot_item di,jsh_depot_head dh
where di.header_id = dh.id
and dh.type=#{type} and dh.sub_type=#{subType}
and di.material_id =#{MId}
and dh.oper_time &gt;= #{beginTime}
and dh.oper_time &lt;= #{endTime}
<if test="MId != null">
and di.material_id =#{MId}
</if>
<if test="creatorArray != null">
and dh.creator in (
<foreach collection="creatorArray" item="creator" separator=",">