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
0c0fc52f
Commit
0c0fc52f
authored
Feb 05, 2021
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:[1027961]小睿书判断
parent
331f1777
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
AppletUserBookcase.xml
...k/src/main/resources/mapper/applet/AppletUserBookcase.xml
+12
-4
No files found.
pcloud-service-book/src/main/resources/mapper/applet/AppletUserBookcase.xml
View file @
0c0fc52f
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
</delete>
</delete>
<select
id=
"getUserLastGroupBookRe"
parameterType=
"long"
resultType=
"com.pcloud.book.applet.dto.UserLastBookReDTO"
>
<select
id=
"getUserLastGroupBookRe"
parameterType=
"long"
resultType=
"com.pcloud.book.applet.dto.UserLastBookReDTO"
>
SELECT
SELECT
t.book_id bookId,
t.book_id bookId,
t.adviser_id adviserId,
t.adviser_id adviserId,
t.channel_id channelId,
t.channel_id channelId,
...
@@ -141,15 +141,23 @@
...
@@ -141,15 +141,23 @@
1 bookGroup
1 bookGroup
FROM
FROM
applet_user_bookcase t
applet_user_bookcase t
INNER JOIN book_group t1 ON t.book_id = t1.book_id
INNER JOIN book_adviser a ON t.book_id = a.BOOK_ID
AND t1.join_group_type = 4
AND t.channel_id = a.CHANNEL_ID
AND t.adviser_id = a.ADVISER_ID
AND a.IS_DELETE = 0
LEFT JOIN book_group t1 ON t.book_id = t1.book_id
AND t1.is_delete = 0
AND t1.is_delete = 0
WHERE
WHERE
t.channel_id >= 1
t.channel_id >= 1
AND t.adviser_id >= 1
AND t.adviser_id >= 1
AND t.wechat_user_id = #{wechatUserId}
AND t.wechat_user_id = #{wechatUserId}
AND (
a.is_open_robot_process = 1
OR t1.join_group_type = 4
)
ORDER BY
ORDER BY
t.create_time DESC, t1.id desc
t.create_time DESC,
t1.id DESC
LIMIT 1
LIMIT 1
</select>
</select>
...
...
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