解决首页统计柱状图计算逻辑的bug
This commit is contained in:
@@ -456,7 +456,9 @@
|
|||||||
|
|
||||||
<select id="inOrOutPrice" resultType="java.math.BigDecimal">
|
<select id="inOrOutPrice" resultType="java.math.BigDecimal">
|
||||||
select ifnull(sum(discount_last_money),0) as allMoney from jsh_depot_head dh
|
select ifnull(sum(discount_last_money),0) as allMoney from jsh_depot_head dh
|
||||||
|
left join jsh_depot_item di on dh.id = di.header_id
|
||||||
where 1=1
|
where 1=1
|
||||||
|
and di.id is not null
|
||||||
and dh.type=#{type} and dh.sub_type=#{subType}
|
and dh.type=#{type} and dh.sub_type=#{subType}
|
||||||
and dh.oper_time >= #{beginTime}
|
and dh.oper_time >= #{beginTime}
|
||||||
and dh.oper_time <= #{endTime}
|
and dh.oper_time <= #{endTime}
|
||||||
@@ -468,11 +470,14 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
and ifnull(dh.delete_flag,'0') !='1'
|
and ifnull(dh.delete_flag,'0') !='1'
|
||||||
|
and ifnull(di.delete_flag, '0') != '1'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="inOrOutRetailPrice" resultType="java.math.BigDecimal">
|
<select id="inOrOutRetailPrice" resultType="java.math.BigDecimal">
|
||||||
select ifnull(sum(total_price),0) as allMoney from jsh_depot_head dh
|
select ifnull(sum(total_price),0) as allMoney from jsh_depot_head dh
|
||||||
|
left join jsh_depot_item di on dh.id = di.header_id
|
||||||
where 1=1
|
where 1=1
|
||||||
|
and di.id is not null
|
||||||
and dh.type=#{type} and dh.sub_type=#{subType}
|
and dh.type=#{type} and dh.sub_type=#{subType}
|
||||||
and dh.oper_time >= #{beginTime}
|
and dh.oper_time >= #{beginTime}
|
||||||
and dh.oper_time <= #{endTime}
|
and dh.oper_time <= #{endTime}
|
||||||
@@ -484,6 +489,7 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
and ifnull(dh.delete_flag,'0') !='1'
|
and ifnull(dh.delete_flag,'0') !='1'
|
||||||
|
and ifnull(di.delete_flag, '0') != '1'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getStockCheckSumByDepotList" resultType="java.math.BigDecimal">
|
<select id="getStockCheckSumByDepotList" resultType="java.math.BigDecimal">
|
||||||
|
|||||||
Reference in New Issue
Block a user