Commit 669fd39d by 翁国栋

运营后台--

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