Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
34729b8d
Commit
34729b8d
authored
Nov 02, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [none] fixBookMap
parent
70557c9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SpecialBookBizImpl.java
...a/com/pcloud/book/applet/biz/impl/SpecialBookBizImpl.java
+1
-1
BookBrowseRecordMapper.xml
...c/main/resources/mapper/record/BookBrowseRecordMapper.xml
+3
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/SpecialBookBizImpl.java
View file @
34729b8d
...
@@ -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
()));
...
...
pcloud-service-book/src/main/resources/mapper/record/BookBrowseRecordMapper.xml
View file @
34729b8d
...
@@ -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
...
...
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