Skip to content

Commit

Permalink
解决首页统计柱状图计算逻辑的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jishenghua committed Mar 1, 2023
1 parent f8122a5 commit 561d3ea
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@

<select id="inOrOutPrice" resultType="java.math.BigDecimal">
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
and di.id is not null
and dh.type=#{type} and dh.sub_type=#{subType}
and dh.oper_time &gt;= #{beginTime}
and dh.oper_time &lt;= #{endTime}
Expand All @@ -468,11 +470,14 @@
)
</if>
and ifnull(dh.delete_flag,'0') !='1'
and ifnull(di.delete_flag, '0') != '1'
</select>

<select id="inOrOutRetailPrice" resultType="java.math.BigDecimal">
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
and di.id is not null
and dh.type=#{type} and dh.sub_type=#{subType}
and dh.oper_time &gt;= #{beginTime}
and dh.oper_time &lt;= #{endTime}
Expand All @@ -484,6 +489,7 @@
)
</if>
and ifnull(dh.delete_flag,'0') !='1'
and ifnull(di.delete_flag, '0') != '1'
</select>

<select id="getStockCheckSumByDepotList" resultType="java.math.BigDecimal">
Expand Down

0 comments on commit 561d3ea

Please sign in to comment.