Commit 34729b8d by 吴博

bug: [none] fixBookMap

parent 70557c9d
...@@ -181,7 +181,7 @@ public class SpecialBookBizImpl implements SpecialBookBiz { ...@@ -181,7 +181,7 @@ public class SpecialBookBizImpl implements SpecialBookBiz {
for (SpecialBookDTO specialBookDTO : specialBookDTOS) { for (SpecialBookDTO specialBookDTO : specialBookDTOS) {
if (null != specialBookDTO.getAdviserId() && null != adviserNameMap.get(specialBookDTO.getAdviserId())) { if (null != specialBookDTO.getAdviserId() && null != adviserNameMap.get(specialBookDTO.getAdviserId())) {
specialBookDTO.setAdviserName(adviserNameMap.get(specialBookDTO.getAdviserId())); specialBookDTO.setAdviserName(adviserNameMap.get(specialBookDTO.getAdviserId()));
specialBookDTO.setAgentName(agentMap.get(specialBookDTO.getAdviserId()).getName()); specialBookDTO.setAgentName(null != agentMap.get(specialBookDTO.getAgentId()) ? agentMap.get(specialBookDTO.getAgentId()).getName() : "");
} }
if (null != specialBookDTO.getChannelId() && null != channelNameMap.get(specialBookDTO.getChannelId())) { if (null != specialBookDTO.getChannelId() && null != channelNameMap.get(specialBookDTO.getChannelId())) {
specialBookDTO.setChannelName(channelNameMap.get(specialBookDTO.getChannelId())); specialBookDTO.setChannelName(channelNameMap.get(specialBookDTO.getChannelId()));
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</select> </select>
<select id="getBookCount4Country" resultType="com.pcloud.book.record.entity.BookMapStatistics" parameterType="map"> <select id="getBookCount4Country" resultType="com.pcloud.book.record.entity.BookMapStatistics" parameterType="map">
select select
count((book_adviser_id)) bookCount, count(distinct book_adviser_id) bookCount,
province, province,
province_code provinceCode, province_code provinceCode,
city, city,
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
select select
(case when #{areaCode} = 1 then province_code when #{areaCode} = 2 then city_code else 0 end) regionCode, (case when #{areaCode} = 1 then province_code when #{areaCode} = 2 then city_code else 0 end) regionCode,
(case when #{areaCode} = 1 then province when #{areaCode} = 2 then city when #{areaCode} = 0 then '全国' end) regionName , (case when #{areaCode} = 1 then province when #{areaCode} = 2 then city when #{areaCode} = 0 then '全国' end) regionName ,
count((book_adviser_id)) bookCount count(distinct book_adviser_id) bookCount
from book_browse_record b from book_browse_record b
<where> <where>
<choose> <choose>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
select select
IFNULL(book_classify_id,0) classifyId, IFNULL(book_classify_id,0) classifyId,
IFNULL(a.classify_name,"其他分类") classifyName, IFNULL(a.classify_name,"其他分类") classifyName,
count((book_adviser_id)) bookCount count(distinct book_adviser_id) bookCount
from from
book_browse_record b book_browse_record b
left join applet_book_classify a left join applet_book_classify a
......
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