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
34bbec28
Commit
34bbec28
authored
Jul 30, 2019
by
daixing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
1f556337
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
BookGroupClassifyBizImpl.java
.../pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
+1
-1
BookKeywordDao.java
...ain/java/com/pcloud/book/keywords/dao/BookKeywordDao.java
+1
-1
BookKeywordDaoImpl.java
...com/pcloud/book/keywords/dao/impl/BookKeywordDaoImpl.java
+5
-2
BookKeyword.Mapper.xml
...src/main/resources/mapper/keywords/BookKeyword.Mapper.xml
+3
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
View file @
34bbec28
...
...
@@ -177,7 +177,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
//同步关键词
List
<
BookKeyword
>
bookKeywords
=
new
ArrayList
<>();
List
<
SyncKeyworsVO
>
syncKeyworsVOS
=
bookKeywordDao
.
getKeywordsIdsByBookGroupId
(
addClassifyVO
.
getBookGroupId
());
List
<
SyncKeyworsVO
>
syncKeyworsVOS
=
bookKeywordDao
.
getKeywordsIdsByBookGroupId
(
addClassifyVO
.
getBookGroupId
()
,
0L
);
syncKeyworsVOS
.
forEach
(
e
->
{
BookKeyword
bookKeyword
=
new
BookKeyword
();
bookKeyword
.
setBookGroupId
(
addClassifyVO
.
getBookGroupId
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/keywords/dao/BookKeywordDao.java
View file @
34bbec28
...
...
@@ -90,7 +90,7 @@ public interface BookKeywordDao extends BaseDao<BookKeyword> {
* @author 戴兴
* @date 2019/7/16 15:28
*/
List
<
SyncKeyworsVO
>
getKeywordsIdsByBookGroupId
(
Long
bookGroupId
);
List
<
SyncKeyworsVO
>
getKeywordsIdsByBookGroupId
(
Long
bookGroupId
,
Long
classifyId
);
/**
* @description 按群删除关键词
...
...
pcloud-service-book/src/main/java/com/pcloud/book/keywords/dao/impl/BookKeywordDaoImpl.java
View file @
34bbec28
...
...
@@ -101,8 +101,11 @@ public class BookKeywordDaoImpl extends BaseDaoImpl<BookKeyword> implements Book
}
@Override
public
List
<
SyncKeyworsVO
>
getKeywordsIdsByBookGroupId
(
Long
bookGroupId
)
{
return
this
.
getSqlSession
().
selectList
(
this
.
getStatement
(
"getKeywordsIdsByBookGroupId"
),
bookGroupId
);
public
List
<
SyncKeyworsVO
>
getKeywordsIdsByBookGroupId
(
Long
bookGroupId
,
Long
classifyId
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"bookGroupId"
,
bookGroupId
);
paramMap
.
put
(
"classifyId"
,
classifyId
);
return
this
.
getSqlSession
().
selectList
(
this
.
getStatement
(
"getKeywordsIdsByBookGroupId"
),
paramMap
);
}
@Override
...
...
pcloud-service-book/src/main/resources/mapper/keywords/BookKeyword.Mapper.xml
View file @
34bbec28
...
...
@@ -294,9 +294,10 @@
bk.rank ASC,bk.id DESC
</select>
<select
id=
"getKeywordsIdsByBookGroupId"
parameterType=
"
long
"
resultType=
"com.pcloud.book.group.vo.SyncKeyworsVO"
>
<select
id=
"getKeywordsIdsByBookGroupId"
parameterType=
"
map
"
resultType=
"com.pcloud.book.group.vo.SyncKeyworsVO"
>
select k.id keywordsId, bk.is_warehouse isWarehouse, bk.warehouse_id warehouseId from book_keyword bk
JOIN keyword k ON bk.keyword_id = k.id where bk.book_group_id = #{bookGroupId} and k.is_delete = 0 and bk.is_delete = 0
JOIN keyword k ON bk.keyword_id = k.id where bk.book_group_id = #{bookGroupId} and bk.classify_id = #{classifyId}
and k.is_delete = 0 and bk.is_delete = 0
group by k.id
</select>
...
...
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