Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-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
赵啸非
enterprise-platform
Commits
7abd89d0
Commit
7abd89d0
authored
Sep 28, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新闻相关
parent
f1772225
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
1656 deletions
+0
-1656
enterprise-manager/src/main/resources/sqlmap/module/dept/DeptPerformStatMapper.xml
...in/resources/sqlmap/module/dept/DeptPerformStatMapper.xml
+0
-1567
enterprise-manager/src/main/resources/sqlmap/module/dept/DeptPerformStatMapperExt.xml
...resources/sqlmap/module/dept/DeptPerformStatMapperExt.xml
+0
-89
No files found.
enterprise-manager/src/main/resources/sqlmap/module/dept/DeptPerformStatMapper.xml
deleted
100644 → 0
View file @
f1772225
This source diff could not be displayed because it is too large. You can
view the blob
instead.
enterprise-manager/src/main/resources/sqlmap/module/dept/DeptPerformStatMapperExt.xml
deleted
100644 → 0
View file @
f1772225
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mortals.xhx.module.dept.dao.ibatis.DeptPerformStatDaoImpl"
>
<!-- 按天top10 -->
<select
id=
"getDaySummaryList"
parameterType=
"com.mortals.xhx.module.dept.model.vo.DeptSummaryTopQuery"
resultType=
"com.mortals.xhx.module.dept.model.DeptPerformStatEntity"
>
SELECT * FROM (
SELECT
`year`,
`month`,
`day`,
deptId,
deptName,
SUM(totalScore) AS totalScore
FROM
mortals_xhx_dept_perform_stat
WHERE 1=1
<if
test=
"year != null"
>
AND `year` = #{year}
</if>
<if
test=
"month != null"
>
AND `month` = #{month}
</if>
<if
test=
"day != null"
>
AND `day` = #{day}
</if>
GROUP BY
deptId,
deptName,
`year`,
`month`,
`day`
) AS a ORDER BY totalScore DESC LIMIT 10
</select>
<!-- 按月top10 -->
<select
id=
"getMonthSummaryList"
parameterType=
"com.mortals.xhx.module.dept.model.vo.DeptSummaryTopQuery"
resultType=
"com.mortals.xhx.module.dept.model.DeptPerformStatEntity"
>
SELECT * FROM (
SELECT
`year`,
`month`,
deptId,
deptName,
SUM(totalScore) AS totalScore
FROM
mortals_xhx_dept_perform_stat
WHERE 1=1
<if
test=
"year != null"
>
AND `year` = #{year}
</if>
<if
test=
"month != null"
>
AND `month` = #{month}
</if>
GROUP BY
deptId,
deptName,
`year`,
`month`
) AS a ORDER BY totalScore DESC LIMIT 10
</select>
<!-- 按年top10 -->
<select
id=
"getYearSummaryList"
parameterType=
"com.mortals.xhx.module.dept.model.vo.DeptSummaryTopQuery"
resultType=
"com.mortals.xhx.module.dept.model.DeptPerformStatEntity"
>
SELECT * FROM (
SELECT
`year`,
deptId,
deptName,
SUM(totalScore) AS totalScore
FROM
mortals_xhx_dept_perform_stat
WHERE 1=1
<if
test=
"year != null"
>
AND `year` = #{year}
</if>
<if
test=
"month != null"
>
AND `month` = #{month}
</if>
<if
test=
"day != null"
>
AND `day` = #{day}
</if>
GROUP BY
deptId,
deptName,
`year`
) AS a ORDER BY totalScore DESC LIMIT 10
</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