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
37ea1821
Commit
37ea1821
authored
Apr 09, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug/1004570' into 'master'
bug:[1004570] fixNull See merge request rays/pcloud-book!1254
parents
f735fcd6
00262453
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AppletRecordBizImpl.java
.../com/pcloud/book/applet/biz/impl/AppletRecordBizImpl.java
+1
-1
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+1
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletRecordBizImpl.java
View file @
37ea1821
...
@@ -476,7 +476,7 @@ public class AppletRecordBizImpl implements AppletRecordBiz {
...
@@ -476,7 +476,7 @@ public class AppletRecordBizImpl implements AppletRecordBiz {
List
<
Long
>
wxWorkTeacherIds
=
recordList
.
stream
().
filter
(
appletRecordDTO
->
AppletRecordTypeEnum
.
WX_WORK_TEACHER
.
value
.
equals
(
appletRecordDTO
.
getRecordType
())).
List
<
Long
>
wxWorkTeacherIds
=
recordList
.
stream
().
filter
(
appletRecordDTO
->
AppletRecordTypeEnum
.
WX_WORK_TEACHER
.
value
.
equals
(
appletRecordDTO
.
getRecordType
())).
map
(
AppletRecordDTO:
:
getFromId
).
distinct
().
collect
(
Collectors
.
toList
());
map
(
AppletRecordDTO:
:
getFromId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
Long
>
bookIds
=
recordList
.
stream
().
filter
(
appletRecordDTO
->
AppletRecordTypeEnum
.
PRODUCT
.
value
.
equals
(
appletRecordDTO
.
getRecordType
())
||
AppletRecordTypeEnum
.
APP
.
value
.
equals
(
appletRecordDTO
.
getRecordType
()))
List
<
Long
>
bookIds
=
recordList
.
stream
().
filter
(
appletRecordDTO
->
AppletRecordTypeEnum
.
PRODUCT
.
value
.
equals
(
appletRecordDTO
.
getRecordType
())
||
AppletRecordTypeEnum
.
APP
.
value
.
equals
(
appletRecordDTO
.
getRecordType
()))
.
map
(
AppletRecordDTO:
:
getBookId
).
distinct
().
collect
(
Collectors
.
toList
());
.
map
(
AppletRecordDTO:
:
getBookId
).
filter
(
e
->
null
!=
e
).
distinct
().
collect
(
Collectors
.
toList
());
Map
<
Long
,
BookDto
>
bookDtoMap
;
Map
<
Long
,
BookDto
>
bookDtoMap
;
CompletableFuture
<
Map
<
Long
,
BookDto
>>
bookDtoMapFuture
=
null
;
CompletableFuture
<
Map
<
Long
,
BookDto
>>
bookDtoMapFuture
=
null
;
if
(
CollUtil
.
isNotEmpty
(
bookIds
))
{
if
(
CollUtil
.
isNotEmpty
(
bookIds
))
{
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
37ea1821
...
@@ -338,7 +338,7 @@
...
@@ -338,7 +338,7 @@
WHERE
WHERE
BOOK_ID IN
BOOK_ID IN
<foreach
collection=
"list"
index=
"i"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"list"
index=
"i"
item=
"item"
open=
"("
separator=
","
close=
")"
>
$
{item}
#
{item}
</foreach>
</foreach>
</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