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
c193cc35
Commit
c193cc35
authored
Jul 02, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug/1005019' into 'master'
bug: [none] es里面数据查了不对 See merge request rays/pcloud-book!1356
parents
0187351d
0593bc27
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
BookAdviserBizImpl.java
...ava/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
+13
-8
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
View file @
c193cc35
...
@@ -1060,16 +1060,20 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -1060,16 +1060,20 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
adviserIdList
=
allAdvisers4Agent
;
adviserIdList
=
allAdvisers4Agent
;
}
}
}
}
//
PageBeanNew<ErpAdviserBookVO> pageBeanNew = bookAdviserDao.listPageNew(new PageParam(currentPage, numPerPage), paramMap, "listAdviserBook4Erp");
PageBeanNew
<
ErpAdviserBookVO
>
pageBeanNew
=
bookAdviserDao
.
listPageNew
(
new
PageParam
(
currentPage
,
numPerPage
),
paramMap
,
"listAdviserBook4Erp"
);
Page
<
ESBookAndAdviser
>
page
=
esBookAndAdviserBiz
.
getESBooks4Erp
(
isbn
,
uniqueNumber
,
listName
,
adviserIdList
,
currentPage
,
numPerPage
);
//
Page<ESBookAndAdviser> page= esBookAndAdviserBiz.getESBooks4Erp(isbn,uniqueNumber, listName,adviserIdList,currentPage,numPerPage);
if
(
null
==
page
){
/*
if(null==page){
return new PageBeanNew<>(currentPage, numPerPage,0, new ArrayList<>());
return new PageBeanNew<>(currentPage, numPerPage,0, new ArrayList<>());
}
}
if(CollUtil.isEmpty(page.getContent())){
if(CollUtil.isEmpty(page.getContent())){
return new PageBeanNew<>(currentPage, numPerPage,Long.valueOf(page.getTotalElements()).intValue(), new ArrayList<>());
return new PageBeanNew<>(currentPage, numPerPage,Long.valueOf(page.getTotalElements()).intValue(), new ArrayList<>());
}
}
List<ESBookAndAdviser> esBookAndAdvisers = page.getContent();
List<ESBookAndAdviser> esBookAndAdvisers = page.getContent();
List
<
ErpAdviserBookVO
>
bookVOS
=
changeToErpBookVO
(
esBookAndAdvisers
);
List<ErpAdviserBookVO> bookVOS = changeToErpBookVO(esBookAndAdvisers);*/
if
(
null
==
pageBeanNew
||
CollUtil
.
isEmpty
(
pageBeanNew
.
getRecordList
())){
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
null
==
pageBeanNew
?
0
:
pageBeanNew
.
getTotalCount
(),
new
ArrayList
<>());
}
List
<
ErpAdviserBookVO
>
bookVOS
=
pageBeanNew
.
getRecordList
();
if
(!
CollectionUtils
.
isEmpty
(
bookVOS
))
{
if
(!
CollectionUtils
.
isEmpty
(
bookVOS
))
{
Set
<
Long
>
setAdviserIds
=
new
HashSet
<>();
Set
<
Long
>
setAdviserIds
=
new
HashSet
<>();
Set
<
Long
>
setChannelIds
=
new
HashSet
<>();
Set
<
Long
>
setChannelIds
=
new
HashSet
<>();
...
@@ -1108,7 +1112,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -1108,7 +1112,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
}
catch
(
InterruptedException
|
TimeoutException
|
ExecutionException
e
)
{
}
catch
(
InterruptedException
|
TimeoutException
|
ExecutionException
e
)
{
LOGGER
.
error
(
"[exportMonthReport] 并行导出word失败! err:{}"
,
e
.
getMessage
(),
e
);
LOGGER
.
error
(
"[exportMonthReport] 并行导出word失败! err:{}"
,
e
.
getMessage
(),
e
);
}
}
//
List<Long> list = bookFundBiz.listHaveFundBooks(bookIds);
List
<
Long
>
list
=
bookFundBiz
.
listHaveFundBooks
(
bookIds
);
for
(
ErpAdviserBookVO
bookVO
:
bookVOS
)
{
for
(
ErpAdviserBookVO
bookVO
:
bookVOS
)
{
Long
adviserId
=
bookVO
.
getAdviserId
();
Long
adviserId
=
bookVO
.
getAdviserId
();
if
(
adviserId
!=
null
&&
MapUtils
.
isNotEmpty
(
userLoginInfoMap
)
&&
userLoginInfoMap
.
containsKey
(
adviserId
))
{
if
(
adviserId
!=
null
&&
MapUtils
.
isNotEmpty
(
userLoginInfoMap
)
&&
userLoginInfoMap
.
containsKey
(
adviserId
))
{
...
@@ -1129,13 +1133,14 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -1129,13 +1133,14 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
BookDto
bookDto
=
bookDtoMapMap
.
get
(
bookVO
.
getBookId
());
BookDto
bookDto
=
bookDtoMapMap
.
get
(
bookVO
.
getBookId
());
bookVO
.
setCoverImg
(
Optional
.
ofNullable
(
bookDto
).
map
(
a
->
a
.
getCoverImg
()).
orElse
(
null
));
bookVO
.
setCoverImg
(
Optional
.
ofNullable
(
bookDto
).
map
(
a
->
a
.
getCoverImg
()).
orElse
(
null
));
}
}
/*
bookVO.setIsFundSupport(false);
bookVO
.
setIsFundSupport
(
false
);
if
(!
ListUtils
.
isEmpty
(
list
)
&&
list
.
contains
(
bookVO
.
getBookId
()))
{
if
(!
ListUtils
.
isEmpty
(
list
)
&&
list
.
contains
(
bookVO
.
getBookId
()))
{
bookVO
.
setIsFundSupport
(
true
);
bookVO
.
setIsFundSupport
(
true
);
}*/
}
}
}
}
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
(
int
)
page
.
getTotalElements
(),
bookVOS
);
}
//return new PageBeanNew<>(currentPage, numPerPage, (int) page.getTotalElements(), bookVOS);
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
pageBeanNew
.
getTotalCount
(),
bookVOS
);
}
}
private
<
E
>
void
addIfNonNull
(
Collection
<
E
>
s
,
E
v
)
{
private
<
E
>
void
addIfNonNull
(
Collection
<
E
>
s
,
E
v
)
{
...
...
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