Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
d1d048cc
Commit
d1d048cc
authored
Jul 05, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉万单位
parent
c733899c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
portal-server/src/main/resources/mapper/ShjzAchieveStatsMapper.xml
+2
-2
portal-server/src/main/resources/mapper/ShjzProvideStatsMapper.xml
+2
-2
No files found.
portal-server/src/main/resources/mapper/ShjzAchieveStatsMapper.xml
View file @
d1d048cc
...
...
@@ -4,7 +4,7 @@
<select
id=
"getFivesYearStats"
resultType=
"java.util.Map"
>
SELECT iscity,
ROUND(SUM(s_2017) / 10000) 's2017', ROUND(SUM(s_2018) / 10000) 's2018', ROUND(SUM(s_2019) / 10000) 's2019', ROUND(SUM(s_2020) / 10000) 's2020', ROUND(SUM(s_2021) / 10000
) 's2021'
SUM(s_2017) 's2017', SUM(s_2018) 's2018', SUM(s_2019) 's2019', SUM(s_2020) 's2020', SUM(s_2021
) 's2021'
FROM `v_shjz_achieve`
WHERE DATE_FORMAT(create_time, '%Y-%m-%d') =
(SELECT DATE_FORMAT(create_time, '%Y-%m-%d') FROM v_shjz_achieve ORDER BY create_time DESC LIMIT 1)
...
...
@@ -13,7 +13,7 @@
</select>
<select
id=
"getStatsByYear"
resultType=
"java.util.Map"
>
SELECT get_upunitname 'city',
ROUND(s_${year} / 10000)
'achieveNum'
SELECT get_upunitname 'city',
s_${year}
'achieveNum'
FROM `v_shjz_achieve`
WHERE DATE_FORMAT(create_time, '%Y-%m-%d') =
(SELECT DATE_FORMAT(create_time, '%Y-%m-%d') FROM v_shjz_achieve ORDER BY create_time DESC
...
...
portal-server/src/main/resources/mapper/ShjzProvideStatsMapper.xml
View file @
d1d048cc
...
...
@@ -4,7 +4,7 @@
<select
id=
"getFivesYearStats"
resultType=
"java.util.Map"
>
SELECT iscity,
ROUND(SUM(sum_year_2017) / 10000) 's2017', ROUND(SUM(sum_year_2018) / 10000) 's2018', ROUND(SUM(sum_year_2019) / 10000) 's2019', ROUND(SUM(sum_year_2020) / 10000) 's2020', ROUND(SUM(sum_year_2021) / 10000
) 's2021'
SUM(sum_year_2017) 's2017', SUM(sum_year_2018) 's2018', SUM(sum_year_2019) 's2019', SUM(sum_year_2020) 's2020', SUM(sum_year_2021
) 's2021'
FROM `v_shjz_provide`
WHERE DATE_FORMAT(create_time, '%Y-%m-%d') =
(SELECT DATE_FORMAT(create_time, '%Y-%m-%d') FROM v_shjz_achieve ORDER BY create_time DESC LIMIT 1)
...
...
@@ -13,7 +13,7 @@
</select>
<select
id=
"getStatsByYear"
resultType=
"java.util.Map"
>
SELECT get_upunitname 'city',
ROUND(sum_year_${year} / 10000)
'provideNum'
SELECT get_upunitname 'city',
sum_year_${year}
'provideNum'
FROM `v_shjz_provide`
WHERE DATE_FORMAT(create_time, '%Y-%m-%d') =
(SELECT DATE_FORMAT(create_time, '%Y-%m-%d') FROM v_shjz_achieve ORDER BY create_time DESC
...
...
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