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
9be3d377
Commit
9be3d377
authored
Mar 16, 2020
by
zhuyajie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口优化getHotBookList4H5
parent
8beb06bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
HotBook.xml
...d-service-book/src/main/resources/mapper/book/HotBook.xml
+16
-16
No files found.
pcloud-service-book/src/main/resources/mapper/book/HotBook.xml
View file @
9be3d377
...
@@ -39,22 +39,22 @@
...
@@ -39,22 +39,22 @@
<select
id=
"getHotBookList"
parameterType=
"map"
resultType=
"com.pcloud.book.book.entity.HotBook"
>
<select
id=
"getHotBookList"
parameterType=
"map"
resultType=
"com.pcloud.book.book.entity.HotBook"
>
select
select
t1
.id,
h
.id,
t1
.book_id bookId,
h
.book_id bookId,
t1
.seq_num seqNum,
h
.seq_num seqNum,
t1
.create_time createTime,
h
.create_time createTime,
t2.book_name
bookName,
b.BOOK_NAME
bookName,
t3.adviser_id
adviserId,
a.ADVISER_ID
adviserId,
count(
t4
.id) searchCount
count(
r
.id) searchCount
from hot_book
t1
from hot_book
h
left join search_record t4
LEFT JOIN search_record r
on
t1.id=t4
.hot_book_id
on
h.id=r
.hot_book_id
left join book t2
INNER JOIN book b
on
t1.book_id=t2.book_id
on
h.book_id=b.BOOK_ID
left join book_adviser t3
INNER JOIN book_adviser a
on t1.book_id=t3.book_id
ON h.book_id=a.BOOK_ID
group by
t1
.id
group by
h
.id
order by seq_num
order by
h.
seq_num
</select>
</select>
<update
id=
"updateSeqNum"
parameterType=
"map"
>
<update
id=
"updateSeqNum"
parameterType=
"map"
>
...
...
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