Commit dd73cd4a by 翁国栋 Committed by 284718418@qq.com

运营后台--

更改统计逻辑
parent c02d1f36
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
count( iu.id ) AS totalUser, count( iu.id ) AS totalUser,
ip.policy_date_start as policyDateStart, ip.policy_date_start as policyDateStart,
ip.policy_date_end as policyDateEnd, ip.policy_date_end as policyDateEnd,
ip.total_premium AS totalPremium, sum(iu.price) AS totalPremium,
ip.update_time AS updateTime, ip.update_time AS updateTime,
ip.`status` as `status` ip.`status` as `status`
FROM FROM
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
(select count(id) from insure_policy) AS totaPolicy, (select count(id) from insure_policy) AS totaPolicy,
(select count(org_code) from insure_policy) AS totalCompany, (select count(org_code) from insure_policy) AS totalCompany,
count( iu.id ) AS totalUser, count( iu.id ) AS totalUser,
IFNULL((select sum(total_premium) from insure_policy),0) as totalPremium, IFNULL((select sum(price) from insure_user),0) as totalPremium,
ipp.update_time AS updateTime ipp.update_time AS updateTime
FROM FROM
insure_product ip insure_product ip
......
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