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
b626f5d8
Commit
b626f5d8
authored
Oct 21, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑端社群书关键词不区分标签通用
parent
2c4c9a24
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
BookKeywordWarehouseBiz.java
...ava/com/pcloud/book/book/biz/BookKeywordWarehouseBiz.java
+1
-1
BookKeywordWarehouseBizImpl.java
...cloud/book/book/biz/impl/BookKeywordWarehouseBizImpl.java
+2
-1
BookKeywordWarehouseFacadeImpl.java
...book/book/facade/impl/BookKeywordWarehouseFacadeImpl.java
+3
-2
KeywordWarehouseDetailDao.xml
.../main/resources/mapper/book/KeywordWarehouseDetailDao.xml
+10
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/BookKeywordWarehouseBiz.java
View file @
b626f5d8
...
...
@@ -53,7 +53,7 @@ public interface BookKeywordWarehouseBiz {
/**
* 热门关键词
*/
PageBeanNew
<
BookKeywordProductVO
>
hotKeyword
(
Integer
currentPage
,
Integer
numPerPage
,
Long
adviserId
,
Long
bookGroupId
,
String
keyword
,
Long
depthLabelId
,
Long
classifyId
);
PageBeanNew
<
BookKeywordProductVO
>
hotKeyword
(
Integer
currentPage
,
Integer
numPerPage
,
Long
adviserId
,
Long
bookGroupId
,
String
keyword
,
Long
depthLabelId
,
Long
classifyId
,
Boolean
isForAdviser
);
/**
* 审核关键词
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookKeywordWarehouseBizImpl.java
View file @
b626f5d8
...
...
@@ -404,12 +404,13 @@ public class BookKeywordWarehouseBizImpl implements BookKeywordWarehouseBiz {
@Override
@ParamLog
(
"[hotKeyword]"
)
public
PageBeanNew
<
BookKeywordProductVO
>
hotKeyword
(
Integer
currentPage
,
Integer
numPerPage
,
Long
adviserId
,
Long
bookGroupId
,
String
keyword
,
Long
depthLabelId
,
Long
classifyId
)
{
public
PageBeanNew
<
BookKeywordProductVO
>
hotKeyword
(
Integer
currentPage
,
Integer
numPerPage
,
Long
adviserId
,
Long
bookGroupId
,
String
keyword
,
Long
depthLabelId
,
Long
classifyId
,
Boolean
isForAdviser
)
{
final
Map
<
String
,
Object
>
map
=
Maps
.
newHashMap
();
map
.
put
(
"keyword"
,
keyword
);
map
.
put
(
"depthLabelId"
,
depthLabelId
);
map
.
put
(
"bookGroupId"
,
bookGroupId
);
map
.
put
(
"adviserId"
,
adviserId
);
map
.
put
(
"isForAdviser"
,
isForAdviser
);
final
PageBeanNew
<
BookKeywordProductVO
>
hotKeyword
=
this
.
keywordWarehouseDetailDao
.
listPageNew
(
new
PageParam
(
currentPage
,
numPerPage
),
map
,
"hotKeyword"
);
if
(
null
==
hotKeyword
||
CollectionUtils
.
isEmpty
(
hotKeyword
.
getRecordList
()))
{
return
hotKeyword
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookKeywordWarehouseFacadeImpl.java
View file @
b626f5d8
...
...
@@ -92,9 +92,10 @@ public class BookKeywordWarehouseFacadeImpl {
public
ResponseDto
<
PageBeanNew
<
BookKeywordProductVO
>>
hotKeyword
(
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
"bookGroupId"
)
Long
bookGroupId
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
@RequestParam
(
"depthLabelId"
)
Long
depthLabelId
,
@RequestParam
(
"classifyId"
)
Long
classifyId
)
throws
PermissionException
{
@RequestParam
(
value
=
"depthLabelId"
,
required
=
false
)
Long
depthLabelId
,
@RequestParam
(
"classifyId"
)
Long
classifyId
,
@RequestParam
(
value
=
"isForAdviser"
,
required
=
false
)
Boolean
isForAdviser
)
throws
PermissionException
{
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
final
PageBeanNew
<
BookKeywordProductVO
>
pageBeanNew
=
this
.
bookKeywordWarehouseBiz
.
hotKeyword
(
currentPage
,
numPerPage
,
adviserId
,
bookGroupId
,
keyword
,
depthLabelId
,
classifyId
);
final
PageBeanNew
<
BookKeywordProductVO
>
pageBeanNew
=
this
.
bookKeywordWarehouseBiz
.
hotKeyword
(
currentPage
,
numPerPage
,
adviserId
,
bookGroupId
,
keyword
,
depthLabelId
,
classifyId
,
isForAdviser
);
return
new
ResponseDto
<>(
pageBeanNew
);
}
...
...
pcloud-service-book/src/main/resources/mapper/book/KeywordWarehouseDetailDao.xml
View file @
b626f5d8
...
...
@@ -56,7 +56,17 @@
on a.keyword_id = b.id
WHERE
a.is_delete = 0 and b.is_delete = 0
<if
test=
"isForAdviser!=null"
>
<if
test=
"isForAdviser"
>
and b.editor_id = #{adviserId}
</if>
<if
test=
"!isForAdviser"
>
and b.scope = 0
</if>
</if>
<if
test=
"isForAdviser == null"
>
and (b.scope = 0 or b.editor_id = #{adviserId})
</if>
<if
test=
"depthLabelId != null and depthLabelId != '' "
>
and a.depth_label_id = #{depthLabelId}
</if>
...
...
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