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
864fcd01
Commit
864fcd01
authored
Sep 23, 2019
by
高鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-1001584' into 'master'
1001584-----------出版端设计规范更新 See merge request rays/pcloud-book!167
parents
da280928
6ce635d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+3
-3
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+10
-7
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
864fcd01
...
@@ -1116,11 +1116,11 @@ public class BookBizImpl implements BookBiz {
...
@@ -1116,11 +1116,11 @@ public class BookBizImpl implements BookBiz {
@Override
@Override
public
PageBean
listPage4Agent
(
PageParam
pageParam
,
Map
<
String
,
Object
>
paramMap
,
Long
agentId
)
{
public
PageBean
listPage4Agent
(
PageParam
pageParam
,
Map
<
String
,
Object
>
paramMap
,
Long
agentId
)
{
LOGGER
.
info
(
"书刊列表-出版端,<START>.[paramMap]="
+
paramMap
+
",agentId"
+
agentId
);
LOGGER
.
info
(
"书刊列表-出版端,<START>.[paramMap]="
+
paramMap
+
",agentId"
+
agentId
);
List
<
Long
>
adviserIds
=
adviserConsr
.
getIdsByNameAndAgentId
(
agentId
,
(
String
)
paramMap
.
get
(
"
mainEditor
Name"
));
List
<
Long
>
adviserIds
=
adviserConsr
.
getIdsByNameAndAgentId
(
agentId
,
(
String
)
paramMap
.
get
(
"
book
Name"
));
paramMap
.
put
(
"adviserIds"
,
adviserIds
);
paramMap
.
put
(
"adviserIds"
,
adviserIds
);
if
(
ListUtils
.
isEmpty
(
adviserIds
))
{
/*
if (ListUtils.isEmpty(adviserIds)) {
return new PageBean(0, 0, new ArrayList<>());
return new PageBean(0, 0, new ArrayList<>());
}
}
*/
PageBean
pageBean
=
bookDao
.
listPage
(
pageParam
,
paramMap
,
"listPage4Agent"
);
PageBean
pageBean
=
bookDao
.
listPage
(
pageParam
,
paramMap
,
"listPage4Agent"
);
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
return
new
PageBean
();
return
new
PageBean
();
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
864fcd01
...
@@ -1075,11 +1075,6 @@
...
@@ -1075,11 +1075,6 @@
BOOK B
BOOK B
ON
ON
A.BOOK_ID = B.BOOK_ID AND A.IS_DELETE = 0 AND B.IS_DELETE = 0
A.BOOK_ID = B.BOOK_ID AND A.IS_DELETE = 0 AND B.IS_DELETE = 0
AND
A.ADVISER_ID IN
<foreach
collection=
"adviserIds"
index=
"i"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
AND A.IS_MAIN_EDITOR = 1
AND A.IS_MAIN_EDITOR = 1
LEFT JOIN
LEFT JOIN
BOOK_TYPE T
BOOK_TYPE T
...
@@ -1100,8 +1095,16 @@
...
@@ -1100,8 +1095,16 @@
A.CHANNEL_ID = #{channelId}
A.CHANNEL_ID = #{channelId}
</if>
</if>
<if
test=
"bookName!=null"
>
<if
test=
"bookName!=null"
>
AND
AND (B.BOOK_NAME LIKE CONCAT('%',#{bookName},'%')
B.BOOK_NAME LIKE CONCAT('%',#{bookName},'%')
OR B.ISBN LIKE CONCAT(#{bookName},'%')
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
OR
A.ADVISER_ID in
<foreach
collection=
"adviserIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
)
</if>
</if>
<if
test=
"isbn!=null"
>
<if
test=
"isbn!=null"
>
AND
AND
...
...
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