Commit 6cc81681 authored by suhuiguang's avatar suhuiguang

Merge branch 'develop_tzs_register_to_0715' of…

Merge branch 'develop_tzs_register_to_0715' of http://36.40.66.175:5000/moa/amos-boot-biz into develop_tzs_register_to_0715
parents 1f211b41 21c37a10
...@@ -638,7 +638,10 @@ ...@@ -638,7 +638,10 @@
) T ) T
</select> </select>
<select id="selectNoticeList" resultType="java.util.Map"> <select id="selectNoticeList" resultType="java.util.Map">
SELECT select
*
from
( SELECT
CONCAT ( T.city_name, T.county_name ) AS location, CONCAT ( T.city_name, T.county_name ) AS location,
T.install_unit_name AS constructionCompany, T.install_unit_name AS constructionCompany,
T.use_unit_name AS useCompany, T.use_unit_name AS useCompany,
...@@ -681,7 +684,8 @@ ...@@ -681,7 +684,8 @@
tzs_jg_transfer_notice T tzs_jg_transfer_notice T
WHERE WHERE
plan_date &gt;= #{time} plan_date &gt;= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )) A
ORDER BY A."constructionDate" DESC
</select> </select>
<select id="selectNoticeCountTopTen" resultType="java.util.Map"> <select id="selectNoticeCountTopTen" resultType="java.util.Map">
SELECT SUM( T.num ) AS count, SELECT SUM( T.num ) AS count,
...@@ -737,5 +741,6 @@ ...@@ -737,5 +741,6 @@
T.install_unit_credit_code T.install_unit_credit_code
ORDER BY ORDER BY
COUNT DESC COUNT DESC
limit 10
</select> </select>
</mapper> </mapper>
...@@ -171,9 +171,9 @@ public class YJDPStatisticsServiceImpl { ...@@ -171,9 +171,9 @@ public class YJDPStatisticsServiceImpl {
Map<String, Long> addressNumMap = maps.stream().collect(Collectors.toMap(CountDto::getKeyStr, CountDto::getLongValue)); Map<String, Long> addressNumMap = maps.stream().collect(Collectors.toMap(CountDto::getKeyStr, CountDto::getLongValue));
ydata = dataDictionaries.stream().map(d -> { ydata = dataDictionaries.stream().map(d -> {
Long num = 0L; Long num = 0L;
// 目前USE_PLACE字段存放字典的id // 目前USE_PLACE字段存放字典的code
if (addressNumMap.get(d.getSequenceNbr().toString()) != null) { if (addressNumMap.get(d.getCode()) != null) {
num = addressNumMap.get(d.getSequenceNbr().toString()); num = addressNumMap.get(d.getCode());
} }
// 数据库中老数据历史问题存放字典的name,兼容对老数据的统计 // 数据库中老数据历史问题存放字典的name,兼容对老数据的统计
if (addressNumMap.get(d.getName()) != null) { if (addressNumMap.get(d.getName()) != null) {
......
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