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
1cf4308d
Commit
1cf4308d
authored
Apr 12, 2021
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:[1004585] 书刊权益空格分词搜索
parent
37ea1821
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+6
-1
RightsSettingMapper.xml
...in/resources/mapper/rightssetting/RightsSettingMapper.xml
+6
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
1cf4308d
...
@@ -2141,7 +2141,12 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
...
@@ -2141,7 +2141,12 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
paramMap
.
put
(
"rightsSettingType"
,
rightsSetting
.
getRightsSettingType
());
paramMap
.
put
(
"rightsSettingType"
,
rightsSetting
.
getRightsSettingType
());
PageBeanNew
<
RightsSettingDto
>
rightsSettingDtoPageBeanNew
;
PageBeanNew
<
RightsSettingDto
>
rightsSettingDtoPageBeanNew
;
if
(
rightsSetting
.
getRightsSettingType
()
==
2
)
{
//书刊权益
if
(
rightsSetting
.
getRightsSettingType
()
==
2
)
{
//书刊权益
paramMap
.
put
(
"bookQuery"
,
rightsSetting
.
getBookQuery
());
if
(!
StringUtil
.
isEmpty
(
rightsSetting
.
getBookQuery
()))
{
String
bookQueryString
=
rightsSetting
.
getBookQuery
().
trim
();
String
[]
bookQuerys
=
bookQueryString
.
split
(
" "
);
List
<
String
>
bookQueryList
=
Arrays
.
stream
(
bookQuerys
).
map
(
e
->
e
.
trim
()).
filter
(
e
->
StringUtil
.
isNotBlank
(
e
)).
collect
(
Collectors
.
toList
());
paramMap
.
put
(
"bookQueryList"
,
bookQueryList
);
}
Long
agentId
=
rightsSetting
.
getAgentId
();
Long
agentId
=
rightsSetting
.
getAgentId
();
if
(
null
!=
agentId
&&
agentId
>
0
){
if
(
null
!=
agentId
&&
agentId
>
0
){
List
<
Long
>
adviserIds
=
adviserConsr
.
getByAgentId
(
agentId
);
List
<
Long
>
adviserIds
=
adviserConsr
.
getByAgentId
(
agentId
);
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingMapper.xml
View file @
1cf4308d
...
@@ -301,6 +301,12 @@
...
@@ -301,6 +301,12 @@
<if
test=
"bookQuery !=null"
>
<if
test=
"bookQuery !=null"
>
AND (b.BOOK_NAME LIKE CONCAT("%",#{bookQuery},"%") OR b.ISBN LIKE CONCAT("%",#{bookQuery},"%"))
AND (b.BOOK_NAME LIKE CONCAT("%",#{bookQuery},"%") OR b.ISBN LIKE CONCAT("%",#{bookQuery},"%"))
</if>
</if>
<if
test=
"bookQueryList != null"
>
AND
<foreach
collection=
"bookQueryList"
item=
"item"
index=
"index"
separator=
"or"
open=
"("
close=
")"
>
(b.BOOK_NAME LIKE CONCAT("%",'${item}',"%") OR b.ISBN LIKE CONCAT("%",'${item}',"%"))
</foreach>
</if>
<if
test=
"adviserIds != null and adviserIds.size>0"
>
<if
test=
"adviserIds != null and adviserIds.size>0"
>
AND a.ADVISER_ID in
AND a.ADVISER_ID in
<foreach
collection=
"adviserIds"
item=
"item"
index=
"index"
separator=
","
open=
"("
close=
")"
>
<foreach
collection=
"adviserIds"
item=
"item"
index=
"index"
separator=
","
open=
"("
close=
")"
>
...
...
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