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
81c9d72e
Commit
81c9d72e
authored
Sep 28, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1005532' into 'master'
feat: [1005532] 0927慢sql优化 See merge request rays/pcloud-book!1423
parents
63596741
f0ae106c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+3
-2
BookGroupMapper.xml
...-book/src/main/resources/mapper/group/BookGroupMapper.xml
+2
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
81c9d72e
...
@@ -6802,9 +6802,10 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -6802,9 +6802,10 @@ public class BookGroupBizImpl implements BookGroupBiz {
if
(
ObjectUtil
.
hasEmpty
(
reqDTO
,
reqDTO
.
getBookIds
(),
reqDTO
.
getAdviserIds
(),
reqDTO
.
getChannelIds
(),
reqDTO
.
getStart
(),
reqDTO
.
getEnd
()))
if
(
ObjectUtil
.
hasEmpty
(
reqDTO
,
reqDTO
.
getBookIds
(),
reqDTO
.
getAdviserIds
(),
reqDTO
.
getChannelIds
(),
reqDTO
.
getStart
(),
reqDTO
.
getEnd
()))
return
new
ArrayList
<>();
return
new
ArrayList
<>();
List
<
BookGroupDTO
>
bookGroupDTOS
=
bookGroupDao
.
listBookGroupIds
(
reqDTO
.
getBookIds
(),
reqDTO
.
getAdviserIds
(),
reqDTO
.
getChannelIds
());
List
<
BookGroupDTO
>
bookGroupDTOS
=
bookGroupDao
.
listBookGroupIds
(
null
,
reqDTO
.
getAdviserIds
(),
reqDTO
.
getChannelIds
());
if
(
CollUtil
.
isEmpty
(
bookGroupDTOS
))
return
new
ArrayList
<>();
bookGroupDTOS
=
bookGroupDTOS
.
stream
().
filter
(
e
->
reqDTO
.
getBookIds
().
contains
(
e
.
getBookId
())).
collect
(
Collectors
.
toList
());
if
(
CollUtil
.
isEmpty
(
bookGroupDTOS
))
return
new
ArrayList
<>();
if
(
CollUtil
.
isEmpty
(
bookGroupDTOS
))
return
new
ArrayList
<>();
List
<
Long
>
bookGroupIds
=
bookGroupDTOS
.
stream
().
filter
(
Objects:
:
nonNull
).
map
(
BookGroupDTO:
:
getId
).
filter
(
Objects:
:
nonNull
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
Long
>
bookGroupIds
=
bookGroupDTOS
.
stream
().
filter
(
Objects:
:
nonNull
).
map
(
BookGroupDTO:
:
getId
).
filter
(
Objects:
:
nonNull
).
distinct
().
collect
(
Collectors
.
toList
());
if
(
CollUtil
.
isEmpty
(
bookGroupIds
))
return
new
ArrayList
<>();
if
(
CollUtil
.
isEmpty
(
bookGroupIds
))
return
new
ArrayList
<>();
Integer
maxCount
=
500
;
Integer
maxCount
=
500
;
...
...
pcloud-service-book/src/main/resources/mapper/group/BookGroupMapper.xml
View file @
81c9d72e
...
@@ -1286,11 +1286,11 @@
...
@@ -1286,11 +1286,11 @@
FROM
FROM
book_group
book_group
WHERE
WHERE
book_id IN
<!--
book_id IN
<foreach collection="bookIds" open="(" item="item" separator="," close=")">
<foreach collection="bookIds" open="(" item="item" separator="," close=")">
${item}
${item}
</foreach>
</foreach>
AND channel_id IN
AND
-->
channel_id IN
<foreach
collection=
"channelIds"
open=
"("
item=
"item"
separator=
","
close=
")"
>
<foreach
collection=
"channelIds"
open=
"("
item=
"item"
separator=
","
close=
")"
>
${item}
${item}
</foreach>
</foreach>
...
...
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