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
7f308673
Commit
7f308673
authored
Sep 27, 2018
by
lixue123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑端-合并查询
parent
17d6a090
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
BookFacade.java
...src/main/java/com/pcloud/book/book/facade/BookFacade.java
+1
-0
BookFacadeImpl.java
...java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
+3
-1
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+4
-1
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/book/facade/BookFacade.java
View file @
7f308673
...
...
@@ -252,6 +252,7 @@ public interface BookFacade {
@ApiImplicitParam
(
name
=
"templetId"
,
value
=
"图书类型标识"
,
dataType
=
"long"
,
paramType
=
"query"
)})
@RequestMapping
(
value
=
"listPage4Adviser"
,
method
=
RequestMethod
.
GET
)
public
ResponseDto
<
PageBean
>
getListPage4Adviser
(
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"bookName"
,
required
=
false
)
String
bookName
,
@RequestParam
(
value
=
"isbn"
,
required
=
false
)
String
isbn
,
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
,
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
View file @
7f308673
...
...
@@ -235,6 +235,7 @@ public class BookFacadeImpl implements BookFacade {
@Override
@RequestMapping
(
value
=
"listPage4Adviser"
,
method
=
RequestMethod
.
GET
)
public
ResponseDto
<
PageBean
>
getListPage4Adviser
(
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"bookName"
,
required
=
false
)
String
bookName
,
@RequestParam
(
value
=
"isbn"
,
required
=
false
)
String
isbn
,
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
,
...
...
@@ -255,8 +256,9 @@ public class BookFacadeImpl implements BookFacade {
paramMap
.
put
(
"isMainEditor"
,
isMainEditor
);
paramMap
.
put
(
"isFundSupport"
,
isFundSupport
);
paramMap
.
put
(
"channelId"
,
channelId
);
paramMap
.
put
(
"isbn"
,
isbn
!=
null
&&
""
.
equals
(
isbn
.
trim
())
?
null
:
isbn
);
paramMap
.
put
(
"bookName"
,
bookName
!=
null
&&
""
.
equals
(
bookName
.
trim
())
?
null
:
bookName
);
paramMap
.
put
(
"isbn"
,
isbn
!=
null
&&
""
.
equals
(
isbn
.
trim
())
?
null
:
isbn
);
paramMap
.
put
(
"name"
,
name
!=
null
&&
""
.
equals
(
name
.
trim
())
?
null
:
name
);
paramMap
.
put
(
"typeCode"
,
typeCode
!=
null
&&
""
.
equals
(
typeCode
.
trim
())
?
null
:
typeCode
);
paramMap
.
put
(
"bookId"
,
bookId
);
paramMap
.
put
(
"templetId"
,
templetId
);
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
7f308673
...
...
@@ -460,7 +460,10 @@
AND
B.ISBN LIKE CONCAT(#{isbn},'%')
</if>
<if
test=
"name != null"
>
AND
(B.BOOK_NAME LIKE CONCAT('%', #{name}, '%') OR B.ISBN LIKE CONCAT(#{name},'%'))
</if>
<if
test=
"isMainEditor != null"
>
AND
A.IS_MAIN_EDITOR = 1
...
...
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