Commit 9100c3a0 authored by lcl's avatar lcl

小数点处理

parent 5b95c132
...@@ -391,14 +391,14 @@ ...@@ -391,14 +391,14 @@
<select id="selectAmountAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo"> <select id="selectAmountAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo">
select select
bi.amount_source,count(bi.id) businessCount,sum(bi.investment_amount) totalAmount bi.amount_source,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount
<include refid="businessSearchSql"/> <include refid="businessSearchSql"/>
group by bi.amount_source group by bi.amount_source
</select> </select>
<select id="selectTypeAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo"> <select id="selectTypeAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo">
select select
bi.project_type,count(bi.id) businessCount,sum(bi.investment_amount) totalAmount bi.project_type,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount
<include refid="businessSearchSql"/> <include refid="businessSearchSql"/>
group by bi.project_type group by bi.project_type
</select> </select>
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<select id="selectCooperationTop" resultType="com.dsk.system.domain.customer.vo.CustomerAnalyzeVo"> <select id="selectCooperationTop" resultType="com.dsk.system.domain.customer.vo.CustomerAnalyzeVo">
select select
ct.customer_id, ct.company_name, ct.company_id, ct.uip_id, count(bi.id) businessCount, ct.customer_id, ct.company_name, ct.company_id, ct.uip_id, count(bi.id) businessCount,
sum(bi.investment_amount) totalAmount ROUND(sum(bi.investment_amount), 4) totalAmount
from customer ct from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id join customer_user ctu on ct.customer_id = ctu.customer_id
left join business_info bi on (bi.customer_id = ct.customer_id and bi.status = 2) left join business_info bi on (bi.customer_id = ct.customer_id and bi.status = 2)
......
Markdown is supported
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