Commit 428f9439 authored by 廖旭伟's avatar 廖旭伟

统计bug修改

parent 4d866568
......@@ -6,8 +6,8 @@
<!-- 人均访问深度 -->
<select id="getDepthAvg" parameterType="com.mortals.xhx.module.page.model.pdu.PageCensusPdu" resultType="com.mortals.xhx.module.page.model.vo.AccessTrendCensusVo">
SELECT
IFNULL(FORMAT(AVG(t.depthValue),2),0) AS depthAvg,
IFNULL(FORMAT(sum(t.depthValue)/count(t.id),2),0) AS singleDepth
IFNULL(ROUND(AVG(t.depthValue),2),0) AS depthAvg,
IFNULL(ROUND(sum(t.depthValue)/count(t.id),2),0) AS singleDepth
FROM
mortals_xhx_page_access_depth t
WHERE
......
......@@ -8,7 +8,7 @@
t.eventCode,
t.eventName,
FLOOR(count(id)/(DATEDIFF(MAX(t.createTime),MIN(t.createTime))+1)) as dayAvg,
FORMAT(AVG(t.takeTime)/1000,2) as takeTimeAvg,
ROUND(AVG(t.takeTime)/1000,2) as takeTimeAvg,
count(id) as total
FROM
mortals_xhx_page_event t
......
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