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
3eca07db
Commit
3eca07db
authored
Feb 19, 2020
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1002383 书单服务页2处(个人号回复、H5技能页)设计--修改
parent
dab59d36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
SearchBizImpl.java
...ain/java/com/pcloud/book/book/biz/impl/SearchBizImpl.java
+6
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/SearchBizImpl.java
View file @
3eca07db
...
@@ -150,6 +150,9 @@ public class SearchBizImpl implements SearchBiz {
...
@@ -150,6 +150,9 @@ public class SearchBizImpl implements SearchBiz {
if
(
StringUtil
.
isEmpty
(
searchRecord
.
getWxId
())){
if
(
StringUtil
.
isEmpty
(
searchRecord
.
getWxId
())){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"wxId不能为空!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"wxId不能为空!"
);
}
}
if
(
StringUtil
.
isEmpty
(
searchRecord
.
getContent
())){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"内容不能为空!"
);
}
searchRecordDao
.
insert
(
searchRecord
);
searchRecordDao
.
insert
(
searchRecord
);
}
}
...
@@ -239,6 +242,9 @@ public class SearchBizImpl implements SearchBiz {
...
@@ -239,6 +242,9 @@ public class SearchBizImpl implements SearchBiz {
if
(
currentPage
==
null
||
currentPage
<
0
||
numPerPage
==
null
||
numPerPage
<=
0
){
if
(
currentPage
==
null
||
currentPage
<
0
||
numPerPage
==
null
||
numPerPage
<=
0
){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"分页参数有误!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"分页参数有误!"
);
}
}
if
(
StringUtil
.
isEmpty
(
content
)){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"内容不能为空!"
);
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"content"
,
content
);
map
.
put
(
"content"
,
content
);
map
.
put
(
"bookId"
,
bookId
);
map
.
put
(
"bookId"
,
bookId
);
...
...
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