Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
8bcc6ca4
Commit
8bcc6ca4
authored
Apr 15, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
b13740b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
portal-manager/src/main/resources/sqlmap/module/page/PageAccessDepthMapperExt.xml
...resources/sqlmap/module/page/PageAccessDepthMapperExt.xml
+6
-6
No files found.
portal-manager/src/main/resources/sqlmap/module/page/PageAccessDepthMapperExt.xml
View file @
8bcc6ca4
...
...
@@ -6,14 +6,14 @@
<!-- 人均访问深度 -->
<select
id=
"getDepthAvg"
parameterType=
"com.mortals.xhx.module.page.model.pdu.PageCensusPdu"
resultType=
"com.mortals.xhx.module.page.model.vo.AccessTrendCensusVo"
>
SELECT
FORMAT(AVG(t.depthValue),2
) AS depthAvg,
FORMAT(sum(t.depthValue)/count(t.id),2
) AS singleDepth
IFNULL(FORMAT(AVG(t.depthValue),2),0
) AS depthAvg,
IFNULL(FORMAT(sum(t.depthValue)/count(t.id),2),0
) AS singleDepth
FROM
mortals_xhx_page_access_depth t
mortals_xhx_page_access_depth t
WHERE
t.productId = #{productId}
AND t.createTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{dateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
AND t.createTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{dateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
t.productId = #{productId}
AND t.createTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{dateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
AND t.createTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{dateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment