Commit d1d048cc by 袁伟铭

去掉万单位

parent c733899c
......@@ -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
......
......@@ -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
......
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