Commit e1431142 authored by 季圣华's avatar 季圣华
Browse files

解决销售统计报错的bug

parent e975b414
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
</select> </select>
<select id="buyOrSaleNumber" resultType="java.math.BigDecimal"> <select id="buyOrSaleNumber" resultType="java.math.BigDecimal">
select sum(BasicNumber) as BasicNumber from jsh_depotitem di,jsh_depothead dh select ifnull(sum(BasicNumber),0) as BasicNumber from jsh_depotitem di,jsh_depothead dh
where di.HeaderId = dh.id where di.HeaderId = dh.id
and dh.type='${type}' and dh.subType='${subType}' and dh.type='${type}' and dh.subType='${subType}'
and di.MaterialId =${MId} and di.MaterialId =${MId}
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
</select> </select>
<select id="buyOrSalePrice" resultType="java.math.BigDecimal"> <select id="buyOrSalePrice" resultType="java.math.BigDecimal">
select sum(AllPrice) as AllPrice from jsh_depotitem di,jsh_depothead dh select ifnull(sum(AllPrice),0) as AllPrice from jsh_depotitem di,jsh_depothead dh
where di.HeaderId = dh.id where di.HeaderId = dh.id
and dh.type='${type}' and dh.subType='${subType}' and dh.type='${type}' and dh.subType='${subType}'
and di.MaterialId =${MId} and di.MaterialId =${MId}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment