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
da70e398
Commit
da70e398
authored
Feb 01, 2021
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1004250] 编辑端搜书
parent
e04a0340
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
BookFacadeImpl.java
...java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
+4
-0
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+11
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
View file @
da70e398
...
@@ -320,6 +320,10 @@ public class BookFacadeImpl implements BookFacade {
...
@@ -320,6 +320,10 @@ public class BookFacadeImpl implements BookFacade {
paramMap
.
put
(
"isFundSupport"
,
isFundSupport
);
paramMap
.
put
(
"isFundSupport"
,
isFundSupport
);
paramMap
.
put
(
"channelId"
,
channelId
);
paramMap
.
put
(
"channelId"
,
channelId
);
paramMap
.
put
(
"name"
,
name
!=
null
&&
""
.
equals
(
name
.
trim
())
?
null
:
name
);
paramMap
.
put
(
"name"
,
name
!=
null
&&
""
.
equals
(
name
.
trim
())
?
null
:
name
);
if
(!
StringUtil
.
isEmpty
(
name
)){
String
[]
nameList
=
name
.
trim
().
split
(
"[\u00A0|\u3000|\u0020]"
);
paramMap
.
put
(
"nameList"
,
Lists
.
newArrayList
(
nameList
));
}
paramMap
.
put
(
"isbn"
,
isbn
!=
null
&&
""
.
equals
(
isbn
.
trim
())
?
null
:
isbn
);
paramMap
.
put
(
"isbn"
,
isbn
!=
null
&&
""
.
equals
(
isbn
.
trim
())
?
null
:
isbn
);
paramMap
.
put
(
"bookName"
,
bookName
!=
null
&&
""
.
equals
(
bookName
.
trim
())
?
null
:
bookName
);
paramMap
.
put
(
"bookName"
,
bookName
!=
null
&&
""
.
equals
(
bookName
.
trim
())
?
null
:
bookName
);
paramMap
.
put
(
"typeCode"
,
typeCode
!=
null
&&
""
.
equals
(
typeCode
.
trim
())
?
null
:
typeCode
);
paramMap
.
put
(
"typeCode"
,
typeCode
!=
null
&&
""
.
equals
(
typeCode
.
trim
())
?
null
:
typeCode
);
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
da70e398
...
@@ -561,8 +561,18 @@
...
@@ -561,8 +561,18 @@
B.ISBN LIKE CONCAT(#{isbn},'%')
B.ISBN LIKE CONCAT(#{isbn},'%')
</if>
</if>
<if
test=
"name != null"
>
<if
test=
"name != null"
>
AND
AND
(
(B.BOOK_NAME LIKE CONCAT('%', #{name}, '%') OR B.ISBN LIKE CONCAT(#{name},'%') OR CONCAT('BK',A.BOOK_ID) = #{name})
(B.BOOK_NAME LIKE CONCAT('%', #{name}, '%') OR B.ISBN LIKE CONCAT(#{name},'%') OR CONCAT('BK',A.BOOK_ID) = #{name})
<if
test=
"nameList != null and nameList.size > 0"
>
or
(
<foreach
collection=
"nameList"
close=
" "
separator=
" and "
open=
" "
item=
"item"
>
(B.BOOK_NAME LIKE CONCAT('%', '${item}', '%'))
</foreach>
)
</if>
)
</if>
</if>
<if
test=
"isMainEditor != null"
>
<if
test=
"isMainEditor != 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