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
47ee3261
Commit
47ee3261
authored
Jan 10, 2021
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1004158] 229新分类
parent
68ef24dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
92 changed files
with
798 additions
and
134 deletions
+798
-134
BookAppealDto.java
...c/main/java/com/pcloud/book/appeal/dto/BookAppealDto.java
+25
-0
AppletNewsCategoryDTO.java
...ava/com/pcloud/book/applet/dto/AppletNewsCategoryDTO.java
+5
-0
AppletNewsDTO.java
...c/main/java/com/pcloud/book/applet/dto/AppletNewsDTO.java
+5
-0
AppletNewsVO.java
...rc/main/java/com/pcloud/book/applet/dto/AppletNewsVO.java
+6
-0
BookAdviserDto.java
...rc/main/java/com/pcloud/book/book/dto/BookAdviserDto.java
+4
-0
BookDto.java
...-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
+27
-0
CreateBookVO.java
.../src/main/java/com/pcloud/book/book/dto/CreateBookVO.java
+3
-0
Book.java
...-book/src/main/java/com/pcloud/book/book/entity/Book.java
+13
-0
BookAdviser.java
...rc/main/java/com/pcloud/book/book/entity/BookAdviser.java
+2
-0
BookAdviserErp.java
...main/java/com/pcloud/book/book/entity/BookAdviserErp.java
+5
-0
BookBrowseRecord.java
.../java/com/pcloud/book/record/entity/BookBrowseRecord.java
+2
-0
TimesBookService.java
...com/pcloud/book/timesscreen/service/TimesBookService.java
+4
-2
BookAppealBizImpl.java
...va/com/pcloud/book/appeal/biz/impl/BookAppealBizImpl.java
+8
-3
AppletBooklistBiz.java
...in/java/com/pcloud/book/applet/biz/AppletBooklistBiz.java
+1
-1
AppletNewsBiz.java
...c/main/java/com/pcloud/book/applet/biz/AppletNewsBiz.java
+6
-5
AppletBooklistBizImpl.java
...om/pcloud/book/applet/biz/impl/AppletBooklistBizImpl.java
+21
-2
AppletGroupSearchRecordBizImpl.java
.../book/applet/biz/impl/AppletGroupSearchRecordBizImpl.java
+4
-1
AppletNewsBizImpl.java
...va/com/pcloud/book/applet/biz/impl/AppletNewsBizImpl.java
+21
-6
AppletUserBookcaseBizImpl.java
...cloud/book/applet/biz/impl/AppletUserBookcaseBizImpl.java
+8
-0
AppletBooklistDao.java
...in/java/com/pcloud/book/applet/dao/AppletBooklistDao.java
+1
-1
AppletNewsDao.java
...c/main/java/com/pcloud/book/applet/dao/AppletNewsDao.java
+3
-3
AppletBooklistDaoImpl.java
...om/pcloud/book/applet/dao/impl/AppletBooklistDaoImpl.java
+2
-1
AppletNewsDaoImpl.java
...va/com/pcloud/book/applet/dao/impl/AppletNewsDaoImpl.java
+5
-3
AppletBooklistDTO.java
...in/java/com/pcloud/book/applet/dto/AppletBooklistDTO.java
+4
-0
AppletUserBookcaseDTO.java
...ava/com/pcloud/book/applet/dto/AppletUserBookcaseDTO.java
+6
-0
BookDTO4Booklist.java
...ain/java/com/pcloud/book/applet/dto/BookDTO4Booklist.java
+8
-0
AppletHomeFacade.java
.../java/com/pcloud/book/applet/facade/AppletHomeFacade.java
+6
-3
BookAdviserBiz.java
...rc/main/java/com/pcloud/book/book/biz/BookAdviserBiz.java
+2
-1
BookBiz.java
...-book/src/main/java/com/pcloud/book/book/biz/BookBiz.java
+3
-3
BookAdviserBizImpl.java
...ava/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
+14
-10
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+27
-4
BookAdviserDao.java
...rc/main/java/com/pcloud/book/book/dao/BookAdviserDao.java
+4
-0
BookAdviserDaoImpl.java
...ava/com/pcloud/book/book/dao/impl/BookAdviserDaoImpl.java
+7
-0
BookFacade.java
...src/main/java/com/pcloud/book/book/facade/BookFacade.java
+11
-3
BookAdviserFacadeImpl.java
...m/pcloud/book/book/facade/impl/BookAdviserFacadeImpl.java
+1
-1
BookFacadeImpl.java
...java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
+0
-0
BookSet.java
...-book/src/main/java/com/pcloud/book/book/set/BookSet.java
+6
-0
ListNoAuthBookParam.java
...ain/java/com/pcloud/book/book/vo/ListNoAuthBookParam.java
+11
-0
ListNoAuthGroupBookParam.java
...ava/com/pcloud/book/book/vo/ListNoAuthGroupBookParam.java
+11
-0
SearchBookVO.java
...k/src/main/java/com/pcloud/book/book/vo/SearchBookVO.java
+9
-0
ESBookAndAdviserBiz.java
...main/java/com/pcloud/book/es/biz/ESBookAndAdviserBiz.java
+3
-2
ESBookAndAdviserBizImpl.java
.../com/pcloud/book/es/biz/impl/ESBookAndAdviserBizImpl.java
+56
-3
ESBookAndAdviser.java
...main/java/com/pcloud/book/es/entity/ESBookAndAdviser.java
+5
-0
ESBookAndAdviserFacade.java
...ava/com/pcloud/book/es/facade/ESBookAndAdviserFacade.java
+12
-1
GiftCouponPackageBizImpl.java
...ud/book/giftcoupon/biz/impl/GiftCouponPackageBizImpl.java
+4
-0
GiftCategoryDTO.java
.../java/com/pcloud/book/giftcoupon/dto/GiftCategoryDTO.java
+6
-0
BookGroupClassifyBiz.java
.../java/com/pcloud/book/group/biz/BookGroupClassifyBiz.java
+1
-1
BookGroupClassifyBizImpl.java
.../pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
+11
-1
BookGroupClassifyFacade.java
...com/pcloud/book/group/facade/BookGroupClassifyFacade.java
+1
-0
BookGroupClassifyFacadeImpl.java
...d/book/group/facade/impl/BookGroupClassifyFacadeImpl.java
+2
-1
BookGroupAnalysisVO.java
...in/java/com/pcloud/book/group/vo/BookGroupAnalysisVO.java
+23
-0
BookGroupClassifyAnalysisVO.java
...com/pcloud/book/group/vo/BookGroupClassifyAnalysisVO.java
+6
-0
BookBrowseRecordBizImpl.java
.../pcloud/book/record/biz/impl/BookBrowseRecordBizImpl.java
+2
-0
RightsSettingBiz.java
...a/com/pcloud/book/rightsSetting/biz/RightsSettingBiz.java
+1
-1
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+0
-0
RightsSettingConstant.java
...d/book/rightsSetting/constants/RightsSettingConstant.java
+5
-0
RightsSettingDAO.java
...a/com/pcloud/book/rightsSetting/dao/RightsSettingDAO.java
+1
-1
RightsSettingItemDao.java
...m/pcloud/book/rightsSetting/dao/RightsSettingItemDao.java
+2
-2
RightsSettingDAOImpl.java
...oud/book/rightsSetting/dao/impl/RightsSettingDAOImpl.java
+2
-1
RightsSettingItemDaoImpl.java
...book/rightsSetting/dao/impl/RightsSettingItemDaoImpl.java
+2
-3
BaseTempletClassify.java
...pcloud/book/rightsSetting/entity/BaseTempletClassify.java
+2
-0
RightsSetting.java
...a/com/pcloud/book/rightsSetting/entity/RightsSetting.java
+4
-0
RightsSettingBookRelation.java
.../book/rightsSetting/entity/RightsSettingBookRelation.java
+10
-0
RightsSettingFacede.java
...pcloud/book/rightsSetting/facade/RightsSettingFacede.java
+2
-0
PcloudGroupActivityBiz.java
...ava/com/pcloud/book/skill/biz/PcloudGroupActivityBiz.java
+2
-2
PcloudGroupActivityBizImpl.java
...cloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
+18
-4
PcloudGroupActivityDao.java
...ava/com/pcloud/book/skill/dao/PcloudGroupActivityDao.java
+1
-1
PcloudGroupActivityDaoImpl.java
...cloud/book/skill/dao/impl/PcloudGroupActivityDaoImpl.java
+4
-1
PcloudGroupActivityFacade.java
...m/pcloud/book/skill/facade/PcloudGroupActivityFacade.java
+2
-1
QueryGroupActivityResponseVO.java
...k/skill/facade/response/QueryGroupActivityResponseVO.java
+6
-0
TimesBookServiceImpl.java
...d/book/timesscreen/service/impl/TimesBookServiceImpl.java
+8
-2
BookAppeal.Mapper.xml
...ok/src/main/resources/mapper/appeal/BookAppeal.Mapper.xml
+4
-3
AppletBooklist.xml
...-book/src/main/resources/mapper/applet/AppletBooklist.xml
+15
-3
AppletGroupSearchRecord.Mapper.xml
...esources/mapper/applet/AppletGroupSearchRecord.Mapper.xml
+1
-0
AppletNews.xml
...vice-book/src/main/resources/mapper/applet/AppletNews.xml
+19
-0
AppletNewsCategory.xml
...k/src/main/resources/mapper/applet/AppletNewsCategory.xml
+9
-4
AppletRecord.Mapper.xml
.../src/main/resources/mapper/applet/AppletRecord.Mapper.xml
+1
-0
AppletRecordDayServe.Mapper.xml
...n/resources/mapper/applet/AppletRecordDayServe.Mapper.xml
+1
-0
AppletRecordServe.Mapper.xml
...main/resources/mapper/applet/AppletRecordServe.Mapper.xml
+1
-0
AppletUserBookcase.xml
...k/src/main/resources/mapper/applet/AppletUserBookcase.xml
+5
-1
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+81
-4
BookAdviser.Mapper.xml
...ook/src/main/resources/mapper/book/BookAdviser.Mapper.xml
+27
-19
BookAuthInfo.Mapper.xml
...c/main/resources/mapper/copyright/BookAuthInfo.Mapper.xml
+14
-0
CultivateRecord.xml
...k/src/main/resources/mapper/cultivate/CultivateRecord.xml
+2
-1
GiftCategory.xml
...ook/src/main/resources/mapper/giftConpon/GiftCategory.xml
+16
-5
BookGroupClassify.Mapper.xml
.../main/resources/mapper/group/BookGroupClassify.Mapper.xml
+8
-0
BookGroupMapper.xml
...-book/src/main/resources/mapper/group/BookGroupMapper.xml
+1
-0
BookBrowseRecordMapper.xml
...c/main/resources/mapper/record/BookBrowseRecordMapper.xml
+17
-3
RightsSettingBookRelationMapper.xml
.../mapper/rightssetting/RightsSettingBookRelationMapper.xml
+3
-0
RightsSettingItemMapper.xml
...esources/mapper/rightssetting/RightsSettingItemMapper.xml
+5
-1
RightsSettingMapper.xml
...in/resources/mapper/rightssetting/RightsSettingMapper.xml
+21
-6
PcloudGroupActivityDao.xml
...rc/main/resources/mapper/skill/PcloudGroupActivityDao.xml
+32
-3
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/appeal/dto/BookAppealDto.java
View file @
47ee3261
...
@@ -140,6 +140,31 @@ public class BookAppealDto extends BaseEntity{
...
@@ -140,6 +140,31 @@ public class BookAppealDto extends BaseEntity{
private
Long
secondTempletId
;
private
Long
secondTempletId
;
/**
* 三级分类id
*/
private
Long
thirdTempletId
;
/**
* 三级分类名称
*/
private
String
thirdTempletName
;
public
Long
getThirdTempletId
()
{
return
thirdTempletId
;
}
public
void
setThirdTempletId
(
Long
thirdTempletId
)
{
this
.
thirdTempletId
=
thirdTempletId
;
}
public
String
getThirdTempletName
()
{
return
thirdTempletName
;
}
public
void
setThirdTempletName
(
String
thirdTempletName
)
{
this
.
thirdTempletName
=
thirdTempletName
;
}
public
Long
getSecondTempletId
()
{
public
Long
getSecondTempletId
()
{
return
secondTempletId
;
return
secondTempletId
;
}
}
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/applet/dto/AppletNewsCategoryDTO.java
View file @
47ee3261
...
@@ -26,6 +26,11 @@ public class AppletNewsCategoryDTO extends BaseDto {
...
@@ -26,6 +26,11 @@ public class AppletNewsCategoryDTO extends BaseDto {
private
Long
secondClassify
;
private
Long
secondClassify
;
private
String
secondClassifyName
;
private
String
secondClassifyName
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
private
String
thirdClassifyName
;
@ApiModelProperty
(
"年级标签id"
)
@ApiModelProperty
(
"年级标签id"
)
private
Long
gradeLabelId
;
private
Long
gradeLabelId
;
private
String
gradeLabelName
;
private
String
gradeLabelName
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/applet/dto/AppletNewsDTO.java
View file @
47ee3261
...
@@ -70,6 +70,9 @@ public class AppletNewsDTO extends BaseDto {
...
@@ -70,6 +70,9 @@ public class AppletNewsDTO extends BaseDto {
private
Long
firstClassify
;
private
Long
firstClassify
;
@ApiModelProperty
(
"第二级类型标识"
)
@ApiModelProperty
(
"第二级类型标识"
)
private
Long
secondClassify
;
private
Long
secondClassify
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"年级标签id"
)
@ApiModelProperty
(
"年级标签id"
)
private
Long
gradeLabelId
;
private
Long
gradeLabelId
;
@ApiModelProperty
(
"科目标签id"
)
@ApiModelProperty
(
"科目标签id"
)
...
@@ -81,6 +84,8 @@ public class AppletNewsDTO extends BaseDto {
...
@@ -81,6 +84,8 @@ public class AppletNewsDTO extends BaseDto {
private
String
secondClassifyContent
;
private
String
secondClassifyContent
;
private
String
thirdClassifyContent
;
private
String
gradeLabelIdContent
;
private
String
gradeLabelIdContent
;
private
String
subjectLabelIdContent
;
private
String
subjectLabelIdContent
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/applet/dto/AppletNewsVO.java
View file @
47ee3261
...
@@ -59,6 +59,12 @@ public class AppletNewsVO extends BaseDto {
...
@@ -59,6 +59,12 @@ public class AppletNewsVO extends BaseDto {
private
Long
firstClassify
;
private
Long
firstClassify
;
@ApiModelProperty
(
"第二级类型标识"
)
@ApiModelProperty
(
"第二级类型标识"
)
private
Long
secondClassify
;
private
Long
secondClassify
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"第三级类型标识名称"
)
private
String
thirdClassifyName
;
@ApiModelProperty
(
"年级标签id"
)
@ApiModelProperty
(
"年级标签id"
)
private
Long
gradeLabelId
;
private
Long
gradeLabelId
;
@ApiModelProperty
(
"科目标签id"
)
@ApiModelProperty
(
"科目标签id"
)
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/dto/BookAdviserDto.java
View file @
47ee3261
...
@@ -95,6 +95,10 @@ public class BookAdviserDto extends BaseDto {
...
@@ -95,6 +95,10 @@ public class BookAdviserDto extends BaseDto {
*/
*/
private
Long
secondTempletId
;
private
Long
secondTempletId
;
/**
/**
* 第三级分类
*/
private
Long
thirdTempletId
;
/**
* 年级标签id
* 年级标签id
*/
*/
private
Long
graLabelId
;
private
Long
graLabelId
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
View file @
47ee3261
...
@@ -522,6 +522,17 @@ public class BookDto extends BaseDto {
...
@@ -522,6 +522,17 @@ public class BookDto extends BaseDto {
*/
*/
private
String
secondTempletName
;
private
String
secondTempletName
;
/**
* 第三级类型
*/
private
Long
thirdTempletId
;
/**
* 第三类型名称
*/
private
String
thirdTempletName
;
/**
/**
* 第二级类型typeCode
* 第二级类型typeCode
*/
*/
...
@@ -786,6 +797,22 @@ public class BookDto extends BaseDto {
...
@@ -786,6 +797,22 @@ public class BookDto extends BaseDto {
this
.
bookMinimumSupports
=
bookMinimumSupports
;
this
.
bookMinimumSupports
=
bookMinimumSupports
;
}
}
public
Long
getThirdTempletId
()
{
return
thirdTempletId
;
}
public
void
setThirdTempletId
(
Long
thirdTempletId
)
{
this
.
thirdTempletId
=
thirdTempletId
;
}
public
String
getThirdTempletName
()
{
return
thirdTempletName
;
}
public
void
setThirdTempletName
(
String
thirdTempletName
)
{
this
.
thirdTempletName
=
thirdTempletName
;
}
public
Long
getRightsSettingId
()
{
public
Long
getRightsSettingId
()
{
return
rightsSettingId
;
return
rightsSettingId
;
}
}
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/dto/CreateBookVO.java
View file @
47ee3261
...
@@ -48,6 +48,9 @@ public class CreateBookVO {
...
@@ -48,6 +48,9 @@ public class CreateBookVO {
@ApiModelProperty
(
"第二级类型"
)
@ApiModelProperty
(
"第二级类型"
)
private
Long
secondTempletId
;
private
Long
secondTempletId
;
@ApiModelProperty
(
"第三级类型"
)
private
Long
thirdTempletId
;
@ApiModelProperty
(
"年级标签id"
)
@ApiModelProperty
(
"年级标签id"
)
private
Long
graLabelId
;
private
Long
graLabelId
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/entity/Book.java
View file @
47ee3261
...
@@ -198,6 +198,11 @@ public class Book extends BaseEntity {
...
@@ -198,6 +198,11 @@ public class Book extends BaseEntity {
private
Long
secondTempletId
;
private
Long
secondTempletId
;
/**
/**
* 第三级类型
*/
private
Long
thirdTempletId
;
/**
* 第二级类型typeCode
* 第二级类型typeCode
*/
*/
private
String
secondTypeCode
;
private
String
secondTypeCode
;
...
@@ -261,6 +266,14 @@ public class Book extends BaseEntity {
...
@@ -261,6 +266,14 @@ public class Book extends BaseEntity {
*/
*/
private
String
edition
;
private
String
edition
;
public
Long
getThirdTempletId
()
{
return
thirdTempletId
;
}
public
void
setThirdTempletId
(
Long
thirdTempletId
)
{
this
.
thirdTempletId
=
thirdTempletId
;
}
public
String
getEdition
()
{
public
String
getEdition
()
{
return
edition
;
return
edition
;
}
}
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/entity/BookAdviser.java
View file @
47ee3261
...
@@ -71,6 +71,8 @@ public class BookAdviser extends BaseEntity {
...
@@ -71,6 +71,8 @@ public class BookAdviser extends BaseEntity {
*/
*/
private
Long
secondTempletId
;
private
Long
secondTempletId
;
private
Long
thirdTempletId
;
/**
/**
* 年级标签id
* 年级标签id
*/
*/
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/entity/BookAdviserErp.java
View file @
47ee3261
...
@@ -69,6 +69,11 @@ public class BookAdviserErp extends BaseEntity {
...
@@ -69,6 +69,11 @@ public class BookAdviserErp extends BaseEntity {
private
Long
secondTempletId
;
private
Long
secondTempletId
;
/**
/**
* 第三级类型
*/
private
Long
thirdTempletId
;
/**
* 年级标签id
* 年级标签id
*/
*/
private
Long
graLabelId
;
private
Long
graLabelId
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/record/entity/BookBrowseRecord.java
View file @
47ee3261
...
@@ -43,6 +43,8 @@ public class BookBrowseRecord extends BaseEntity {
...
@@ -43,6 +43,8 @@ public class BookBrowseRecord extends BaseEntity {
private
Long
secondClassifyId
;
private
Long
secondClassifyId
;
private
Long
thirdClassifyId
;
private
Long
bookClassifyId
;
private
Long
bookClassifyId
;
private
String
ip
;
private
String
ip
;
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/timesscreen/service/TimesBookService.java
View file @
47ee3261
...
@@ -40,7 +40,8 @@ public interface TimesBookService {
...
@@ -40,7 +40,8 @@ public interface TimesBookService {
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
);
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
);
@GetMapping
(
"exportBookIncomeDetail"
)
@GetMapping
(
"exportBookIncomeDetail"
)
@ApiOperation
(
value
=
"书刊分析 导出书刊收益列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"书刊分析 导出书刊收益列表"
,
httpMethod
=
"GET"
)
...
@@ -50,7 +51,8 @@ public interface TimesBookService {
...
@@ -50,7 +51,8 @@ public interface TimesBookService {
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
);
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
);
@ApiOperation
(
"获取个人号累计加好友人数"
)
@ApiOperation
(
"获取个人号累计加好友人数"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/appeal/biz/impl/BookAppealBizImpl.java
View file @
47ee3261
...
@@ -183,7 +183,8 @@ public class BookAppealBizImpl implements BookAppealBiz {
...
@@ -183,7 +183,8 @@ public class BookAppealBizImpl implements BookAppealBiz {
List
<
BookAdviserDto
>
adviserBooks
=
bookAdviserDao
.
getAdvisers
(
bookAppealDto
.
getBookId
());
List
<
BookAdviserDto
>
adviserBooks
=
bookAdviserDao
.
getAdvisers
(
bookAppealDto
.
getBookId
());
//审核通过
//审核通过
if
(
AppealStateEnum
.
APPEAL_STATE_PASS
.
value
.
equals
(
bookAppeal
.
getAppealState
()))
{
if
(
AppealStateEnum
.
APPEAL_STATE_PASS
.
value
.
equals
(
bookAppeal
.
getAppealState
()))
{
setOnlyOneAdviser
(
bookAppealDto
.
getBookId
(),
bookAppealDto
.
getDeclarant
(),
bookAppealDto
.
getChannelId
(),
bookAppealDto
.
getTempletId
(),
bookAppealDto
.
getSecondTempletId
(),
adviserBooks
);
setOnlyOneAdviser
(
bookAppealDto
.
getBookId
(),
bookAppealDto
.
getDeclarant
(),
bookAppealDto
.
getChannelId
(),
bookAppealDto
.
getTempletId
(),
bookAppealDto
.
getSecondTempletId
(),
adviserBooks
,
bookAppealDto
.
getThirdTempletId
());
}
}
// 设置被诉方
// 设置被诉方
List
<
BookDefendant
>
defendants
=
bookSet
.
setDefendant
(
adviserBooks
,
bookAppeal
.
getBookAppealId
());
List
<
BookDefendant
>
defendants
=
bookSet
.
setDefendant
(
adviserBooks
,
bookAppeal
.
getBookAppealId
());
...
@@ -298,7 +299,8 @@ public class BookAppealBizImpl implements BookAppealBiz {
...
@@ -298,7 +299,8 @@ public class BookAppealBizImpl implements BookAppealBiz {
Long
mainAdviserId
=
null
;
Long
mainAdviserId
=
null
;
Boolean
isOnlyOneAdviser
=
bookMainAdviserDto
.
getBookAdviserList
().
size
()
==
1
;
Boolean
isOnlyOneAdviser
=
bookMainAdviserDto
.
getBookAdviserList
().
size
()
==
1
;
if
(
isOnlyOneAdviser
)
{
//唯一拥有
if
(
isOnlyOneAdviser
)
{
//唯一拥有
setOnlyOneAdviser
(
bookId
,
appealAdviserId
,
bookAppealDto
.
getChannelId
(),
bookAppealDto
.
getTempletId
(),
bookAppealDto
.
getSecondTempletId
(),
adviserBooks
);
setOnlyOneAdviser
(
bookId
,
appealAdviserId
,
bookAppealDto
.
getChannelId
(),
bookAppealDto
.
getTempletId
(),
bookAppealDto
.
getSecondTempletId
(),
adviserBooks
,
bookAppealDto
.
getThirdTempletId
());
mainAdviserId
=
bookMainAdviserDto
.
getBookAdviserList
().
get
(
0
).
getAdviserId
();
mainAdviserId
=
bookMainAdviserDto
.
getBookAdviserList
().
get
(
0
).
getAdviserId
();
}
else
{
}
else
{
for
(
BookAdviser
bookAdviser
:
bookMainAdviserDto
.
getBookAdviserList
())
{
for
(
BookAdviser
bookAdviser
:
bookMainAdviserDto
.
getBookAdviserList
())
{
...
@@ -314,6 +316,7 @@ public class BookAppealBizImpl implements BookAppealBiz {
...
@@ -314,6 +316,7 @@ public class BookAppealBizImpl implements BookAppealBiz {
if
(
bookAdviser
.
getAdviserId
().
equals
(
appealAdviserId
)
&&
channelId
.
equals
(
bookAdviser
.
getChannelId
()))
{
if
(
bookAdviser
.
getAdviserId
().
equals
(
appealAdviserId
)
&&
channelId
.
equals
(
bookAdviser
.
getChannelId
()))
{
bookAdviser
.
setTempletId
(
bookAppealDto
.
getTempletId
());
bookAdviser
.
setTempletId
(
bookAppealDto
.
getTempletId
());
bookAdviser
.
setSecondTempletId
(
bookAppealDto
.
getSecondTempletId
());
bookAdviser
.
setSecondTempletId
(
bookAppealDto
.
getSecondTempletId
());
bookAdviser
.
setThirdTempletId
(
bookAppealDto
.
getThirdTempletId
());
}
}
}
}
// 批量修改图书编辑关联关系
// 批量修改图书编辑关联关系
...
@@ -348,8 +351,9 @@ public class BookAppealBizImpl implements BookAppealBiz {
...
@@ -348,8 +351,9 @@ public class BookAppealBizImpl implements BookAppealBiz {
* @param declarant 申诉方
* @param declarant 申诉方
* @param channelId 运营标识
* @param channelId 运营标识
* @param templetId 模板标识
* @param templetId 模板标识
* @param thirdTempletId
*/
*/
public
void
setOnlyOneAdviser
(
Long
bookId
,
Long
declarant
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
List
<
BookAdviserDto
>
adviserBooks
)
{
public
void
setOnlyOneAdviser
(
Long
bookId
,
Long
declarant
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
List
<
BookAdviserDto
>
adviserBooks
,
Long
thirdTempletId
)
{
//删除其余编辑与图书关联关系
//删除其余编辑与图书关联关系
bookAdviserBiz
.
deleteByBook
(
bookId
);
bookAdviserBiz
.
deleteByBook
(
bookId
);
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()
->
{
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()
->
{
...
@@ -372,6 +376,7 @@ public class BookAppealBizImpl implements BookAppealBiz {
...
@@ -372,6 +376,7 @@ public class BookAppealBizImpl implements BookAppealBiz {
bookAdviser
.
setTempletId
(
templetId
);
bookAdviser
.
setTempletId
(
templetId
);
bookAdviser
.
setIsMainEditor
(
true
);
bookAdviser
.
setIsMainEditor
(
true
);
bookAdviser
.
setSecondTempletId
(
secondTempletId
);
bookAdviser
.
setSecondTempletId
(
secondTempletId
);
bookAdviser
.
setThirdTempletId
(
thirdTempletId
);
bookAdviserDao
.
insert
(
bookAdviser
);
bookAdviserDao
.
insert
(
bookAdviser
);
esBookAndAdviserBiz
.
updateBookAndAdviserToES
(
Collections
.
singletonList
(
bookId
));
esBookAndAdviserBiz
.
updateBookAndAdviserToES
(
Collections
.
singletonList
(
bookId
));
// 恢复申诉编辑图书与二维码关联关系
// 恢复申诉编辑图书与二维码关联关系
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/AppletBooklistBiz.java
View file @
47ee3261
...
@@ -76,7 +76,7 @@ public interface AppletBooklistBiz {
...
@@ -76,7 +76,7 @@ public interface AppletBooklistBiz {
* @return
* @return
*/
*/
PageBeanNew
<
AppletBooklistDTO
>
listBooklist
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
classifyId
,
Long
agentId
,
PageBeanNew
<
AppletBooklistDTO
>
listBooklist
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
classifyId
,
Long
agentId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
relateAgentId
);
Long
firstClassify
,
Long
secondClassify
,
Long
thirdClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
relateAgentId
);
/**
/**
* 书单添加图书
* 书单添加图书
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/AppletNewsBiz.java
View file @
47ee3261
...
@@ -84,7 +84,7 @@ public interface AppletNewsBiz {
...
@@ -84,7 +84,7 @@ public interface AppletNewsBiz {
* @return
* @return
*/
*/
PageBeanNew
<
AppletNewsDTO
>
listAppletNews
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
PageBeanNew
<
AppletNewsDTO
>
listAppletNews
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
thirdClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
String
source
,
Integer
showState
,
Long
newsClassifyId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
String
source
,
Integer
showState
,
Long
newsClassifyId
,
Long
customTagId
,
String
cityCode
,
Long
agentId
);
Long
customTagId
,
String
cityCode
,
Long
agentId
);
...
@@ -137,9 +137,10 @@ public interface AppletNewsBiz {
...
@@ -137,9 +137,10 @@ public interface AppletNewsBiz {
* @param gradeLabelId
* @param gradeLabelId
* @param subjectLabelId
* @param subjectLabelId
* @param rightsType
* @param rightsType
* @param thirdClassify
* @return
* @return
*/
*/
List
<
AppletNewsDTO
>
getNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
);
List
<
AppletNewsDTO
>
getNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
,
Long
thirdClassify
);
/**
/**
* 批量修改分类
* 批量修改分类
...
@@ -212,9 +213,9 @@ public interface AppletNewsBiz {
...
@@ -212,9 +213,9 @@ public interface AppletNewsBiz {
* * @param null
* * @param null
*/
*/
PageBeanNew
<
AppletNewsDTO
>
listAppletNews4Analysis
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
PageBeanNew
<
AppletNewsDTO
>
listAppletNews4Analysis
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Long
rightsClassifyId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Long
rightsClassifyId
,
String
source
,
Integer
browseQty
,
Integer
clickQty
,
Long
agentId
);
String
source
,
Integer
browseQty
,
Integer
clickQty
,
Long
agentId
,
Long
thirdClassify
);
/**
/**
*
*
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletBooklistBizImpl.java
View file @
47ee3261
...
@@ -174,7 +174,7 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -174,7 +174,7 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
@Override
@Override
public
PageBeanNew
<
AppletBooklistDTO
>
listBooklist
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
classifyId
,
Long
agentId
,
public
PageBeanNew
<
AppletBooklistDTO
>
listBooklist
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
classifyId
,
Long
agentId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
thirdClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
relateAgentId
)
{
Long
relateAgentId
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"name"
,
name
);
paramMap
.
put
(
"name"
,
name
);
...
@@ -185,11 +185,13 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -185,11 +185,13 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setThirdClassify
(
thirdClassify
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
paramMap
.
put
(
"firstClassify"
,
classify
.
getFirstClassify
());
paramMap
.
put
(
"firstClassify"
,
classify
.
getFirstClassify
());
paramMap
.
put
(
"secondClassify"
,
classify
.
getSecondClassify
());
paramMap
.
put
(
"secondClassify"
,
classify
.
getSecondClassify
());
paramMap
.
put
(
"thirdClassify"
,
classify
.
getThirdClassify
());
paramMap
.
put
(
"gradeLabelId"
,
classify
.
getGradeLabelId
());
paramMap
.
put
(
"gradeLabelId"
,
classify
.
getGradeLabelId
());
paramMap
.
put
(
"subjectLabelId"
,
classify
.
getSubjectLabelId
());
paramMap
.
put
(
"subjectLabelId"
,
classify
.
getSubjectLabelId
());
}
else
{
}
else
{
...
@@ -214,6 +216,9 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -214,6 +216,9 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
if
(
null
!=
appletBooklistDTO
.
getSecondClassify
()){
if
(
null
!=
appletBooklistDTO
.
getSecondClassify
()){
classifyIds
.
add
(
appletBooklistDTO
.
getSecondClassify
());
classifyIds
.
add
(
appletBooklistDTO
.
getSecondClassify
());
}
}
if
(
null
!=
appletBooklistDTO
.
getThirdClassify
()){
classifyIds
.
add
(
appletBooklistDTO
.
getThirdClassify
());
}
if
(
null
!=
appletBooklistDTO
.
getGradeLabelId
())
{
if
(
null
!=
appletBooklistDTO
.
getGradeLabelId
())
{
labelIds
.
add
(
appletBooklistDTO
.
getGradeLabelId
());
labelIds
.
add
(
appletBooklistDTO
.
getGradeLabelId
());
}
}
...
@@ -252,6 +257,9 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -252,6 +257,9 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
booklistDTO
.
getSecondClassify
())){
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
booklistDTO
.
getSecondClassify
())){
booklistDTO
.
setSecondClassifyContent
(
classifyMap
.
get
(
booklistDTO
.
getSecondClassify
()).
getTempletName
());
booklistDTO
.
setSecondClassifyContent
(
classifyMap
.
get
(
booklistDTO
.
getSecondClassify
()).
getTempletName
());
}
}
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
booklistDTO
.
getThirdClassify
())){
booklistDTO
.
setThirdClassifyContent
(
classifyMap
.
get
(
booklistDTO
.
getThirdClassify
()).
getTempletName
());
}
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
booklistDTO
.
getGradeLabelId
())){
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
booklistDTO
.
getGradeLabelId
())){
booklistDTO
.
setGradeLabelIdContent
(
labelMap
.
get
(
booklistDTO
.
getGradeLabelId
()).
getName
());
booklistDTO
.
setGradeLabelIdContent
(
labelMap
.
get
(
booklistDTO
.
getGradeLabelId
()).
getName
());
}
}
...
@@ -304,11 +312,15 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -304,11 +312,15 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
if
(
Objects
.
nonNull
(
dto4Booklist
.
getSecondTempletId
()))
{
if
(
Objects
.
nonNull
(
dto4Booklist
.
getSecondTempletId
()))
{
templetIds
.
add
(
dto4Booklist
.
getSecondTempletId
());
templetIds
.
add
(
dto4Booklist
.
getSecondTempletId
());
}
}
if
(
Objects
.
nonNull
(
dto4Booklist
.
getThirdTempletId
()))
{
templetIds
.
add
(
dto4Booklist
.
getThirdTempletId
());
}
});
});
Map
<
Long
,
AssistTempletDTO
>
assistTempletDTOMap
=
assistTempletConsr
.
mapByIds
(
templetIds
);
Map
<
Long
,
AssistTempletDTO
>
assistTempletDTOMap
=
assistTempletConsr
.
mapByIds
(
templetIds
);
for
(
BookDTO4Booklist
dto4Booklist
:
list
)
{
for
(
BookDTO4Booklist
dto4Booklist
:
list
)
{
Long
secondTempletId
=
dto4Booklist
.
getSecondTempletId
();
Long
secondTempletId
=
dto4Booklist
.
getSecondTempletId
();
Long
templetId
=
dto4Booklist
.
getTempletId
();
Long
templetId
=
dto4Booklist
.
getTempletId
();
Long
thirdTempletId
=
dto4Booklist
.
getThirdTempletId
();
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
secondTempletId
);
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
secondTempletId
);
dto4Booklist
.
setSecondTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
dto4Booklist
.
setSecondTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
...
@@ -317,6 +329,10 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -317,6 +329,10 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
templetId
);
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
templetId
);
dto4Booklist
.
setTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
dto4Booklist
.
setTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
}
if
(
thirdTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
thirdTempletId
);
dto4Booklist
.
setThirdTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
Long
adviserId
=
dto4Booklist
.
getAdviserId
();
Long
adviserId
=
dto4Booklist
.
getAdviserId
();
if
(!
MapUtils
.
isEmpty
(
infoDtoMap
)){
if
(!
MapUtils
.
isEmpty
(
infoDtoMap
)){
AdviserBaseInfoDto
infoDto
=
infoDtoMap
.
get
(
adviserId
);
AdviserBaseInfoDto
infoDto
=
infoDtoMap
.
get
(
adviserId
);
...
@@ -690,10 +706,12 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -690,10 +706,12 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
classify
.
setFirstClassify
(
bookAdviserDto
.
getTempletId
());
classify
.
setFirstClassify
(
bookAdviserDto
.
getTempletId
());
classify
.
setSecondClassify
(
bookAdviserDto
.
getSecondTempletId
());
classify
.
setSecondClassify
(
bookAdviserDto
.
getSecondTempletId
());
classify
.
setThirdClassify
(
bookAdviserDto
.
getThirdTempletId
());
classify
.
setGradeLabelId
(
bookAdviserDto
.
getGraLabelId
());
classify
.
setGradeLabelId
(
bookAdviserDto
.
getGraLabelId
());
classify
.
setSubjectLabelId
(
bookAdviserDto
.
getSubLabelId
());
classify
.
setSubjectLabelId
(
bookAdviserDto
.
getSubLabelId
());
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
List
<
AppletBooklistDTO
>
list
=
appletBooklistDao
.
getByLabel
(
classify
.
getFirstClassify
(),
classify
.
getSecondClassify
(),
classify
.
getGradeLabelId
(),
classify
.
getSubjectLabelId
(),
3
,
relateAgentId
);
List
<
AppletBooklistDTO
>
list
=
appletBooklistDao
.
getByLabel
(
classify
.
getFirstClassify
(),
classify
.
getSecondClassify
(),
classify
.
getGradeLabelId
(),
classify
.
getSubjectLabelId
(),
3
,
relateAgentId
,
classify
.
getThirdClassify
());
if
(!
ListUtils
.
isEmpty
(
list
)){
if
(!
ListUtils
.
isEmpty
(
list
)){
//带3本书
//带3本书
for
(
AppletBooklistDTO
booklistDTO
:
list
)
{
for
(
AppletBooklistDTO
booklistDTO
:
list
)
{
...
@@ -755,6 +773,7 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
...
@@ -755,6 +773,7 @@ public class AppletBooklistBizImpl implements AppletBooklistBiz {
appletBooklist
.
setUserName
(
"小编推荐"
);
appletBooklist
.
setUserName
(
"小编推荐"
);
appletBooklist
.
setFirstClassify
(
templetIds
.
get
(
0
));
appletBooklist
.
setFirstClassify
(
templetIds
.
get
(
0
));
appletBooklist
.
setSecondClassify
(
ListUtils
.
isEmpty
(
secondTempletIds
)?
null
:
secondTempletIds
.
get
(
0
));
appletBooklist
.
setSecondClassify
(
ListUtils
.
isEmpty
(
secondTempletIds
)?
null
:
secondTempletIds
.
get
(
0
));
appletBooklist
.
setThirdClassify
(
null
);
appletBooklist
.
setGradeLabelId
(
ListUtils
.
isEmpty
(
graLabelIds
)?
null
:
graLabelIds
.
get
(
0
));
appletBooklist
.
setGradeLabelId
(
ListUtils
.
isEmpty
(
graLabelIds
)?
null
:
graLabelIds
.
get
(
0
));
appletBooklist
.
setSubjectLabelId
(
ListUtils
.
isEmpty
(
subLabelIds
)?
null
:
subLabelIds
.
get
(
0
));
appletBooklist
.
setSubjectLabelId
(
ListUtils
.
isEmpty
(
subLabelIds
)?
null
:
subLabelIds
.
get
(
0
));
appletBooklist
.
setDigest
(
esPage
.
getContent
().
size
()+
"本"
+
assistTempletDTO
.
getTempletName
()+
"书单推荐"
);
appletBooklist
.
setDigest
(
esPage
.
getContent
().
size
()+
"本"
+
assistTempletDTO
.
getTempletName
()+
"书单推荐"
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletGroupSearchRecordBizImpl.java
View file @
47ee3261
...
@@ -241,6 +241,7 @@ public class AppletGroupSearchRecordBizImpl implements AppletGroupSearchRecordBi
...
@@ -241,6 +241,7 @@ public class AppletGroupSearchRecordBizImpl implements AppletGroupSearchRecordBi
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
baseTempletClassify
.
setFirstClassify
(
bookAdviser
.
getTempletId
());
baseTempletClassify
.
setFirstClassify
(
bookAdviser
.
getTempletId
());
baseTempletClassify
.
setSecondClassify
(
bookAdviser
.
getSecondTempletId
());
baseTempletClassify
.
setSecondClassify
(
bookAdviser
.
getSecondTempletId
());
baseTempletClassify
.
setThirdClassify
(
bookAdviser
.
getThirdTempletId
());
baseTempletClassify
.
setGradeLabelId
(
bookAdviser
.
getGraLabelId
());
baseTempletClassify
.
setGradeLabelId
(
bookAdviser
.
getGraLabelId
());
baseTempletClassify
.
setSubjectLabelId
(
bookAdviser
.
getSubLabelId
());
baseTempletClassify
.
setSubjectLabelId
(
bookAdviser
.
getSubLabelId
());
// 部分分类需要忽略二级分类
// 部分分类需要忽略二级分类
...
@@ -249,6 +250,7 @@ public class AppletGroupSearchRecordBizImpl implements AppletGroupSearchRecordBi
...
@@ -249,6 +250,7 @@ public class AppletGroupSearchRecordBizImpl implements AppletGroupSearchRecordBi
Map
<
String
,
Object
>
paraMap
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
paraMap
=
Maps
.
newHashMap
();
paraMap
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
paraMap
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
paraMap
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
paraMap
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
paraMap
.
put
(
"thirdClassify"
,
baseTempletClassify
.
getThirdClassify
());
paraMap
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
paraMap
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
paraMap
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
paraMap
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
paraMap
.
put
(
"agentId"
,
agentId
);
paraMap
.
put
(
"agentId"
,
agentId
);
...
@@ -356,7 +358,8 @@ public class AppletGroupSearchRecordBizImpl implements AppletGroupSearchRecordBi
...
@@ -356,7 +358,8 @@ public class AppletGroupSearchRecordBizImpl implements AppletGroupSearchRecordBi
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
0
,
new
ArrayList
<>());
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
0
,
new
ArrayList
<>());
}
}
Long
agentId
=
appletNewsBiz
.
getAgentIdByAccountId
(
officialAccountsId
);
Long
agentId
=
appletNewsBiz
.
getAgentIdByAccountId
(
officialAccountsId
);
PageBeanNew
<
AppletGroupManageDTO
>
pageBeanNew
=
pcloudGroupActivityBiz
.
getGroupListByBookTemplet
(
wechatUserId
,
bookcaseDTO
.
getTempletId
(),
bookcaseDTO
.
getSecondTempletId
(),
bookcaseDTO
.
getGradeLabelId
(),
bookcaseDTO
.
getSubjectLabelId
(),
currentPage
,
numPerPage
,
agentId
);
PageBeanNew
<
AppletGroupManageDTO
>
pageBeanNew
=
pcloudGroupActivityBiz
.
getGroupListByBookTemplet
(
wechatUserId
,
bookcaseDTO
.
getTempletId
(),
bookcaseDTO
.
getSecondTempletId
(),
bookcaseDTO
.
getGradeLabelId
(),
bookcaseDTO
.
getSubjectLabelId
(),
currentPage
,
numPerPage
,
agentId
,
bookcaseDTO
.
getThirdTempletId
());
return
pageBeanNew
;
return
pageBeanNew
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletNewsBizImpl.java
View file @
47ee3261
...
@@ -66,7 +66,6 @@ import com.pcloud.common.page.PageParam;
...
@@ -66,7 +66,6 @@ import com.pcloud.common.page.PageParam;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.readercenter.common.enums.YesOrNoNumEnum
;
import
com.pcloud.readercenter.wechat.entity.WechatUser
;
import
com.pcloud.readercenter.wechat.entity.WechatUser
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -337,7 +336,7 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -337,7 +336,7 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
@Override
@Override
public
PageBeanNew
<
AppletNewsDTO
>
listAppletNews
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
public
PageBeanNew
<
AppletNewsDTO
>
listAppletNews
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
thirdClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
String
source
,
Integer
showState
,
Long
newsClassifyId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
String
source
,
Integer
showState
,
Long
newsClassifyId
,
Long
customTagId
,
String
cityCode
,
Long
agentId
)
{
Long
customTagId
,
String
cityCode
,
Long
agentId
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
...
@@ -356,11 +355,13 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -356,11 +355,13 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setThirdClassify
(
thirdClassify
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
paramMap
.
put
(
"firstClassify"
,
classify
.
getFirstClassify
());
paramMap
.
put
(
"firstClassify"
,
classify
.
getFirstClassify
());
paramMap
.
put
(
"secondClassify"
,
classify
.
getSecondClassify
());
paramMap
.
put
(
"secondClassify"
,
classify
.
getSecondClassify
());
paramMap
.
put
(
"thirdClassify"
,
classify
.
getThirdClassify
());
paramMap
.
put
(
"gradeLabelId"
,
classify
.
getGradeLabelId
());
paramMap
.
put
(
"gradeLabelId"
,
classify
.
getGradeLabelId
());
paramMap
.
put
(
"subjectLabelId"
,
classify
.
getSubjectLabelId
());
paramMap
.
put
(
"subjectLabelId"
,
classify
.
getSubjectLabelId
());
}
else
{
}
else
{
...
@@ -456,6 +457,7 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -456,6 +457,7 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
}
}
List
<
Long
>
firstClassifyIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
firstClassifyIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
secondClassifyIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
secondClassifyIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
thirdClassifyIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
classifyIds
=
new
ArrayList
<>();
List
<
Long
>
classifyIds
=
new
ArrayList
<>();
List
<
Long
>
gradeLabelIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
gradeLabelIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
subjectLabelIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
List
<
Long
>
subjectLabelIds
=
new
ArrayList
<>(
appletNewsDTOS
.
size
());
...
@@ -463,6 +465,7 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -463,6 +465,7 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
for
(
AppletNewsDTO
appletNewsDTO
:
appletNewsDTOS
){
for
(
AppletNewsDTO
appletNewsDTO
:
appletNewsDTOS
){
firstClassifyIds
.
add
(
appletNewsDTO
.
getFirstClassify
());
firstClassifyIds
.
add
(
appletNewsDTO
.
getFirstClassify
());
secondClassifyIds
.
add
(
appletNewsDTO
.
getSecondClassify
());
secondClassifyIds
.
add
(
appletNewsDTO
.
getSecondClassify
());
thirdClassifyIds
.
add
(
appletNewsDTO
.
getThirdClassify
());
gradeLabelIds
.
add
(
appletNewsDTO
.
getGradeLabelId
());
gradeLabelIds
.
add
(
appletNewsDTO
.
getGradeLabelId
());
subjectLabelIds
.
add
(
appletNewsDTO
.
getSubjectLabelId
());
subjectLabelIds
.
add
(
appletNewsDTO
.
getSubjectLabelId
());
}
}
...
@@ -472,6 +475,9 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -472,6 +475,9 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
if
(!
ListUtils
.
isEmpty
(
secondClassifyIds
)){
if
(!
ListUtils
.
isEmpty
(
secondClassifyIds
)){
classifyIds
.
addAll
(
secondClassifyIds
);
classifyIds
.
addAll
(
secondClassifyIds
);
}
}
if
(!
ListUtils
.
isEmpty
(
thirdClassifyIds
)){
classifyIds
.
addAll
(
thirdClassifyIds
);
}
if
(!
ListUtils
.
isEmpty
(
gradeLabelIds
)){
if
(!
ListUtils
.
isEmpty
(
gradeLabelIds
)){
labelIds
.
addAll
(
gradeLabelIds
);
labelIds
.
addAll
(
gradeLabelIds
);
}
}
...
@@ -493,6 +499,9 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -493,6 +499,9 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
appletNewsDTO
.
getSecondClassify
())){
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
appletNewsDTO
.
getSecondClassify
())){
appletNewsDTO
.
setSecondClassifyContent
(
classifyMap
.
get
(
appletNewsDTO
.
getSecondClassify
()).
getTempletName
());
appletNewsDTO
.
setSecondClassifyContent
(
classifyMap
.
get
(
appletNewsDTO
.
getSecondClassify
()).
getTempletName
());
}
}
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
appletNewsDTO
.
getThirdClassify
())){
appletNewsDTO
.
setThirdClassifyContent
(
classifyMap
.
get
(
appletNewsDTO
.
getThirdClassify
()).
getTempletName
());
}
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
appletNewsDTO
.
getGradeLabelId
())){
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
appletNewsDTO
.
getGradeLabelId
())){
appletNewsDTO
.
setGradeLabelIdContent
(
labelMap
.
get
(
appletNewsDTO
.
getGradeLabelId
()).
getName
());
appletNewsDTO
.
setGradeLabelIdContent
(
labelMap
.
get
(
appletNewsDTO
.
getGradeLabelId
()).
getName
());
}
}
...
@@ -709,6 +718,9 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -709,6 +718,9 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
if
(
classifyMap
.
containsKey
(
categoryDTO
.
getSecondClassify
()))
{
if
(
classifyMap
.
containsKey
(
categoryDTO
.
getSecondClassify
()))
{
categoryDTO
.
setSecondClassifyName
(
classifyMap
.
get
(
categoryDTO
.
getSecondClassify
()).
getTempletName
());
categoryDTO
.
setSecondClassifyName
(
classifyMap
.
get
(
categoryDTO
.
getSecondClassify
()).
getTempletName
());
}
}
if
(
classifyMap
.
containsKey
(
categoryDTO
.
getThirdClassify
()))
{
categoryDTO
.
setThirdClassifyName
(
classifyMap
.
get
(
categoryDTO
.
getThirdClassify
()).
getTempletName
());
}
}
}
}
}
}
}
...
@@ -802,15 +814,16 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -802,15 +814,16 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
}
}
@Override
@Override
public
List
<
AppletNewsDTO
>
getNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
)
{
public
List
<
AppletNewsDTO
>
getNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
,
Long
thirdClassify
)
{
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setThirdClassify
(
thirdClassify
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
List
<
AppletNewsDTO
>
list
=
new
ArrayList
<>();
List
<
AppletNewsDTO
>
list
=
new
ArrayList
<>();
list
=
appletNewsDao
.
getByNewsByTempletLabel
(
classify
.
getFirstClassify
(),
classify
.
getSecondClassify
(),
classify
.
getGradeLabelId
(),
classify
.
getSubjectLabelId
(),
rightsType
,
agentId
);
list
=
appletNewsDao
.
getByNewsByTempletLabel
(
classify
.
getFirstClassify
(),
classify
.
getSecondClassify
(),
classify
.
getGradeLabelId
(),
classify
.
getSubjectLabelId
(),
rightsType
,
agentId
,
classify
.
getThirdClassify
()
);
return
list
;
return
list
;
}
}
...
@@ -947,8 +960,8 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -947,8 +960,8 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
}
}
@Override
@Override
public
PageBeanNew
<
AppletNewsDTO
>
listAppletNews4Analysis
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Long
rightsClassifyId
,
public
PageBeanNew
<
AppletNewsDTO
>
listAppletNews4Analysis
(
Integer
currentPage
,
Integer
numPerPage
,
String
name
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Long
rightsClassifyId
,
String
source
,
Integer
browseQty
,
Integer
clickQty
,
Long
agentId
)
{
String
source
,
Integer
browseQty
,
Integer
clickQty
,
Long
agentId
,
Long
thirdClassify
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"name"
,
name
);
paramMap
.
put
(
"name"
,
name
);
paramMap
.
put
(
"linkOnly"
,
linkOnly
);
paramMap
.
put
(
"linkOnly"
,
linkOnly
);
...
@@ -959,11 +972,13 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
...
@@ -959,11 +972,13 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
BaseTempletClassify
classify
=
new
BaseTempletClassify
();
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setFirstClassify
(
firstClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setSecondClassify
(
secondClassify
);
classify
.
setThirdClassify
(
thirdClassify
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setGradeLabelId
(
gradeLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
classify
.
setSubjectLabelId
(
subjectLabelId
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
rightsSettingBiz
.
setClassifyAndLabel
(
classify
);
paramMap
.
put
(
"firstClassify"
,
classify
.
getFirstClassify
());
paramMap
.
put
(
"firstClassify"
,
classify
.
getFirstClassify
());
paramMap
.
put
(
"secondClassify"
,
classify
.
getSecondClassify
());
paramMap
.
put
(
"secondClassify"
,
classify
.
getSecondClassify
());
paramMap
.
put
(
"thirdClassify"
,
classify
.
getThirdClassify
());
paramMap
.
put
(
"gradeLabelId"
,
classify
.
getGradeLabelId
());
paramMap
.
put
(
"gradeLabelId"
,
classify
.
getGradeLabelId
());
paramMap
.
put
(
"subjectLabelId"
,
classify
.
getSubjectLabelId
());
paramMap
.
put
(
"subjectLabelId"
,
classify
.
getSubjectLabelId
());
}
else
{
}
else
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AppletUserBookcaseBizImpl.java
View file @
47ee3261
...
@@ -359,6 +359,9 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
...
@@ -359,6 +359,9 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
if
(
Objects
.
nonNull
(
dto
.
getSecondTempletId
()))
{
if
(
Objects
.
nonNull
(
dto
.
getSecondTempletId
()))
{
templetIds
.
add
(
dto
.
getSecondTempletId
());
templetIds
.
add
(
dto
.
getSecondTempletId
());
}
}
if
(
Objects
.
nonNull
(
dto
.
getThirdTempletId
()))
{
templetIds
.
add
(
dto
.
getThirdTempletId
());
}
});
});
List
<
Long
>
classifyTempletIds
=
recordList
.
stream
().
filter
(
s
->
s
.
getJoinGroupType
()
!=
null
&&
JoinGroupTypeEnum
.
XIAORUI
.
getCode
().
equals
(
s
.
getJoinGroupType
())).
map
(
s
->
s
.
getTempletId
()).
distinct
().
collect
(
Collectors
.
toList
());
List
<
Long
>
classifyTempletIds
=
recordList
.
stream
().
filter
(
s
->
s
.
getJoinGroupType
()
!=
null
&&
JoinGroupTypeEnum
.
XIAORUI
.
getCode
().
equals
(
s
.
getJoinGroupType
())).
map
(
s
->
s
.
getTempletId
()).
distinct
().
collect
(
Collectors
.
toList
());
Map
<
Integer
,
Integer
>
classifyMap
=
new
HashMap
<>();
Map
<
Integer
,
Integer
>
classifyMap
=
new
HashMap
<>();
...
@@ -372,6 +375,7 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
...
@@ -372,6 +375,7 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
for
(
AppletUserBookcaseDTO
bookcaseDTO
:
recordList
)
{
for
(
AppletUserBookcaseDTO
bookcaseDTO
:
recordList
)
{
Long
secondTempletId
=
bookcaseDTO
.
getSecondTempletId
();
Long
secondTempletId
=
bookcaseDTO
.
getSecondTempletId
();
Long
templetId
=
bookcaseDTO
.
getTempletId
();
Long
templetId
=
bookcaseDTO
.
getTempletId
();
Long
thirdTempletId
=
bookcaseDTO
.
getThirdTempletId
();
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
secondTempletId
);
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
secondTempletId
);
bookcaseDTO
.
setSecondTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
bookcaseDTO
.
setSecondTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
...
@@ -380,6 +384,10 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
...
@@ -380,6 +384,10 @@ public class AppletUserBookcaseBizImpl implements AppletUserBookcaseBiz {
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
templetId
);
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
templetId
);
bookcaseDTO
.
setTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
bookcaseDTO
.
setTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
}
if
(
thirdTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
thirdTempletId
);
bookcaseDTO
.
setThirdTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
null
!=
bookcaseDTO
.
getTempletId
()
&&
classifyMap
.
containsKey
(
bookcaseDTO
.
getTempletId
().
intValue
()))
{
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
null
!=
bookcaseDTO
.
getTempletId
()
&&
classifyMap
.
containsKey
(
bookcaseDTO
.
getTempletId
().
intValue
()))
{
bookcaseDTO
.
setClassifyId
(
classifyMap
.
get
(
bookcaseDTO
.
getTempletId
().
intValue
()));
bookcaseDTO
.
setClassifyId
(
classifyMap
.
get
(
bookcaseDTO
.
getTempletId
().
intValue
()));
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dao/AppletBooklistDao.java
View file @
47ee3261
...
@@ -74,7 +74,7 @@ public interface AppletBooklistDao extends BaseDao<AppletBooklist> {
...
@@ -74,7 +74,7 @@ public interface AppletBooklistDao extends BaseDao<AppletBooklist> {
* @date:2020/8/10 10:37
* @date:2020/8/10 10:37
* * @param null
* * @param null
*/
*/
List
<
AppletBooklistDTO
>
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
limit
,
Long
relateAgentId
);
List
<
AppletBooklistDTO
>
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
limit
,
Long
relateAgentId
,
Long
thirdClassify
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dao/AppletNewsDao.java
View file @
47ee3261
...
@@ -8,7 +8,6 @@ import com.pcloud.book.applet.vo.AppletNewsClassifyVO;
...
@@ -8,7 +8,6 @@ import com.pcloud.book.applet.vo.AppletNewsClassifyVO;
import
com.pcloud.book.applet.vo.AppletNewsShowStateVO
;
import
com.pcloud.book.applet.vo.AppletNewsShowStateVO
;
import
com.pcloud.common.core.dao.BaseDao
;
import
com.pcloud.common.core.dao.BaseDao
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -46,12 +45,13 @@ public interface AppletNewsDao extends BaseDao<AppletNews> {
...
@@ -46,12 +45,13 @@ public interface AppletNewsDao extends BaseDao<AppletNews> {
* @param gradeLabelId
* @param gradeLabelId
* @param subjectLabelId
* @param subjectLabelId
* @param rightsType
* @param rightsType
* @param thirdClassify
* @return
* @return
*/
*/
List
<
AppletNewsDTO
>
getByNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
);
List
<
AppletNewsDTO
>
getByNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
,
Long
thirdClassify
);
List
<
AppletNews
>
getByTempletAndClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
Integer
top
,
List
<
AppletNews
>
getByTempletAndClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
Integer
top
,
Long
agentId
);
Long
agentId
,
Long
thirdClassify
);
/**
/**
*新增资讯来源
*新增资讯来源
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dao/impl/AppletBooklistDaoImpl.java
View file @
47ee3261
...
@@ -73,10 +73,11 @@ public class AppletBooklistDaoImpl extends BaseDaoImpl<AppletBooklist> implement
...
@@ -73,10 +73,11 @@ public class AppletBooklistDaoImpl extends BaseDaoImpl<AppletBooklist> implement
@Override
@Override
public
List
<
AppletBooklistDTO
>
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
limit
,
public
List
<
AppletBooklistDTO
>
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
limit
,
Long
relateAgentId
)
{
Long
relateAgentId
,
Long
thirdClassify
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"firstClassify"
,
firstClassify
);
paramMap
.
put
(
"firstClassify"
,
firstClassify
);
paramMap
.
put
(
"secondClassify"
,
secondClassify
);
paramMap
.
put
(
"secondClassify"
,
secondClassify
);
paramMap
.
put
(
"thirdClassify"
,
thirdClassify
);
paramMap
.
put
(
"gradeLabelId"
,
gradeLabelId
);
paramMap
.
put
(
"gradeLabelId"
,
gradeLabelId
);
paramMap
.
put
(
"subjectLabelId"
,
subjectLabelId
);
paramMap
.
put
(
"subjectLabelId"
,
subjectLabelId
);
paramMap
.
put
(
"limit"
,
limit
);
paramMap
.
put
(
"limit"
,
limit
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dao/impl/AppletNewsDaoImpl.java
View file @
47ee3261
...
@@ -10,7 +10,6 @@ import com.pcloud.book.applet.vo.AppletNewsShowStateVO;
...
@@ -10,7 +10,6 @@ import com.pcloud.book.applet.vo.AppletNewsShowStateVO;
import
com.pcloud.common.core.dao.BaseDaoImpl
;
import
com.pcloud.common.core.dao.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -41,10 +40,11 @@ public class AppletNewsDaoImpl extends BaseDaoImpl<AppletNews> implements Applet
...
@@ -41,10 +40,11 @@ public class AppletNewsDaoImpl extends BaseDaoImpl<AppletNews> implements Applet
}
}
@Override
@Override
public
List
<
AppletNewsDTO
>
getByNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
)
{
public
List
<
AppletNewsDTO
>
getByNewsByTempletLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
String
rightsType
,
Long
agentId
,
Long
thirdClassify
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"thirdClassify"
,
thirdClassify
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"rightsType"
,
rightsType
);
map
.
put
(
"rightsType"
,
rightsType
);
...
@@ -58,10 +58,11 @@ public class AppletNewsDaoImpl extends BaseDaoImpl<AppletNews> implements Applet
...
@@ -58,10 +58,11 @@ public class AppletNewsDaoImpl extends BaseDaoImpl<AppletNews> implements Applet
@Override
@Override
public
List
<
AppletNews
>
getByTempletAndClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
Integer
top
,
public
List
<
AppletNews
>
getByTempletAndClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
rightsClassifyId
,
Integer
top
,
Long
agentId
)
{
Long
agentId
,
Long
thirdClassify
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"thirdClassify"
,
thirdClassify
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"rightsClassifyId"
,
rightsClassifyId
);
map
.
put
(
"rightsClassifyId"
,
rightsClassifyId
);
...
@@ -124,6 +125,7 @@ public class AppletNewsDaoImpl extends BaseDaoImpl<AppletNews> implements Applet
...
@@ -124,6 +125,7 @@ public class AppletNewsDaoImpl extends BaseDaoImpl<AppletNews> implements Applet
map
.
put
(
"ids"
,
appletNewsClassifyVO
.
getAppletNewsIds
());
map
.
put
(
"ids"
,
appletNewsClassifyVO
.
getAppletNewsIds
());
map
.
put
(
"firstClassify"
,
appletNewsClassifyVO
.
getFirstClassify
());
map
.
put
(
"firstClassify"
,
appletNewsClassifyVO
.
getFirstClassify
());
map
.
put
(
"secondClassify"
,
appletNewsClassifyVO
.
getSecondClassify
());
map
.
put
(
"secondClassify"
,
appletNewsClassifyVO
.
getSecondClassify
());
map
.
put
(
"thirdClassify"
,
appletNewsClassifyVO
.
getThirdClassify
());
map
.
put
(
"gradeLabelId"
,
appletNewsClassifyVO
.
getGradeLabelId
());
map
.
put
(
"gradeLabelId"
,
appletNewsClassifyVO
.
getGradeLabelId
());
map
.
put
(
"subjectLabelId"
,
appletNewsClassifyVO
.
getSubjectLabelId
());
map
.
put
(
"subjectLabelId"
,
appletNewsClassifyVO
.
getSubjectLabelId
());
map
.
put
(
"rightsClassifyId"
,
appletNewsClassifyVO
.
getRightsClassifyId
());
map
.
put
(
"rightsClassifyId"
,
appletNewsClassifyVO
.
getRightsClassifyId
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dto/AppletBooklistDTO.java
View file @
47ee3261
...
@@ -59,6 +59,10 @@ public class AppletBooklistDTO extends BaseDto {
...
@@ -59,6 +59,10 @@ public class AppletBooklistDTO extends BaseDto {
private
String
firstClassifyContent
;
private
String
firstClassifyContent
;
@ApiModelProperty
(
"第二级类型"
)
@ApiModelProperty
(
"第二级类型"
)
private
String
secondClassifyContent
;
private
String
secondClassifyContent
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"第三级类型标识名称"
)
private
String
thirdClassifyContent
;
@ApiModelProperty
(
"年级标签"
)
@ApiModelProperty
(
"年级标签"
)
private
String
gradeLabelIdContent
;
private
String
gradeLabelIdContent
;
@ApiModelProperty
(
"科目标签"
)
@ApiModelProperty
(
"科目标签"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dto/AppletUserBookcaseDTO.java
View file @
47ee3261
...
@@ -52,6 +52,12 @@ public class AppletUserBookcaseDTO extends BaseDto {
...
@@ -52,6 +52,12 @@ public class AppletUserBookcaseDTO extends BaseDto {
@ApiModelProperty
(
"二级分类id"
)
@ApiModelProperty
(
"二级分类id"
)
private
Long
secondTempletId
;
private
Long
secondTempletId
;
@ApiModelProperty
(
"三级分类id"
)
private
Long
thirdTempletId
;
@ApiModelProperty
(
"三级分类名称"
)
private
String
thirdTempletName
;
@ApiModelProperty
(
"二级分类名"
)
@ApiModelProperty
(
"二级分类名"
)
private
String
secondTempletName
;
private
String
secondTempletName
;
@ApiModelProperty
(
"社群码类型"
)
@ApiModelProperty
(
"社群码类型"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/dto/BookDTO4Booklist.java
View file @
47ee3261
...
@@ -46,6 +46,14 @@ public class BookDTO4Booklist extends BaseDto {
...
@@ -46,6 +46,14 @@ public class BookDTO4Booklist extends BaseDto {
private
Long
secondTempletId
;
private
Long
secondTempletId
;
@ApiModelProperty
(
"二级分类名"
)
@ApiModelProperty
(
"二级分类名"
)
private
String
secondTempletName
;
private
String
secondTempletName
;
/**
* 三级分类id
*/
private
Long
thirdTempletId
;
/**
* 三级分类名称
*/
private
String
thirdTempletName
;
@ApiModelProperty
(
"排序值"
)
@ApiModelProperty
(
"排序值"
)
private
Integer
seq
;
private
Integer
seq
;
@ApiModelProperty
(
"isbn"
)
@ApiModelProperty
(
"isbn"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/applet/facade/AppletHomeFacade.java
View file @
47ee3261
...
@@ -238,6 +238,7 @@ public class AppletHomeFacade {
...
@@ -238,6 +238,7 @@ public class AppletHomeFacade {
@RequestParam
(
value
=
"classifyId"
,
required
=
false
)
@ApiParam
(
"书单栏目id"
)
Long
classifyId
,
@RequestParam
(
value
=
"classifyId"
,
required
=
false
)
@ApiParam
(
"书单栏目id"
)
Long
classifyId
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级书刊分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级书刊分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级标签"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级标签"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目标签"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目标签"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"relateAgentId"
,
required
=
false
)
@ApiParam
(
"书单所属出版"
)
Long
relateAgentId
@RequestParam
(
value
=
"relateAgentId"
,
required
=
false
)
@ApiParam
(
"书单所属出版"
)
Long
relateAgentId
...
@@ -247,7 +248,7 @@ public class AppletHomeFacade {
...
@@ -247,7 +248,7 @@ public class AppletHomeFacade {
if
(
null
==
currentPage
||
null
==
numPerPage
){
if
(
null
==
currentPage
||
null
==
numPerPage
){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少分页参数"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少分页参数"
);
}
}
return
new
ResponseDto
<>(
appletBooklistBiz
.
listBooklist
(
currentPage
,
numPerPage
,
name
,
classifyId
,
agentId
,
firstClassify
,
secondClassify
,
return
new
ResponseDto
<>(
appletBooklistBiz
.
listBooklist
(
currentPage
,
numPerPage
,
name
,
classifyId
,
agentId
,
firstClassify
,
secondClassify
,
thirdClassify
,
gradeLabelId
,
subjectLabelId
,
relateAgentId
));
gradeLabelId
,
subjectLabelId
,
relateAgentId
));
}
}
...
@@ -533,6 +534,7 @@ public class AppletHomeFacade {
...
@@ -533,6 +534,7 @@ public class AppletHomeFacade {
@RequestParam
(
value
=
"name"
,
required
=
false
)
@ApiParam
(
"名称查询"
)
String
name
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
@ApiParam
(
"名称查询"
)
String
name
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级书刊分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级书刊分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级标签"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级标签"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目标签"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目标签"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"rightsClassifyId"
,
required
=
false
)
@ApiParam
(
"权益分类"
)
Long
rightsClassifyId
,
@RequestParam
(
value
=
"rightsClassifyId"
,
required
=
false
)
@ApiParam
(
"权益分类"
)
Long
rightsClassifyId
,
...
@@ -547,7 +549,7 @@ public class AppletHomeFacade {
...
@@ -547,7 +549,7 @@ public class AppletHomeFacade {
if
(
null
==
currentPage
||
null
==
numPerPage
){
if
(
null
==
currentPage
||
null
==
numPerPage
){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少分页参数"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少分页参数"
);
}
}
return
new
ResponseDto
<>(
appletNewsBiz
.
listAppletNews
(
currentPage
,
numPerPage
,
name
,
firstClassify
,
secondClassify
,
gradeLabelId
,
return
new
ResponseDto
<>(
appletNewsBiz
.
listAppletNews
(
currentPage
,
numPerPage
,
name
,
firstClassify
,
secondClassify
,
thirdClassify
,
gradeLabelId
,
subjectLabelId
,
rightsClassifyId
,
source
,
showState
,
newsClassifyId
,
customTagId
,
cityCode
,
agentId
));
subjectLabelId
,
rightsClassifyId
,
source
,
showState
,
newsClassifyId
,
customTagId
,
cityCode
,
agentId
));
}
}
...
@@ -811,6 +813,7 @@ public class AppletHomeFacade {
...
@@ -811,6 +813,7 @@ public class AppletHomeFacade {
@RequestParam
(
value
=
"name"
,
required
=
false
)
@ApiParam
(
"名称/外链编号查询"
)
String
name
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
@ApiParam
(
"名称/外链编号查询"
)
String
name
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级书刊分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级书刊分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级书刊分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级标签"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级标签"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目标签"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目标签"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"linkOnly"
,
required
=
false
)
@ApiParam
(
"只看第三方"
)
Integer
linkOnly
,
@RequestParam
(
value
=
"linkOnly"
,
required
=
false
)
@ApiParam
(
"只看第三方"
)
Integer
linkOnly
,
...
@@ -825,7 +828,7 @@ public class AppletHomeFacade {
...
@@ -825,7 +828,7 @@ public class AppletHomeFacade {
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少分页参数"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少分页参数"
);
}
}
return
new
ResponseDto
<>(
appletNewsBiz
.
listAppletNews4Analysis
(
currentPage
,
numPerPage
,
name
,
firstClassify
,
secondClassify
,
gradeLabelId
,
return
new
ResponseDto
<>(
appletNewsBiz
.
listAppletNews4Analysis
(
currentPage
,
numPerPage
,
name
,
firstClassify
,
secondClassify
,
gradeLabelId
,
subjectLabelId
,
linkOnly
,
rightsClassifyId
,
source
,
browseQty
,
clickQty
,
agentId
));
subjectLabelId
,
linkOnly
,
rightsClassifyId
,
source
,
browseQty
,
clickQty
,
agentId
,
thirdClassify
));
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/BookAdviserBiz.java
View file @
47ee3261
...
@@ -195,7 +195,8 @@ public interface BookAdviserBiz {
...
@@ -195,7 +195,8 @@ public interface BookAdviserBiz {
* @param templetId 模板标识
* @param templetId 模板标识
* @param secondTempletId 模板第二阶级标识
* @param secondTempletId 模板第二阶级标识
*/
*/
public
void
recoverBook4Adviser
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
Long
graLabelId
,
Long
subLabelId
,
Long
verLabelId
,
Long
areaLabelId
,
Boolean
recoverScene
);
public
void
recoverBook4Adviser
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
Long
graLabelId
,
Long
subLabelId
,
Long
verLabelId
,
Long
areaLabelId
,
Boolean
recoverScene
,
Long
thirdTempletId
);
/**
/**
* 获取编辑的图书总数
* 获取编辑的图书总数
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/BookBiz.java
View file @
47ee3261
...
@@ -649,12 +649,12 @@ public interface BookBiz {
...
@@ -649,12 +649,12 @@ public interface BookBiz {
/**
/**
* 平台端获取编辑书刊
* 平台端获取编辑书刊
*/
*/
PageBeanNew
<
BookDto
>
getAdviserBooks4Pcloud
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
);
PageBeanNew
<
BookDto
>
getAdviserBooks4Pcloud
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
Long
thirdTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
);
/**
/**
* 获取编辑书刊H5
* 获取编辑书刊H5
*/
*/
PageBeanNew
<
BookDto
>
getAdviserBooks4H5
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Integer
currentPage
,
PageBeanNew
<
BookDto
>
getAdviserBooks4H5
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Long
thirdTempletId
,
Integer
currentPage
,
Integer
numPerPage
);
Integer
numPerPage
);
/**
/**
...
@@ -683,7 +683,7 @@ public interface BookBiz {
...
@@ -683,7 +683,7 @@ public interface BookBiz {
void
updateIsOpenRobotProcess4Now
(
Long
adviserId
,
UpdateBookRobotProcessDto
robotProcessDto
);
void
updateIsOpenRobotProcess4Now
(
Long
adviserId
,
UpdateBookRobotProcessDto
robotProcessDto
);
PageBeanNew
<
BookDto
>
getAdviserBooks4Rights
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
,
Integer
isIgnore
);
PageBeanNew
<
BookDto
>
getAdviserBooks4Rights
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
,
Integer
isIgnore
,
Long
thirdTempletId
);
void
createBookGroupAppletUrl
(
Long
bookId
,
Long
channelId
,
Long
adviserId
,
List
<
Long
>
sceneIds
);
void
createBookGroupAppletUrl
(
Long
bookId
,
Long
channelId
,
Long
adviserId
,
List
<
Long
>
sceneIds
);
/**
/**
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
View file @
47ee3261
...
@@ -9,7 +9,6 @@ import com.google.common.collect.Lists;
...
@@ -9,7 +9,6 @@ import com.google.common.collect.Lists;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
com.pcloud.analysisengine.browse.dto.BookBrowseAndScanStatsDTO
;
import
com.pcloud.analysisengine.browse.dto.BookBrowseAndScanStatsDTO
;
import
com.pcloud.analysisengine.browse.dto.BrowseCacheRecordDto
;
import
com.pcloud.analysisengine.browse.dto.BrowseCacheRecordDto
;
import
com.pcloud.appcenter.app.dto.AppCountDto
;
import
com.pcloud.book.base.dto.CountDto
;
import
com.pcloud.book.base.dto.CountDto
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.book.biz.BookAdviserBiz
;
import
com.pcloud.book.book.biz.BookAdviserBiz
;
...
@@ -241,7 +240,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -241,7 +240,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
recoverBook4Adviser
(
bookAdviser
.
getBookId
(),
bookAdviser
.
getAdviserId
(),
bookAdviser
.
getChannelId
(),
recoverBook4Adviser
(
bookAdviser
.
getBookId
(),
bookAdviser
.
getAdviserId
(),
bookAdviser
.
getChannelId
(),
bookAdviser
.
getTempletId
(),
bookAdviser
.
getSecondTempletId
(),
bookAdviser
.
getTempletId
(),
bookAdviser
.
getSecondTempletId
(),
bookAdviser
.
getGraLabelId
(),
bookAdviser
.
getSubLabelId
(),
bookAdviser
.
getVerLabelId
(),
bookAdviser
.
getAreaLabelId
(),
bookAdviser
.
getGraLabelId
(),
bookAdviser
.
getSubLabelId
(),
bookAdviser
.
getVerLabelId
(),
bookAdviser
.
getAreaLabelId
(),
false
);
false
,
bookAdviser
.
getThirdTempletId
()
);
bookAdviser
.
setBookAdviserId
(
bookAdviserDto
.
getBookAdviserId
());
bookAdviser
.
setBookAdviserId
(
bookAdviserDto
.
getBookAdviserId
());
}
else
{
}
else
{
// 判断是否配置过该书籍推广信息
// 判断是否配置过该书籍推广信息
...
@@ -679,6 +678,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -679,6 +678,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
bookAdviser
.
setAdviserId
(
book
.
getLastModifiedUser
());
bookAdviser
.
setAdviserId
(
book
.
getLastModifiedUser
());
bookAdviser
.
setChannelId
(
book
.
getChannelId
());
bookAdviser
.
setChannelId
(
book
.
getChannelId
());
bookAdviser
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookAdviser
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookAdviser
.
setThirdTempletId
(
book
.
getThirdTempletId
());
bookAdviser
.
setGraLabelId
(
book
.
getGraLabelId
());
bookAdviser
.
setGraLabelId
(
book
.
getGraLabelId
());
bookAdviser
.
setSubLabelId
(
book
.
getSubLabelId
());
bookAdviser
.
setSubLabelId
(
book
.
getSubLabelId
());
bookAdviser
.
setAreaLabelId
(
book
.
getAreaLabelId
());
bookAdviser
.
setAreaLabelId
(
book
.
getAreaLabelId
());
...
@@ -809,7 +809,8 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -809,7 +809,8 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
// 删除图书关联二维码
// 删除图书关联二维码
qrcodeSceneConsr
.
deleteByBook
(
bookId
,
channelId
,
null
);
qrcodeSceneConsr
.
deleteByBook
(
bookId
,
channelId
,
null
);
// 删除书籍编辑的状态
// 删除书籍编辑的状态
updateBookAdviserStatus
(
bookId
,
null
,
channelId
,
null
,
null
,
null
,
null
,
null
,
null
,
BookConstant
.
BOOK_ADVISER_DELETE
,
null
);
updateBookAdviserStatus
(
bookId
,
null
,
channelId
,
null
,
null
,
null
,
null
,
null
,
null
,
BookConstant
.
BOOK_ADVISER_DELETE
,
null
,
null
);
// 删除读者端的书架的书籍
// 删除读者端的书架的书籍
bookcaseConsr
.
deleteBookForAdviser
(
bookId
,
channelId
,
adviserId
);
bookcaseConsr
.
deleteBookForAdviser
(
bookId
,
channelId
,
adviserId
);
}
}
...
@@ -831,7 +832,8 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -831,7 +832,8 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
// 删除图书关联二维码
// 删除图书关联二维码
qrcodeSceneConsr
.
deleteByBook
(
bookId
,
channelId
,
adviserId
);
qrcodeSceneConsr
.
deleteByBook
(
bookId
,
channelId
,
adviserId
);
// 删除书籍编辑的状态
// 删除书籍编辑的状态
updateBookAdviserStatus
(
bookId
,
adviserId
,
channelId
,
null
,
null
,
null
,
null
,
null
,
null
,
BookConstant
.
BOOK_ADVISER_DELETE
,
null
);
updateBookAdviserStatus
(
bookId
,
adviserId
,
channelId
,
null
,
null
,
null
,
null
,
null
,
null
,
BookConstant
.
BOOK_ADVISER_DELETE
,
null
,
null
);
// 删除读者端的书架的书籍
// 删除读者端的书架的书籍
bookcaseConsr
.
deleteBookForAdviser
(
bookId
,
channelId
,
adviserId
);
bookcaseConsr
.
deleteBookForAdviser
(
bookId
,
channelId
,
adviserId
);
}
}
...
@@ -843,11 +845,11 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -843,11 +845,11 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
recoverBook4Adviser
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
public
void
recoverBook4Adviser
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
Long
graLabelId
,
Long
subLabelId
,
Long
verLabelId
,
Long
areaLabelId
,
Long
graLabelId
,
Long
subLabelId
,
Long
verLabelId
,
Long
areaLabelId
,
Boolean
recoverScene
)
{
Boolean
recoverScene
,
Long
thirdTempletId
)
{
LOGGER
.
info
(
"恢复书籍-编辑 <START>.[bookId]="
+
bookId
+
",adviserId="
+
adviserId
+
",channelId="
+
channelId
+
" templetId= "
+
templetId
+
"secondTempletId="
+
secondTempletId
);
LOGGER
.
info
(
"恢复书籍-编辑 <START>.[bookId]="
+
bookId
+
",adviserId="
+
adviserId
+
",channelId="
+
channelId
+
" templetId= "
+
templetId
+
"secondTempletId="
+
secondTempletId
);
checkIsHaveOtherAdviser
(
bookId
,
channelId
,
adviserId
);
checkIsHaveOtherAdviser
(
bookId
,
channelId
,
adviserId
);
// 恢复书籍编辑的状态
// 恢复书籍编辑的状态
updateBookAdviserStatus
(
bookId
,
adviserId
,
channelId
,
templetId
,
secondTempletId
,
graLabelId
,
subLabelId
,
verLabelId
,
areaLabelId
,
BookConstant
.
BOOK_ADVISER_NO_DELETE
,
BookConstant
.
MAIN_ADVISER
);
updateBookAdviserStatus
(
bookId
,
adviserId
,
channelId
,
templetId
,
secondTempletId
,
graLabelId
,
subLabelId
,
verLabelId
,
areaLabelId
,
BookConstant
.
BOOK_ADVISER_NO_DELETE
,
BookConstant
.
MAIN_ADVISER
,
thirdTempletId
);
// 恢复图书关联的二维码 20190723-刘娜【ID1001264】社群书删除后,再创建时不要自动恢复
// 恢复图书关联的二维码 20190723-刘娜【ID1001264】社群书删除后,再创建时不要自动恢复
if
(
recoverScene
)
{
if
(
recoverScene
)
{
bookGroupBiz
.
recoverByBookId
(
bookId
,
channelId
,
adviserId
);
bookGroupBiz
.
recoverByBookId
(
bookId
,
channelId
,
adviserId
);
...
@@ -861,13 +863,14 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -861,13 +863,14 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
* @param bookId 圖書標識
* @param bookId 圖書標識
* @param adviserId 编辑标识
* @param adviserId 编辑标识
* @param channelId 运营标识
* @param channelId 运营标识
* @param secondTempletId 第二级标题id
* @param deleteStatus 删除状态
* @param deleteStatus 删除状态
* @param isMainAdviser
* @param isMainAdviser
* @param
secondTempletId 第二级标题i
d
* @param
thirdTempletI
d
*/
*/
private
void
updateBookAdviserStatus
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
private
void
updateBookAdviserStatus
(
Long
bookId
,
Long
adviserId
,
Long
channelId
,
Long
templetId
,
Long
secondTempletId
,
Long
graLabelId
,
Long
subLabelId
,
Long
verLabelId
,
Long
areaLabelId
,
Long
graLabelId
,
Long
subLabelId
,
Long
verLabelId
,
Long
areaLabelId
,
Integer
deleteStatus
,
Integer
isMainAdviser
)
{
Integer
deleteStatus
,
Integer
isMainAdviser
,
Long
thirdTempletId
)
{
LOGGER
.
info
(
"修改书籍编辑的状态(删除或者恢复) <START>.[bookId]="
+
bookId
+
",adviserId="
+
adviserId
+
",channelId="
LOGGER
.
info
(
"修改书籍编辑的状态(删除或者恢复) <START>.[bookId]="
+
bookId
+
",adviserId="
+
adviserId
+
",channelId="
+
channelId
+
",deleteStatus="
+
deleteStatus
+
",isMainAdviser="
+
isMainAdviser
+
"templetId"
+
templetId
);
+
channelId
+
",deleteStatus="
+
deleteStatus
+
",isMainAdviser="
+
isMainAdviser
+
"templetId"
+
templetId
);
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
...
@@ -878,6 +881,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -878,6 +881,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
paramMap
.
put
(
"status"
,
deleteStatus
);
paramMap
.
put
(
"status"
,
deleteStatus
);
paramMap
.
put
(
"templetId"
,
templetId
);
paramMap
.
put
(
"templetId"
,
templetId
);
paramMap
.
put
(
"secondTempletId"
,
secondTempletId
);
paramMap
.
put
(
"secondTempletId"
,
secondTempletId
);
paramMap
.
put
(
"thirdTempletId"
,
thirdTempletId
);
paramMap
.
put
(
"graLabelId"
,
graLabelId
);
paramMap
.
put
(
"graLabelId"
,
graLabelId
);
paramMap
.
put
(
"subLabelId"
,
subLabelId
);
paramMap
.
put
(
"subLabelId"
,
subLabelId
);
paramMap
.
put
(
"verLabelId"
,
verLabelId
);
paramMap
.
put
(
"verLabelId"
,
verLabelId
);
...
@@ -1023,7 +1027,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -1023,7 +1027,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
BookAdviserDto
adviserDto
=
bookAdviserDao
.
getBase
(
bookId
,
channelId
,
adviserId
);
BookAdviserDto
adviserDto
=
bookAdviserDao
.
getBase
(
bookId
,
channelId
,
adviserId
);
if
(
null
!=
adviserDto
){
if
(
null
!=
adviserDto
){
RightsSettingDto
rightsSettingDto
=
rightsSettingBiz
.
getByLabel
(
adviserDto
.
getTempletId
(),
RightsSettingDto
rightsSettingDto
=
rightsSettingBiz
.
getByLabel
(
adviserDto
.
getTempletId
(),
adviserDto
.
getSecondTempletId
(),
adviserDto
.
getGraLabelId
(),
adviserDto
.
getSubLabelId
(),
adviserDto
.
getVolLabelId
(),
adviserDto
.
getVerLabelId
());
adviserDto
.
getSecondTempletId
(),
adviserDto
.
getGraLabelId
(),
adviserDto
.
getSubLabelId
(),
adviserDto
.
getVolLabelId
(),
adviserDto
.
getVerLabelId
()
,
adviserDto
.
getThirdTempletId
()
);
if
(
null
!=
rightsSettingDto
){
if
(
null
!=
rightsSettingDto
){
bookRightsSettingDTO
.
setRightsSettingDetail
(
rightsSettingDto
.
getDetail
());
bookRightsSettingDTO
.
setRightsSettingDetail
(
rightsSettingDto
.
getDetail
());
bookRightsSettingDTO
.
setRightsSettingIntroduce
(
rightsSettingDto
.
getIntroduce
());
bookRightsSettingDTO
.
setRightsSettingIntroduce
(
rightsSettingDto
.
getIntroduce
());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
47ee3261
...
@@ -343,6 +343,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -343,6 +343,7 @@ public class BookBizImpl implements BookBiz {
bookDto
.
setBookId
(
book
.
getBookId
());
bookDto
.
setBookId
(
book
.
getBookId
());
bookDto
.
setTempletId
(
book
.
getTempletId
());
bookDto
.
setTempletId
(
book
.
getTempletId
());
bookDto
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookDto
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookDto
.
setThirdTempletId
(
book
.
getThirdTempletId
());
// 如果是编辑创建的书籍、默认建立编辑与书籍的推广关系
// 如果是编辑创建的书籍、默认建立编辑与书籍的推广关系
if
(
SystemCode
.
adviser
.
code
.
equalsIgnoreCase
(
systemCode
))
{
if
(
SystemCode
.
adviser
.
code
.
equalsIgnoreCase
(
systemCode
))
{
setBookAdviserRelation
(
book
);
setBookAdviserRelation
(
book
);
...
@@ -484,6 +485,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -484,6 +485,7 @@ public class BookBizImpl implements BookBiz {
bookDto
.
setBookId
(
book
.
getBookId
());
bookDto
.
setBookId
(
book
.
getBookId
());
bookDto
.
setTempletId
(
book
.
getTempletId
());
bookDto
.
setTempletId
(
book
.
getTempletId
());
bookDto
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookDto
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookDto
.
setThirdTempletId
(
book
.
getThirdTempletId
());
// 清除redis中数据
// 清除redis中数据
bookCache
.
clearRedisByBook
(
book
.
getBookId
(),
book
.
getIsbn
(),
book
.
getSerialNumber
());
bookCache
.
clearRedisByBook
(
book
.
getBookId
(),
book
.
getIsbn
(),
book
.
getSerialNumber
());
checkIsUpdateCoverImgAndSendTopic
(
bookDto
,
book
.
getCoverImg
());
checkIsUpdateCoverImgAndSendTopic
(
bookDto
,
book
.
getCoverImg
());
...
@@ -1213,6 +1215,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -1213,6 +1215,7 @@ public class BookBizImpl implements BookBiz {
bookAdviser
.
setSerialNumber
(
book
.
getSerialNumber
());
// 设置刊物序号
bookAdviser
.
setSerialNumber
(
book
.
getSerialNumber
());
// 设置刊物序号
bookAdviser
.
setTempletId
(
book
.
getTempletId
());
bookAdviser
.
setTempletId
(
book
.
getTempletId
());
bookAdviser
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookAdviser
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookAdviser
.
setThirdTempletId
(
book
.
getThirdTempletId
());
bookAdviserBiz
.
create
(
bookAdviser
);
bookAdviserBiz
.
create
(
bookAdviser
);
}
}
...
@@ -1778,6 +1781,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -1778,6 +1781,7 @@ public class BookBizImpl implements BookBiz {
bookAdviser
.
setCreatedUser
(
book
.
getCreatedUser
());
bookAdviser
.
setCreatedUser
(
book
.
getCreatedUser
());
bookAdviser
.
setTempletId
(
book
.
getTempletId
());
bookAdviser
.
setTempletId
(
book
.
getTempletId
());
bookAdviser
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookAdviser
.
setSecondTempletId
(
book
.
getSecondTempletId
());
bookAdviser
.
setThirdTempletId
(
book
.
getThirdTempletId
());
bookAdviser
.
setSubLabelId
(
book
.
getSubLabelId
());
bookAdviser
.
setSubLabelId
(
book
.
getSubLabelId
());
bookAdviser
.
setGraLabelId
(
book
.
getGraLabelId
());
bookAdviser
.
setGraLabelId
(
book
.
getGraLabelId
());
bookAdviser
.
setAreaLabelId
(
book
.
getAreaLabelId
());
bookAdviser
.
setAreaLabelId
(
book
.
getAreaLabelId
());
...
@@ -1950,6 +1954,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -1950,6 +1954,7 @@ public class BookBizImpl implements BookBiz {
paramMap
.
put
(
"typeCode"
,
listNoAuthBookParam
.
getTypeCode
()
!=
null
&&
""
.
equals
(
listNoAuthBookParam
.
getTypeCode
().
trim
())
?
null
:
listNoAuthBookParam
.
getTypeCode
());
paramMap
.
put
(
"typeCode"
,
listNoAuthBookParam
.
getTypeCode
()
!=
null
&&
""
.
equals
(
listNoAuthBookParam
.
getTypeCode
().
trim
())
?
null
:
listNoAuthBookParam
.
getTypeCode
());
paramMap
.
put
(
"templetId"
,
listNoAuthBookParam
.
getTempletId
());
paramMap
.
put
(
"templetId"
,
listNoAuthBookParam
.
getTempletId
());
paramMap
.
put
(
"secondTempletIds"
,
Optional
.
ofNullable
(
listNoAuthBookParam
.
getSecondTempletId
()).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
paramMap
.
put
(
"secondTempletIds"
,
Optional
.
ofNullable
(
listNoAuthBookParam
.
getSecondTempletId
()).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
paramMap
.
put
(
"thirdTempletIds"
,
Optional
.
ofNullable
(
listNoAuthBookParam
.
getThirdTempletId
()).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
PageParam
pageParam
=
new
PageParam
(
listNoAuthBookParam
.
getCurrentPage
(),
listNoAuthBookParam
.
getNumPerPage
());
PageParam
pageParam
=
new
PageParam
(
listNoAuthBookParam
.
getCurrentPage
(),
listNoAuthBookParam
.
getNumPerPage
());
PageBeanNew
pageBean
=
bookDao
.
listPageNew
(
pageParam
,
paramMap
,
"listNoAuthBook"
);
PageBeanNew
pageBean
=
bookDao
.
listPageNew
(
pageParam
,
paramMap
,
"listNoAuthBook"
);
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
...
@@ -2255,7 +2260,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -2255,7 +2260,7 @@ public class BookBizImpl implements BookBiz {
@ParamLog
(
"平台端获取编辑书刊"
)
@ParamLog
(
"平台端获取编辑书刊"
)
@Override
@Override
public
PageBeanNew
<
BookDto
>
getAdviserBooks4Pcloud
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
)
{
public
PageBeanNew
<
BookDto
>
getAdviserBooks4Pcloud
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
Long
thirdTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
)
{
String
redisKey
=
BookConstant
.
ADVISER_BOOK_CACHE
+
"_"
+
keyword
+
"_"
+
agentId
+
"_"
+
templetId
String
redisKey
=
BookConstant
.
ADVISER_BOOK_CACHE
+
"_"
+
keyword
+
"_"
+
agentId
+
"_"
+
templetId
+
"_"
+
secondTempletId
+
"_"
+
typeCode
+
"_"
+
currentPage
+
"_"
+
numPerPage
;
+
"_"
+
secondTempletId
+
"_"
+
typeCode
+
"_"
+
currentPage
+
"_"
+
numPerPage
;
String
data
=
JedisClusterUtils
.
get
(
redisKey
);
String
data
=
JedisClusterUtils
.
get
(
redisKey
);
...
@@ -2270,6 +2275,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -2270,6 +2275,7 @@ public class BookBizImpl implements BookBiz {
map
.
put
(
"keyword"
,
keyword
);
map
.
put
(
"keyword"
,
keyword
);
map
.
put
(
"templetId"
,
templetId
);
map
.
put
(
"templetId"
,
templetId
);
map
.
put
(
"secondTempletId"
,
secondTempletId
);
map
.
put
(
"secondTempletId"
,
secondTempletId
);
map
.
put
(
"thirdTempletId"
,
thirdTempletId
);
map
.
put
(
"typeCode"
,
typeCode
);
map
.
put
(
"typeCode"
,
typeCode
);
if
(
agentId
!=
null
){
if
(
agentId
!=
null
){
List
<
Long
>
adviserIds
=
adviserConsr
.
getIdsByNameAndAgentId
(
agentId
,
null
);
List
<
Long
>
adviserIds
=
adviserConsr
.
getIdsByNameAndAgentId
(
agentId
,
null
);
...
@@ -2295,9 +2301,9 @@ public class BookBizImpl implements BookBiz {
...
@@ -2295,9 +2301,9 @@ public class BookBizImpl implements BookBiz {
@ParamLog
(
"获取编辑书刊H5"
)
@ParamLog
(
"获取编辑书刊H5"
)
@Override
@Override
public
PageBeanNew
<
BookDto
>
getAdviserBooks4H5
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
public
PageBeanNew
<
BookDto
>
getAdviserBooks4H5
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Integer
currentPage
,
Integer
numPerPage
)
{
Long
thirdTempletId
,
Integer
currentPage
,
Integer
numPerPage
)
{
Page
<
ESBookAndAdviser
>
esPage
=
esBookAndAdviserBiz
.
getAdviserBooks4ES
(
StringUtils
.
isEmpty
(
grayStatus
)
?
"0"
:
grayStatus
,
keyword
Page
<
ESBookAndAdviser
>
esPage
=
esBookAndAdviserBiz
.
getAdviserBooks4ES
(
StringUtils
.
isEmpty
(
grayStatus
)
?
"0"
:
grayStatus
,
keyword
,
templetId
,
secondTempletId
,
currentPage
,
numPerPage
);
,
templetId
,
secondTempletId
,
thirdTempletId
,
currentPage
,
numPerPage
);
List
<
ESBookAndAdviser
>
esBookAndAdvisers
=
esPage
.
getContent
();
List
<
ESBookAndAdviser
>
esBookAndAdvisers
=
esPage
.
getContent
();
if
(
ListUtils
.
isEmpty
(
esBookAndAdvisers
)){
if
(
ListUtils
.
isEmpty
(
esBookAndAdvisers
)){
return
new
PageBeanNew
<>();
return
new
PageBeanNew
<>();
...
@@ -2438,9 +2444,17 @@ public class BookBizImpl implements BookBiz {
...
@@ -2438,9 +2444,17 @@ public class BookBizImpl implements BookBiz {
if
(
bookDto
.
getSecondTempletId
()!=
null
)
{
if
(
bookDto
.
getSecondTempletId
()!=
null
)
{
templetIds
.
add
(
bookDto
.
getSecondTempletId
());
templetIds
.
add
(
bookDto
.
getSecondTempletId
());
}
}
if
(
bookDto
.
getThirdTempletId
()!=
null
)
{
templetIds
.
add
(
bookDto
.
getThirdTempletId
());
}
Map
<
Long
,
AssistTempletDTO
>
assistTempletDTOMap
=
assistTempletConsr
.
mapByIds
(
templetIds
);
Map
<
Long
,
AssistTempletDTO
>
assistTempletDTOMap
=
assistTempletConsr
.
mapByIds
(
templetIds
);
Long
thirdTempletId
=
bookDto
.
getThirdTempletId
();
Long
secondTempletId
=
bookDto
.
getSecondTempletId
();
Long
secondTempletId
=
bookDto
.
getSecondTempletId
();
Long
templetId
=
bookDto
.
getTempletId
();
Long
templetId
=
bookDto
.
getTempletId
();
if
(
thirdTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
thirdTempletId
);
bookDto
.
setThirdTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
secondTempletId
);
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
secondTempletId
);
bookDto
.
setSecondTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
bookDto
.
setSecondTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
...
@@ -2468,9 +2482,13 @@ public class BookBizImpl implements BookBiz {
...
@@ -2468,9 +2482,13 @@ public class BookBizImpl implements BookBiz {
if
(
Objects
.
nonNull
(
BookDto
.
getSecondTempletId
()))
{
if
(
Objects
.
nonNull
(
BookDto
.
getSecondTempletId
()))
{
templetIds
.
add
(
BookDto
.
getSecondTempletId
());
templetIds
.
add
(
BookDto
.
getSecondTempletId
());
}
}
if
(
Objects
.
nonNull
(
BookDto
.
getThirdTempletId
()))
{
templetIds
.
add
(
BookDto
.
getThirdTempletId
());
}
});
});
Map
<
Long
,
AssistTempletDTO
>
assistTempletDTOMap
=
assistTempletConsr
.
mapByIds4Classify
(
templetIds
);
Map
<
Long
,
AssistTempletDTO
>
assistTempletDTOMap
=
assistTempletConsr
.
mapByIds4Classify
(
templetIds
);
list
.
forEach
(
bookDto
->
{
list
.
forEach
(
bookDto
->
{
Long
thirdTempletId
=
bookDto
.
getThirdTempletId
();
Long
secondTempletId
=
bookDto
.
getSecondTempletId
();
Long
secondTempletId
=
bookDto
.
getSecondTempletId
();
Long
templetId
=
bookDto
.
getTempletId
();
Long
templetId
=
bookDto
.
getTempletId
();
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
if
(
secondTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
...
@@ -2481,6 +2499,10 @@ public class BookBizImpl implements BookBiz {
...
@@ -2481,6 +2499,10 @@ public class BookBizImpl implements BookBiz {
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
templetId
);
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
templetId
);
bookDto
.
setTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
bookDto
.
setTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
}
if
(
thirdTempletId
!=
null
&&
assistTempletDTOMap
!=
null
)
{
AssistTempletDTO
templetDTO
=
assistTempletDTOMap
.
get
(
thirdTempletId
);
bookDto
.
setThirdTempletName
(
Optional
.
ofNullable
(
templetDTO
).
map
(
AssistTempletDTO:
:
getTempletName
).
orElse
(
null
));
}
Long
adviserId
=
bookDto
.
getAdviserId
();
Long
adviserId
=
bookDto
.
getAdviserId
();
if
(
infoDtoMap
!=
null
){
if
(
infoDtoMap
!=
null
){
AdviserBaseInfoDto
infoDto
=
infoDtoMap
.
get
(
adviserId
);
AdviserBaseInfoDto
infoDto
=
infoDtoMap
.
get
(
adviserId
);
...
@@ -2568,11 +2590,12 @@ public class BookBizImpl implements BookBiz {
...
@@ -2568,11 +2590,12 @@ public class BookBizImpl implements BookBiz {
@Override
@Override
public
PageBeanNew
<
BookDto
>
getAdviserBooks4Rights
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
String
typeCode
,
public
PageBeanNew
<
BookDto
>
getAdviserBooks4Rights
(
String
keyword
,
Long
agentId
,
Long
templetId
,
Long
secondTempletId
,
String
typeCode
,
Integer
currentPage
,
Integer
numPerPage
,
Integer
isIgnore
)
{
Integer
currentPage
,
Integer
numPerPage
,
Integer
isIgnore
,
Long
thirdTempletId
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"keyword"
,
keyword
);
map
.
put
(
"keyword"
,
keyword
);
map
.
put
(
"templetId"
,
templetId
);
map
.
put
(
"templetId"
,
templetId
);
map
.
put
(
"secondTempletId"
,
secondTempletId
);
map
.
put
(
"secondTempletId"
,
secondTempletId
);
map
.
put
(
"thirdTempletId"
,
thirdTempletId
);
map
.
put
(
"typeCode"
,
typeCode
);
map
.
put
(
"typeCode"
,
typeCode
);
if
(
agentId
!=
null
){
if
(
agentId
!=
null
){
List
<
Long
>
adviserIds
=
adviserConsr
.
getIdsByNameAndAgentId
(
agentId
,
null
);
List
<
Long
>
adviserIds
=
adviserConsr
.
getIdsByNameAndAgentId
(
agentId
,
null
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/dao/BookAdviserDao.java
View file @
47ee3261
...
@@ -15,7 +15,9 @@ import com.pcloud.book.book.dto.ErpBookInfoDTO;
...
@@ -15,7 +15,9 @@ import com.pcloud.book.book.dto.ErpBookInfoDTO;
import
com.pcloud.book.book.entity.BookAdviser
;
import
com.pcloud.book.book.entity.BookAdviser
;
import
com.pcloud.book.book.vo.AgentBookStatsDetailVO
;
import
com.pcloud.book.book.vo.AgentBookStatsDetailVO
;
import
com.pcloud.book.book.vo.ErpAdviserBookVO
;
import
com.pcloud.book.book.vo.ErpAdviserBookVO
;
import
com.pcloud.book.es.entity.ESBookAndAdviser
;
import
com.pcloud.common.core.dao.BaseDao
;
import
com.pcloud.common.core.dao.BaseDao
;
import
org.apache.ibatis.session.ResultHandler
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -303,4 +305,6 @@ public interface BookAdviserDao extends BaseDao<BookAdviser> {
...
@@ -303,4 +305,6 @@ public interface BookAdviserDao extends BaseDao<BookAdviser> {
List
<
AgentBookStatsDetailVO
>
getAgentBookStatsDetail
(
List
<
ErpBookInfoDTO
>
raysBookIds
,
Integer
isRay
,
String
name
,
List
<
Long
>
advisers
);
List
<
AgentBookStatsDetailVO
>
getAgentBookStatsDetail
(
List
<
ErpBookInfoDTO
>
raysBookIds
,
Integer
isRay
,
String
name
,
List
<
Long
>
advisers
);
void
updateBookTempletAndLabel
(
BookAdviser
bookAdviser
);
void
updateBookTempletAndLabel
(
BookAdviser
bookAdviser
);
void
syncTempletId4ES
(
ResultHandler
<
ESBookAndAdviser
>
resultHandler
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/dao/impl/BookAdviserDaoImpl.java
View file @
47ee3261
...
@@ -20,7 +20,9 @@ import com.pcloud.book.book.dto.ErpBookInfoDTO;
...
@@ -20,7 +20,9 @@ import com.pcloud.book.book.dto.ErpBookInfoDTO;
import
com.pcloud.book.book.entity.BookAdviser
;
import
com.pcloud.book.book.entity.BookAdviser
;
import
com.pcloud.book.book.vo.AgentBookStatsDetailVO
;
import
com.pcloud.book.book.vo.AgentBookStatsDetailVO
;
import
com.pcloud.book.book.vo.ErpAdviserBookVO
;
import
com.pcloud.book.book.vo.ErpAdviserBookVO
;
import
com.pcloud.book.es.entity.ESBookAndAdviser
;
import
com.pcloud.common.core.dao.BaseDaoImpl
;
import
com.pcloud.common.core.dao.BaseDaoImpl
;
import
org.apache.ibatis.session.ResultHandler
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -362,4 +364,9 @@ public class BookAdviserDaoImpl extends BaseDaoImpl<BookAdviser> implements Book
...
@@ -362,4 +364,9 @@ public class BookAdviserDaoImpl extends BaseDaoImpl<BookAdviser> implements Book
super
.
getSqlSession
().
update
(
this
.
getStatement
(
"updateBookTempletAndLabel"
),
bookAdviser
);
super
.
getSqlSession
().
update
(
this
.
getStatement
(
"updateBookTempletAndLabel"
),
bookAdviser
);
}
}
@Override
public
void
syncTempletId4ES
(
ResultHandler
<
ESBookAndAdviser
>
resultHandler
)
{
super
.
getSqlSession
().
select
(
getStatement
(
"syncTempletId4ES"
),
resultHandler
);
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/BookFacade.java
View file @
47ee3261
...
@@ -174,6 +174,7 @@ public interface BookFacade {
...
@@ -174,6 +174,7 @@ public interface BookFacade {
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"bookStatus"
,
required
=
false
)
Integer
bookStatus
,
@RequestParam
(
value
=
"bookStatus"
,
required
=
false
)
Integer
bookStatus
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"hasQrcode"
,
required
=
false
)
Integer
hasQrcode
,
@RequestParam
(
value
=
"hasQrcode"
,
required
=
false
)
Integer
hasQrcode
,
@RequestParam
(
value
=
"isPrint"
,
required
=
false
)
Boolean
isPrint
,
@RequestParam
(
value
=
"isPrint"
,
required
=
false
)
Boolean
isPrint
,
@RequestParam
(
value
=
"minimumSupport"
,
required
=
false
)
Integer
minimumSupport
)
@RequestParam
(
value
=
"minimumSupport"
,
required
=
false
)
Integer
minimumSupport
)
...
@@ -399,7 +400,8 @@ public interface BookFacade {
...
@@ -399,7 +400,8 @@ public interface BookFacade {
@RequestParam
(
value
=
"isbn"
,
required
=
false
)
String
isbn
,
@RequestParam
(
value
=
"isbn"
,
required
=
false
)
String
isbn
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"isPrint"
,
required
=
false
)
Boolean
isPrint
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"isPrint"
,
required
=
false
)
Boolean
isPrint
,
@RequestParam
(
value
=
"minimumSupport"
,
required
=
false
)
Integer
minimumSupport
)
@RequestParam
(
value
=
"minimumSupport"
,
required
=
false
)
Integer
minimumSupport
)
throws
BizException
,
PermissionException
,
JsonParseException
;
throws
BizException
,
PermissionException
,
JsonParseException
;
...
@@ -508,6 +510,7 @@ public interface BookFacade {
...
@@ -508,6 +510,7 @@ public interface BookFacade {
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"isPrint"
,
required
=
false
)
Boolean
isPrint
)
@RequestParam
(
value
=
"isPrint"
,
required
=
false
)
Boolean
isPrint
)
throws
BizException
,
PermissionException
,
JsonParseException
;
throws
BizException
,
PermissionException
,
JsonParseException
;
...
@@ -525,7 +528,8 @@ public interface BookFacade {
...
@@ -525,7 +528,8 @@ public interface BookFacade {
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
,
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
,
@RequestParam
(
value
=
"bookName"
,
required
=
false
)
String
bookName
,
@RequestParam
(
value
=
"bookName"
,
required
=
false
)
String
bookName
,
@RequestParam
(
value
=
"publish"
,
required
=
false
)
String
publish
,
@RequestParam
(
value
=
"publish"
,
required
=
false
)
String
publish
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
)
throws
BizException
,
PermissionException
,
JsonParseException
;
)
throws
BizException
,
PermissionException
,
JsonParseException
;
@ApiOperation
(
value
=
"导出平台下所有书刊excel表(平台端)"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"导出平台下所有书刊excel表(平台端)"
,
httpMethod
=
"GET"
)
...
@@ -657,6 +661,7 @@ public interface BookFacade {
...
@@ -657,6 +661,7 @@ public interface BookFacade {
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"minimumSupport"
,
required
=
false
)
Integer
minimumSupport
)
@RequestParam
(
value
=
"minimumSupport"
,
required
=
false
)
Integer
minimumSupport
)
throws
BizException
,
PermissionException
,
JsonParseException
;
throws
BizException
,
PermissionException
,
JsonParseException
;
...
@@ -676,7 +681,8 @@ public interface BookFacade {
...
@@ -676,7 +681,8 @@ public interface BookFacade {
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
)
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
)
throws
PermissionException
,
BizException
;
throws
PermissionException
,
BizException
;
@ApiOperation
(
"编辑端 获取1v1社群书书刊列表"
)
@ApiOperation
(
"编辑端 获取1v1社群书书刊列表"
)
...
@@ -701,6 +707,7 @@ public interface BookFacade {
...
@@ -701,6 +707,7 @@ public interface BookFacade {
@RequestParam
(
value
=
"agentId"
,
required
=
false
)
Long
agentId
,
@RequestParam
(
value
=
"agentId"
,
required
=
false
)
Long
agentId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
...
@@ -713,6 +720,7 @@ public interface BookFacade {
...
@@ -713,6 +720,7 @@ public interface BookFacade {
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
)
throws
BizException
,
PermissionException
;
)
throws
BizException
,
PermissionException
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookAdviserFacadeImpl.java
View file @
47ee3261
...
@@ -173,7 +173,7 @@ public class BookAdviserFacadeImpl implements BookAdviserFacade {
...
@@ -173,7 +173,7 @@ public class BookAdviserFacadeImpl implements BookAdviserFacade {
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
)
@RequestParam
(
value
=
"channelId"
,
required
=
false
)
Long
channelId
)
throws
BizException
,
PermissionException
,
JsonParseException
{
throws
BizException
,
PermissionException
,
JsonParseException
{
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
bookAdviserBiz
.
recoverBook4Adviser
(
bookId
,
adviserId
,
channelId
,
null
,
null
,
null
,
null
,
null
,
null
,
true
);
bookAdviserBiz
.
recoverBook4Adviser
(
bookId
,
adviserId
,
channelId
,
null
,
null
,
null
,
null
,
null
,
null
,
true
,
null
);
return
new
ResponseDto
<>();
return
new
ResponseDto
<>();
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
View file @
47ee3261
This diff is collapsed.
Click to expand it.
pcloud-service-book/src/main/java/com/pcloud/book/book/set/BookSet.java
View file @
47ee3261
...
@@ -1882,6 +1882,9 @@ public class BookSet {
...
@@ -1882,6 +1882,9 @@ public class BookSet {
if
(
null
!=
bookDto
.
getSecondTempletId
()
&&
!
classifyIds
.
contains
(
bookDto
.
getSecondTempletId
()))
{
if
(
null
!=
bookDto
.
getSecondTempletId
()
&&
!
classifyIds
.
contains
(
bookDto
.
getSecondTempletId
()))
{
classifyIds
.
add
(
bookDto
.
getSecondTempletId
());
classifyIds
.
add
(
bookDto
.
getSecondTempletId
());
}
}
if
(
null
!=
bookDto
.
getThirdTempletId
()
&&
!
classifyIds
.
contains
(
bookDto
.
getThirdTempletId
()))
{
classifyIds
.
add
(
bookDto
.
getThirdTempletId
());
}
}
}
Map
<
Long
,
AssistTempletDTO
>
classifyMap
=
new
HashMap
<>();
Map
<
Long
,
AssistTempletDTO
>
classifyMap
=
new
HashMap
<>();
if
(!
ListUtils
.
isEmpty
(
classifyIds
)){
if
(!
ListUtils
.
isEmpty
(
classifyIds
)){
...
@@ -1895,6 +1898,9 @@ public class BookSet {
...
@@ -1895,6 +1898,9 @@ public class BookSet {
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
bookDto
.
getSecondTempletId
())){
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
bookDto
.
getSecondTempletId
())){
bookDto
.
setSecondTempletName
(
classifyMap
.
get
(
bookDto
.
getSecondTempletId
()).
getTempletName
());
bookDto
.
setSecondTempletName
(
classifyMap
.
get
(
bookDto
.
getSecondTempletId
()).
getTempletName
());
}
}
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
bookDto
.
getThirdTempletId
())){
bookDto
.
setThirdTempletName
(
classifyMap
.
get
(
bookDto
.
getThirdTempletId
()).
getTempletName
());
}
}
}
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/vo/ListNoAuthBookParam.java
View file @
47ee3261
...
@@ -26,6 +26,9 @@ public class ListNoAuthBookParam implements Serializable {
...
@@ -26,6 +26,9 @@ public class ListNoAuthBookParam implements Serializable {
@ApiModelProperty
(
"图书类型标识"
)
@ApiModelProperty
(
"图书类型标识"
)
private
Long
secondTempletId
;
private
Long
secondTempletId
;
@ApiModelProperty
(
"图书类型标识"
)
private
Long
thirdTempletId
;
@ApiModelProperty
(
"当前页"
)
@ApiModelProperty
(
"当前页"
)
private
Integer
currentPage
;
private
Integer
currentPage
;
...
@@ -41,6 +44,14 @@ public class ListNoAuthBookParam implements Serializable {
...
@@ -41,6 +44,14 @@ public class ListNoAuthBookParam implements Serializable {
@ApiModelProperty
(
"类型"
)
@ApiModelProperty
(
"类型"
)
private
String
typeCode
;
private
String
typeCode
;
public
Long
getThirdTempletId
()
{
return
thirdTempletId
;
}
public
void
setThirdTempletId
(
Long
thirdTempletId
)
{
this
.
thirdTempletId
=
thirdTempletId
;
}
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/vo/ListNoAuthGroupBookParam.java
View file @
47ee3261
...
@@ -27,6 +27,9 @@ public class ListNoAuthGroupBookParam implements Serializable {
...
@@ -27,6 +27,9 @@ public class ListNoAuthGroupBookParam implements Serializable {
@ApiModelProperty
(
"图书类型标识"
)
@ApiModelProperty
(
"图书类型标识"
)
private
Long
secondTempletId
;
private
Long
secondTempletId
;
@ApiModelProperty
(
"图书类型标识"
)
private
Long
thirdTempletId
;
@ApiModelProperty
(
"当前页"
)
@ApiModelProperty
(
"当前页"
)
private
Integer
currentPage
;
private
Integer
currentPage
;
...
@@ -36,6 +39,14 @@ public class ListNoAuthGroupBookParam implements Serializable {
...
@@ -36,6 +39,14 @@ public class ListNoAuthGroupBookParam implements Serializable {
@ApiModelProperty
(
"类型"
)
@ApiModelProperty
(
"类型"
)
private
String
typeCode
;
private
String
typeCode
;
public
Long
getThirdTempletId
()
{
return
thirdTempletId
;
}
public
void
setThirdTempletId
(
Long
thirdTempletId
)
{
this
.
thirdTempletId
=
thirdTempletId
;
}
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/vo/SearchBookVO.java
View file @
47ee3261
...
@@ -50,6 +50,15 @@ public class SearchBookVO {
...
@@ -50,6 +50,15 @@ public class SearchBookVO {
private
String
secondTempletName
;
private
String
secondTempletName
;
/**
* 三级分类id
*/
private
Long
thirdTempletId
;
/**
* 三级分类名称
*/
private
String
thirdTempletName
;
private
String
coverImg
;
private
String
coverImg
;
@ApiModelProperty
(
"是否展示质检信息0 否 1是"
)
@ApiModelProperty
(
"是否展示质检信息0 否 1是"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/es/biz/ESBookAndAdviserBiz.java
View file @
47ee3261
...
@@ -3,7 +3,6 @@ package com.pcloud.book.es.biz;
...
@@ -3,7 +3,6 @@ package com.pcloud.book.es.biz;
import
com.pcloud.book.es.entity.ESBookAndAdviser
;
import
com.pcloud.book.es.entity.ESBookAndAdviser
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -17,7 +16,7 @@ public interface ESBookAndAdviserBiz {
...
@@ -17,7 +16,7 @@ public interface ESBookAndAdviserBiz {
void
updateBookAndAdviserToES
(
List
<
Long
>
bookIds
);
void
updateBookAndAdviserToES
(
List
<
Long
>
bookIds
);
Page
<
ESBookAndAdviser
>
getAdviserBooks4ES
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Integer
currentPage
,
Integer
numPerPage
);
Page
<
ESBookAndAdviser
>
getAdviserBooks4ES
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Long
thirdTempletId
,
Integer
currentPage
,
Integer
numPerPage
);
Page
<
ESBookAndAdviser
>
getESAdviserBooks4Applet
(
String
grayStatus
,
String
keyword
,
List
<
Long
>
templetIds
,
List
<
Long
>
graLabelIds
,
List
<
Long
>
subLabelIds
,
Integer
currentPage
,
Integer
numPerPage
,
List
<
Long
>
scecondTempletIds
,
Integer
isAdviserBook
,
List
<
Long
>
adviserIds
,
Long
agentId
);
Page
<
ESBookAndAdviser
>
getESAdviserBooks4Applet
(
String
grayStatus
,
String
keyword
,
List
<
Long
>
templetIds
,
List
<
Long
>
graLabelIds
,
List
<
Long
>
subLabelIds
,
Integer
currentPage
,
Integer
numPerPage
,
List
<
Long
>
scecondTempletIds
,
Integer
isAdviserBook
,
List
<
Long
>
adviserIds
,
Long
agentId
);
...
@@ -44,4 +43,6 @@ public interface ESBookAndAdviserBiz {
...
@@ -44,4 +43,6 @@ public interface ESBookAndAdviserBiz {
Map
<
String
,
Object
>
getNotFoundBookId
(
String
lastBookId
)
throws
Exception
;
Map
<
String
,
Object
>
getNotFoundBookId
(
String
lastBookId
)
throws
Exception
;
void
stopNotFoundBookId
();
void
stopNotFoundBookId
();
void
updateTempletId
();
}
}
pcloud-service-book/src/main/java/com/pcloud/book/es/biz/impl/ESBookAndAdviserBizImpl.java
View file @
47ee3261
package
com
.
pcloud
.
book
.
es
.
biz
.
impl
;
package
com
.
pcloud
.
book
.
es
.
biz
.
impl
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.map.MapUtil
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.pcloud.analysisengine.browse.dto.BrowseCacheRecordDto
;
import
com.pcloud.analysisengine.browse.dto.BrowseCacheRecordDto
;
import
com.pcloud.book.applet.biz.AppletUserBookcaseBiz
;
import
com.pcloud.book.applet.biz.AppletUserBookcaseBiz
;
import
com.pcloud.book.book.biz.BookBiz
;
import
com.pcloud.book.book.biz.BookBiz
;
import
com.pcloud.book.book.constant.BookConstant
;
import
com.pcloud.book.book.constant.BookConstant
;
import
com.pcloud.book.book.dao.BookAdviserDao
;
import
com.pcloud.book.book.dao.BookDao
;
import
com.pcloud.book.book.dao.BookDao
;
import
com.pcloud.book.book.dto.ErpBookApprovalDTO
;
import
com.pcloud.book.book.dto.ErpBookApprovalDTO
;
import
com.pcloud.book.consumer.analysisengine.BrowseRecordConsr
;
import
com.pcloud.book.consumer.analysisengine.BrowseRecordConsr
;
...
@@ -29,6 +31,7 @@ import com.pcloud.common.enums.AppTypeEnum;
...
@@ -29,6 +31,7 @@ import com.pcloud.common.enums.AppTypeEnum;
import
com.pcloud.common.exceptions.BizException
;
import
com.pcloud.common.exceptions.BizException
;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.ListUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.cache.redis.JedisClusterUtils
;
import
com.pcloud.common.utils.robot.WeWorkWebHookRobotUtils
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.facade.tradecenter.dto.BookIncomeQueryVo
;
import
com.pcloud.facade.tradecenter.dto.BookIncomeQueryVo
;
import
com.pcloud.facade.tradecenter.dto.IncomeBackDto
;
import
com.pcloud.facade.tradecenter.dto.IncomeBackDto
;
...
@@ -51,7 +54,6 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -51,7 +54,6 @@ import org.springframework.transaction.annotation.Transactional;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.Iterator
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.List
;
...
@@ -94,6 +96,8 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
...
@@ -94,6 +96,8 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
private
RightsSettingBiz
rightsSettingBiz
;
private
RightsSettingBiz
rightsSettingBiz
;
@Autowired
@Autowired
private
BookBiz
bookBiz
;
private
BookBiz
bookBiz
;
@Autowired
private
BookAdviserDao
bookAdviserDao
;
@ParamLog
(
"导入全部book和bookAdviser"
)
@ParamLog
(
"导入全部book和bookAdviser"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
@@ -264,11 +268,12 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
...
@@ -264,11 +268,12 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
}
}
@Override
@Override
public
Page
<
ESBookAndAdviser
>
getAdviserBooks4ES
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Integer
currentPage
,
Integer
numPerPage
)
{
public
Page
<
ESBookAndAdviser
>
getAdviserBooks4ES
(
String
grayStatus
,
String
keyword
,
Long
templetId
,
Long
secondTempletId
,
Long
thirdTempletId
,
Integer
currentPage
,
Integer
numPerPage
)
{
BoolQueryBuilder
boolQueryBuilder
=
QueryBuilders
.
boolQuery
()
BoolQueryBuilder
boolQueryBuilder
=
QueryBuilders
.
boolQuery
()
.
filter
(
QueryBuilders
.
termQuery
(
"isBookDelete"
,
0
))
.
filter
(
QueryBuilders
.
termQuery
(
"isBookDelete"
,
0
))
.
filter
(
Objects
.
isNull
(
templetId
)
?
QueryBuilders
.
boolQuery
()
:
QueryBuilders
.
termQuery
(
"templetId"
,
templetId
))
.
filter
(
Objects
.
isNull
(
templetId
)
?
QueryBuilders
.
boolQuery
()
:
QueryBuilders
.
termQuery
(
"templetId"
,
templetId
))
.
filter
(
Objects
.
isNull
(
secondTempletId
)
?
QueryBuilders
.
boolQuery
()
:
QueryBuilders
.
termQuery
(
"secondTempletId"
,
secondTempletId
));
.
filter
(
Objects
.
isNull
(
secondTempletId
)
?
QueryBuilders
.
boolQuery
()
:
QueryBuilders
.
termQuery
(
"secondTempletId"
,
secondTempletId
))
.
filter
(
Objects
.
isNull
(
thirdTempletId
)
?
QueryBuilders
.
boolQuery
()
:
QueryBuilders
.
termQuery
(
"thirdTempletId"
,
thirdTempletId
));
BoolQueryBuilder
should1
=
QueryBuilders
.
boolQuery
()
BoolQueryBuilder
should1
=
QueryBuilders
.
boolQuery
()
.
should
(
QueryBuilders
.
termQuery
(
"isBookAdviserDelete"
,
0
))
.
should
(
QueryBuilders
.
termQuery
(
"isBookAdviserDelete"
,
0
))
...
@@ -550,4 +555,52 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
...
@@ -550,4 +555,52 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
public
void
stopNotFoundBookId
()
{
public
void
stopNotFoundBookId
()
{
JedisClusterUtils
.
set
(
NOT_FOUND_BOOK_ID_STATUS_SELECT_KEY
,
"stop"
,
3600
);
JedisClusterUtils
.
set
(
NOT_FOUND_BOOK_ID_STATUS_SELECT_KEY
,
"stop"
,
3600
);
}
}
@Override
public
void
updateTempletId
()
{
try
{
WeWorkWebHookRobotUtils
.
sendTextMsg
(
"e99da8d0-62b9-4352-a196-d1f20b01960f"
,
"开始同步BookAdviser分类信息"
,
null
,
CollUtil
.
toList
(
"13035118598"
));
final
List
<
ESBookAndAdviser
>
bookList
=
new
ArrayList
<>();
bookAdviserDao
.
syncTempletId4ES
(
resultContext
->
{
ESBookAndAdviser
esBookAndAdviser
=
resultContext
.
getResultObject
();
bookList
.
add
(
esBookAndAdviser
);
if
(
bookList
.
size
()
==
1000
)
{
saveToES
(
bookList
,
resultContext
.
getResultCount
());
bookList
.
clear
();
}
});
saveToES
(
bookList
,
bookList
.
size
());
}
catch
(
Exception
e
)
{
WeWorkWebHookRobotUtils
.
sendTextMsg
(
"e99da8d0-62b9-4352-a196-d1f20b01960f"
,
String
.
format
(
"ESBookAdviser同步失败\nERR:%s"
,
Arrays
.
toString
(
e
.
getStackTrace
())),
null
,
CollUtil
.
toList
(
"13035118598"
));
}
}
private
void
saveToES
(
List
<
ESBookAndAdviser
>
bookList
,
int
resultCount
)
{
if
(
CollUtil
.
isEmpty
(
bookList
))
{
return
;
}
List
<
String
>
idList
=
bookList
.
stream
().
map
(
ESBookAndAdviser:
:
getBookId
).
collect
(
Collectors
.
toList
());
BoolQueryBuilder
boolQueryBuilder
=
QueryBuilders
.
boolQuery
();
boolQueryBuilder
.
must
(
QueryBuilders
.
termsQuery
(
"bookId"
,
idList
));
Iterable
<
ESBookAndAdviser
>
search
=
bookAndAdviserRepository
.
search
(
boolQueryBuilder
);
List
<
ESBookAndAdviser
>
list
=
new
ArrayList
<>();
Map
<
String
,
ESBookAndAdviser
>
map
=
bookList
.
stream
().
filter
(
Objects:
:
nonNull
).
filter
(
x
->
Objects
.
nonNull
(
x
.
getBookId
())).
collect
(
Collectors
.
toMap
(
ESBookAndAdviser:
:
getBookId
,
x
->
x
));
for
(
ESBookAndAdviser
bookAndAdviser
:
search
)
{
ESBookAndAdviser
esBookAndAdviser
=
map
.
get
(
bookAndAdviser
.
getBookId
());
if
(
Objects
.
isNull
(
esBookAndAdviser
))
continue
;
bookAndAdviser
.
setTempletId
(
esBookAndAdviser
.
getTempletId
());
bookAndAdviser
.
setSecondTempletId
(
esBookAndAdviser
.
getSecondTempletId
());
bookAndAdviser
.
setThirdTempletId
(
esBookAndAdviser
.
getThirdTempletId
());
list
.
add
(
bookAndAdviser
);
}
if
(
CollUtil
.
isNotEmpty
(
list
))
{
bookAndAdviserRepository
.
save
(
list
);
WeWorkWebHookRobotUtils
.
sendTextMsg
(
"e99da8d0-62b9-4352-a196-d1f20b01960f"
,
String
.
format
(
"ESBookAdviser同步中\n当前同步数量: %d\n存入ES数量:%d"
,
resultCount
,
list
.
size
()),
null
,
CollUtil
.
toList
(
"13035118598"
));
}
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/es/entity/ESBookAndAdviser.java
View file @
47ee3261
...
@@ -54,6 +54,11 @@ public class ESBookAndAdviser {
...
@@ -54,6 +54,11 @@ public class ESBookAndAdviser {
private
String
secondTempletId
;
private
String
secondTempletId
;
/**
/**
* 第二级类型
*/
private
String
thirdTempletId
;
/**
* 是否是主编辑
* 是否是主编辑
*/
*/
private
Boolean
isMainEditor
;
private
Boolean
isMainEditor
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/es/facade/ESBookAndAdviserFacade.java
View file @
47ee3261
package
com
.
pcloud
.
book
.
es
.
facade
;
package
com
.
pcloud
.
book
.
es
.
facade
;
import
cn.hutool.core.util.StrUtil
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.base.exception.BookBizException
;
import
com.pcloud.book.es.biz.ESBookAndAdviserBiz
;
import
com.pcloud.book.es.biz.ESBookAndAdviserBiz
;
import
com.pcloud.book.es.entity.ESBookAndAdviser
;
import
com.pcloud.book.es.entity.ESBookAndAdviser
;
...
@@ -42,13 +43,14 @@ public class ESBookAndAdviserFacade {
...
@@ -42,13 +43,14 @@ public class ESBookAndAdviserFacade {
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
)
throws
BizException
{
)
throws
BizException
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
throw
BookBizException
.
PAGE_PARAM_DELETION
;
throw
BookBizException
.
PAGE_PARAM_DELETION
;
}
}
return
esBookAndAdviserBiz
.
getAdviserBooks4ES
(
"0"
,
keyword
,
templetId
,
secondTempletId
,
currentPage
,
numPerPage
).
getContent
();
return
esBookAndAdviserBiz
.
getAdviserBooks4ES
(
"0"
,
keyword
,
templetId
,
secondTempletId
,
thirdTempletId
,
currentPage
,
numPerPage
).
getContent
();
}
}
@ApiOperation
(
"es中删除部分测试图书"
)
@ApiOperation
(
"es中删除部分测试图书"
)
...
@@ -77,4 +79,13 @@ public class ESBookAndAdviserFacade {
...
@@ -77,4 +79,13 @@ public class ESBookAndAdviserFacade {
esBookAndAdviserBiz
.
stopNotFoundBookId
();
esBookAndAdviserBiz
.
stopNotFoundBookId
();
return
new
ResponseDto
<>();
return
new
ResponseDto
<>();
}
}
@ApiOperation
(
"ES同步图书分类信息 - 慎点 参数为接口名"
)
@GetMapping
(
"/syncBookAdviserTemplet4ES"
)
public
ResponseDto
<
Void
>
syncBookAdviserTemplet4ES
(
@RequestParam
(
"conten"
)
String
content
){
if
(
StrUtil
.
equals
(
content
,
"syncBookAdviserTemplet4ES"
)){
esBookAndAdviserBiz
.
updateTempletId
();
}
return
new
ResponseDto
<>();
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/giftcoupon/biz/impl/GiftCouponPackageBizImpl.java
View file @
47ee3261
...
@@ -306,6 +306,9 @@ public class GiftCouponPackageBizImpl implements GiftCouponPackageBiz {
...
@@ -306,6 +306,9 @@ public class GiftCouponPackageBizImpl implements GiftCouponPackageBiz {
if
(
MapUtils
.
isNotEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
categoryDTO
.
getSecondClassify
())){
if
(
MapUtils
.
isNotEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
categoryDTO
.
getSecondClassify
())){
categoryDTO
.
setSecondClassifyName
(
classifyMap
.
get
(
categoryDTO
.
getSecondClassify
()).
getTempletName
());
categoryDTO
.
setSecondClassifyName
(
classifyMap
.
get
(
categoryDTO
.
getSecondClassify
()).
getTempletName
());
}
}
if
(
MapUtils
.
isNotEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
categoryDTO
.
getThirdClassify
())){
categoryDTO
.
setThirdClassifyName
(
classifyMap
.
get
(
categoryDTO
.
getThirdClassify
()).
getTempletName
());
}
if
(
MapUtils
.
isNotEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
categoryDTO
.
getSubjectLabelId
()))
{
if
(
MapUtils
.
isNotEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
categoryDTO
.
getSubjectLabelId
()))
{
categoryDTO
.
setSubjectLabelName
(
labelMap
.
get
(
categoryDTO
.
getSubjectLabelId
()));
categoryDTO
.
setSubjectLabelName
(
labelMap
.
get
(
categoryDTO
.
getSubjectLabelId
()));
}
}
...
@@ -582,6 +585,7 @@ public class GiftCouponPackageBizImpl implements GiftCouponPackageBiz {
...
@@ -582,6 +585,7 @@ public class GiftCouponPackageBizImpl implements GiftCouponPackageBiz {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getFirstClassify
()
:
null
);
map
.
put
(
"firstClassify"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getFirstClassify
()
:
null
);
map
.
put
(
"secondClassify"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getSecondClassify
()
:
null
);
map
.
put
(
"secondClassify"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getSecondClassify
()
:
null
);
map
.
put
(
"thirdClassify"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getThirdClassify
()
:
null
);
map
.
put
(
"gradeLabelId"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getGradeLabelId
()
:
null
);
map
.
put
(
"gradeLabelId"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getGradeLabelId
()
:
null
);
map
.
put
(
"subjectLabelId"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getSubjectLabelId
()
:
null
);
map
.
put
(
"subjectLabelId"
,
null
!=
baseTempletClassify
?
baseTempletClassify
.
getSubjectLabelId
()
:
null
);
List
<
Long
>
resultIds
=
setSelectIds
(
map
);
List
<
Long
>
resultIds
=
setSelectIds
(
map
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/giftcoupon/dto/GiftCategoryDTO.java
View file @
47ee3261
...
@@ -33,4 +33,10 @@ public class GiftCategoryDTO extends BaseDto {
...
@@ -33,4 +33,10 @@ public class GiftCategoryDTO extends BaseDto {
private
Long
giftPackageId
;
private
Long
giftPackageId
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"第三级类型标识名称"
)
private
String
thirdClassifyName
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/BookGroupClassifyBiz.java
View file @
47ee3261
...
@@ -289,7 +289,7 @@ public interface BookGroupClassifyBiz {
...
@@ -289,7 +289,7 @@ public interface BookGroupClassifyBiz {
List
<
BookGroupClassifyDTO
>
getBookGroupClassifyByClassifyIds
(
List
<
Long
>
classifyIds
);
List
<
BookGroupClassifyDTO
>
getBookGroupClassifyByClassifyIds
(
List
<
Long
>
classifyIds
);
PageBeanNew
<
BookGroupClassifyAnalysisVO
>
listGroupClassify4Analysis
(
String
name
,
Long
proLabelId
,
Long
depLabelId
,
Long
purLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Integer
browseQty
,
Integer
clickQty
,
Integer
currentPage
,
Integer
numPerPage
,
String
cityCode
);
PageBeanNew
<
BookGroupClassifyAnalysisVO
>
listGroupClassify4Analysis
(
String
name
,
Long
proLabelId
,
Long
depLabelId
,
Long
purLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Integer
browseQty
,
Integer
clickQty
,
Integer
currentPage
,
Integer
numPerPage
,
String
cityCode
,
Long
thirdClassify
);
Map
<
Long
,
GroupDetailDTO
>
getGroupMap
(
List
<
Long
>
groupIds
,
Integer
groupType
);
Map
<
Long
,
GroupDetailDTO
>
getGroupMap
(
List
<
Long
>
groupIds
,
Integer
groupType
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
View file @
47ee3261
...
@@ -1569,11 +1569,12 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -1569,11 +1569,12 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
}
}
@Override
@Override
public
PageBeanNew
<
BookGroupClassifyAnalysisVO
>
listGroupClassify4Analysis
(
String
name
,
Long
proLabelId
,
Long
depLabelId
,
Long
purLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Integer
browseQty
,
Integer
clickQty
,
Integer
currentPage
,
Integer
numPerPage
,
String
cityCode
)
{
public
PageBeanNew
<
BookGroupClassifyAnalysisVO
>
listGroupClassify4Analysis
(
String
name
,
Long
proLabelId
,
Long
depLabelId
,
Long
purLabelId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
linkOnly
,
Integer
browseQty
,
Integer
clickQty
,
Integer
currentPage
,
Integer
numPerPage
,
String
cityCode
,
Long
thirdClassify
)
{
PageParam
pageParam
=
new
PageParam
(
currentPage
,
numPerPage
);
PageParam
pageParam
=
new
PageParam
(
currentPage
,
numPerPage
);
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
baseTempletClassify
.
setFirstClassify
(
firstClassify
);
baseTempletClassify
.
setFirstClassify
(
firstClassify
);
baseTempletClassify
.
setSecondClassify
(
secondClassify
);
baseTempletClassify
.
setSecondClassify
(
secondClassify
);
baseTempletClassify
.
setThirdClassify
(
thirdClassify
);
baseTempletClassify
.
setSubjectLabelId
(
subjectLabelId
);
baseTempletClassify
.
setSubjectLabelId
(
subjectLabelId
);
baseTempletClassify
.
setGradeLabelId
(
gradeLabelId
);
baseTempletClassify
.
setGradeLabelId
(
gradeLabelId
);
if
(
null
!=
baseTempletClassify
.
getFirstClassify
()){
if
(
null
!=
baseTempletClassify
.
getFirstClassify
()){
...
@@ -1589,6 +1590,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -1589,6 +1590,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
map
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
map
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
map
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
map
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
map
.
put
(
"thirdClassify"
,
baseTempletClassify
.
getThirdClassify
());
map
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
map
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
map
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
map
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
PageBeanNew
<
BookGroupClassifyAnalysisVO
>
pageBeanNew
=
bookGroupClassifyDao
.
listPageNew
(
pageParam
,
map
,
"listGroupClassify4Analysis"
);
PageBeanNew
<
BookGroupClassifyAnalysisVO
>
pageBeanNew
=
bookGroupClassifyDao
.
listPageNew
(
pageParam
,
map
,
"listGroupClassify4Analysis"
);
...
@@ -1697,6 +1699,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -1697,6 +1699,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
}
}
List
<
Long
>
firstClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
firstClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
secondClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
secondClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
thirdClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
classifyIds
=
new
ArrayList
<>();
List
<
Long
>
classifyIds
=
new
ArrayList
<>();
List
<
Long
>
gradeLabelIds
=
new
ArrayList
<>();
List
<
Long
>
gradeLabelIds
=
new
ArrayList
<>();
List
<
Long
>
subjectLabelIds
=
new
ArrayList
<>();
List
<
Long
>
subjectLabelIds
=
new
ArrayList
<>();
...
@@ -1704,6 +1707,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -1704,6 +1707,7 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
for
(
BookGroupClassifyAnalysisVO
vo
:
recordList
)
{
for
(
BookGroupClassifyAnalysisVO
vo
:
recordList
)
{
firstClassifyIds
.
add
(
vo
.
getFirstClassify
());
firstClassifyIds
.
add
(
vo
.
getFirstClassify
());
secondClassifyIds
.
add
(
vo
.
getSecondClassify
());
secondClassifyIds
.
add
(
vo
.
getSecondClassify
());
thirdClassifyIds
.
add
(
vo
.
getThirdClassify
());
gradeLabelIds
.
add
(
vo
.
getGradeLabelId
());
gradeLabelIds
.
add
(
vo
.
getGradeLabelId
());
subjectLabelIds
.
add
(
vo
.
getSubjectLabelId
());
subjectLabelIds
.
add
(
vo
.
getSubjectLabelId
());
}
}
...
@@ -1713,6 +1717,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -1713,6 +1717,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
if
(!
ListUtils
.
isEmpty
(
secondClassifyIds
)){
if
(!
ListUtils
.
isEmpty
(
secondClassifyIds
)){
classifyIds
.
addAll
(
secondClassifyIds
);
classifyIds
.
addAll
(
secondClassifyIds
);
}
}
if
(!
ListUtils
.
isEmpty
(
thirdClassifyIds
)){
classifyIds
.
addAll
(
thirdClassifyIds
);
}
if
(!
ListUtils
.
isEmpty
(
gradeLabelIds
)){
if
(!
ListUtils
.
isEmpty
(
gradeLabelIds
)){
labelIds
.
addAll
(
gradeLabelIds
);
labelIds
.
addAll
(
gradeLabelIds
);
}
}
...
@@ -1734,6 +1741,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -1734,6 +1741,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
vo
.
getSecondClassify
())){
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
vo
.
getSecondClassify
())){
vo
.
setSecondClassifyName
(
classifyMap
.
get
(
vo
.
getSecondClassify
()).
getTempletName
());
vo
.
setSecondClassifyName
(
classifyMap
.
get
(
vo
.
getSecondClassify
()).
getTempletName
());
}
}
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
vo
.
getThirdClassify
())){
vo
.
setThirdClassifyName
(
classifyMap
.
get
(
vo
.
getThirdClassify
()).
getTempletName
());
}
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
vo
.
getGradeLabelId
())){
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
vo
.
getGradeLabelId
())){
vo
.
setGradeLabelName
(
labelMap
.
get
(
vo
.
getGradeLabelId
()).
getName
());
vo
.
setGradeLabelName
(
labelMap
.
get
(
vo
.
getGradeLabelId
()).
getName
());
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/BookGroupClassifyFacade.java
View file @
47ee3261
...
@@ -299,6 +299,7 @@ public interface BookGroupClassifyFacade {
...
@@ -299,6 +299,7 @@ public interface BookGroupClassifyFacade {
@RequestParam
(
value
=
"purLabelId"
,
required
=
false
)
@ApiParam
(
"目的"
)
Long
purLabelId
,
@RequestParam
(
value
=
"purLabelId"
,
required
=
false
)
@ApiParam
(
"目的"
)
Long
purLabelId
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"linkOnly"
,
required
=
false
)
@ApiParam
(
"只看第三方"
)
Integer
linkOnly
,
@RequestParam
(
value
=
"linkOnly"
,
required
=
false
)
@ApiParam
(
"只看第三方"
)
Integer
linkOnly
,
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/BookGroupClassifyFacadeImpl.java
View file @
47ee3261
...
@@ -360,6 +360,7 @@ public class BookGroupClassifyFacadeImpl implements BookGroupClassifyFacade {
...
@@ -360,6 +360,7 @@ public class BookGroupClassifyFacadeImpl implements BookGroupClassifyFacade {
@RequestParam
(
value
=
"purLabelId"
,
required
=
false
)
@ApiParam
(
"目的"
)
Long
purLabelId
,
@RequestParam
(
value
=
"purLabelId"
,
required
=
false
)
@ApiParam
(
"目的"
)
Long
purLabelId
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
@ApiParam
(
"一级分类"
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
@ApiParam
(
"二级分类"
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
@ApiParam
(
"年级"
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
@ApiParam
(
"科目"
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"linkOnly"
,
required
=
false
)
@ApiParam
(
"只看第三方"
)
Integer
linkOnly
,
@RequestParam
(
value
=
"linkOnly"
,
required
=
false
)
@ApiParam
(
"只看第三方"
)
Integer
linkOnly
,
...
@@ -371,7 +372,7 @@ public class BookGroupClassifyFacadeImpl implements BookGroupClassifyFacade {
...
@@ -371,7 +372,7 @@ public class BookGroupClassifyFacadeImpl implements BookGroupClassifyFacade {
)
throws
BizException
,
PermissionException
{
)
throws
BizException
,
PermissionException
{
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
return
new
ResponseDto
<>(
bookGroupClassifyBiz
.
listGroupClassify4Analysis
(
name
,
proLabelId
,
depLabelId
,
purLabelId
,
return
new
ResponseDto
<>(
bookGroupClassifyBiz
.
listGroupClassify4Analysis
(
name
,
proLabelId
,
depLabelId
,
purLabelId
,
firstClassify
,
secondClassify
,
gradeLabelId
,
subjectLabelId
,
linkOnly
,
browseQty
,
clickQty
,
currentPage
,
numPerPage
,
cityCode
));
firstClassify
,
secondClassify
,
gradeLabelId
,
subjectLabelId
,
linkOnly
,
browseQty
,
clickQty
,
currentPage
,
numPerPage
,
cityCode
,
thirdClassify
));
}
}
@Override
@Override
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/BookGroupAnalysisVO.java
View file @
47ee3261
...
@@ -59,6 +59,14 @@ public class BookGroupAnalysisVO extends BaseDto {
...
@@ -59,6 +59,14 @@ public class BookGroupAnalysisVO extends BaseDto {
*/
*/
private
String
secondTempletName
;
private
String
secondTempletName
;
/**
/**
* 三级分类id
*/
private
Long
thirdTempletId
;
/**
* 三级分类名称
*/
private
String
thirdTempletName
;
/**
* 编辑标识
* 编辑标识
*/
*/
private
Long
adviserId
;
private
Long
adviserId
;
...
@@ -160,6 +168,21 @@ public class BookGroupAnalysisVO extends BaseDto {
...
@@ -160,6 +168,21 @@ public class BookGroupAnalysisVO extends BaseDto {
*/
*/
private
BigDecimal
avgSaleAmount
;
private
BigDecimal
avgSaleAmount
;
public
Long
getThirdTempletId
()
{
return
thirdTempletId
;
}
public
void
setThirdTempletId
(
Long
thirdTempletId
)
{
this
.
thirdTempletId
=
thirdTempletId
;
}
public
String
getThirdTempletName
()
{
return
thirdTempletName
;
}
public
void
setThirdTempletName
(
String
thirdTempletName
)
{
this
.
thirdTempletName
=
thirdTempletName
;
}
public
Long
getBookGroupId
()
{
public
Long
getBookGroupId
()
{
return
bookGroupId
;
return
bookGroupId
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/BookGroupClassifyAnalysisVO.java
View file @
47ee3261
...
@@ -73,4 +73,10 @@ public class BookGroupClassifyAnalysisVO {
...
@@ -73,4 +73,10 @@ public class BookGroupClassifyAnalysisVO {
private
Long
subjectLabelId
;
private
Long
subjectLabelId
;
@ApiModelProperty
(
"科目标签名称"
)
@ApiModelProperty
(
"科目标签名称"
)
private
String
subjectLabelName
;
private
String
subjectLabelName
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"第三级类型标识名称"
)
private
String
thirdClassifyName
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/record/biz/impl/BookBrowseRecordBizImpl.java
View file @
47ee3261
...
@@ -136,6 +136,7 @@ public class BookBrowseRecordBizImpl implements BookBrowseRecordBiz {
...
@@ -136,6 +136,7 @@ public class BookBrowseRecordBizImpl implements BookBrowseRecordBiz {
bookBrowseRecord
.
setAgentId
(
agentId
);
bookBrowseRecord
.
setAgentId
(
agentId
);
Long
firstClassifyId
=
null
==
bookAdviserDto
.
getTempletId
()
?
0
:
bookAdviserDto
.
getTempletId
();
Long
firstClassifyId
=
null
==
bookAdviserDto
.
getTempletId
()
?
0
:
bookAdviserDto
.
getTempletId
();
Long
secondClassifyId
=
null
==
bookAdviserDto
.
getSecondTempletId
()
?
0
:
bookAdviserDto
.
getSecondTempletId
();
Long
secondClassifyId
=
null
==
bookAdviserDto
.
getSecondTempletId
()
?
0
:
bookAdviserDto
.
getSecondTempletId
();
Long
thirdClassifyId
=
null
==
bookAdviserDto
.
getThirdTempletId
()
?
0
:
bookAdviserDto
.
getThirdTempletId
();
Long
graLabelId
=
null
==
bookAdviserDto
.
getGraLabelId
()
?
0
:
bookAdviserDto
.
getGraLabelId
();
Long
graLabelId
=
null
==
bookAdviserDto
.
getGraLabelId
()
?
0
:
bookAdviserDto
.
getGraLabelId
();
Long
subLabelId
=
null
==
bookAdviserDto
.
getSubLabelId
()
?
0
:
bookAdviserDto
.
getSubLabelId
();
Long
subLabelId
=
null
==
bookAdviserDto
.
getSubLabelId
()
?
0
:
bookAdviserDto
.
getSubLabelId
();
Long
bookClassifyId
=
null
;
Long
bookClassifyId
=
null
;
...
@@ -147,6 +148,7 @@ public class BookBrowseRecordBizImpl implements BookBrowseRecordBiz {
...
@@ -147,6 +148,7 @@ public class BookBrowseRecordBizImpl implements BookBrowseRecordBiz {
}
}
bookBrowseRecord
.
setFirstClassifyId
(
firstClassifyId
);
bookBrowseRecord
.
setFirstClassifyId
(
firstClassifyId
);
bookBrowseRecord
.
setSecondClassifyId
(
secondClassifyId
);
bookBrowseRecord
.
setSecondClassifyId
(
secondClassifyId
);
bookBrowseRecord
.
setThirdClassifyId
(
thirdClassifyId
);
bookBrowseRecord
.
setGraLabelId
(
graLabelId
);
bookBrowseRecord
.
setGraLabelId
(
graLabelId
);
bookBrowseRecord
.
setSubLabelId
(
subLabelId
);
bookBrowseRecord
.
setSubLabelId
(
subLabelId
);
bookBrowseRecord
.
setBookClassifyId
(
bookClassifyId
);
bookBrowseRecord
.
setBookClassifyId
(
bookClassifyId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/RightsSettingBiz.java
View file @
47ee3261
...
@@ -35,7 +35,7 @@ public interface RightsSettingBiz {
...
@@ -35,7 +35,7 @@ public interface RightsSettingBiz {
PageBeanNew
<
RightsSettingDto
>
listRightsSettingPage
(
Integer
currentPage
,
Integer
numPerPage
,
RightsSetting
rightsSetting
);
PageBeanNew
<
RightsSettingDto
>
listRightsSettingPage
(
Integer
currentPage
,
Integer
numPerPage
,
RightsSetting
rightsSetting
);
RightsSettingDto
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
Long
verLabel
Id
);
RightsSettingDto
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
Long
verLabelId
,
Long
thirdTemplet
Id
);
Integer
getUserCount
();
Integer
getUserCount
();
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
47ee3261
This diff is collapsed.
Click to expand it.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/constants/RightsSettingConstant.java
View file @
47ee3261
...
@@ -72,4 +72,9 @@ public class RightsSettingConstant {
...
@@ -72,4 +72,9 @@ public class RightsSettingConstant {
* </p>
* </p>
*/
*/
public
static
final
Long
[]
K12_TEMPLATE_IDS
=
{
48L
,
59L
,
46L
,
40L
,
65L
};
public
static
final
Long
[]
K12_TEMPLATE_IDS
=
{
48L
,
59L
,
46L
,
40L
,
65L
};
/**
* 教辅一级分类
*/
public
static
final
Long
[]
K12_TEMPLET_ID_NEW
=
{
534L
};
}
}
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/dao/RightsSettingDAO.java
View file @
47ee3261
...
@@ -22,7 +22,7 @@ public interface RightsSettingDAO extends BaseDao<RightsSetting> {
...
@@ -22,7 +22,7 @@ public interface RightsSettingDAO extends BaseDao<RightsSetting> {
int
updateByPrimaryKey
(
RightsSetting
record
);
int
updateByPrimaryKey
(
RightsSetting
record
);
RightsSettingDto
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
Long
verLabelId
);
RightsSettingDto
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
Long
verLabelId
,
Long
thirdTempletId
);
RightsSettingDto
getByBookId
(
Long
bookId
);
RightsSettingDto
getByBookId
(
Long
bookId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/dao/RightsSettingItemDao.java
View file @
47ee3261
package
com
.
pcloud
.
book
.
rightsSetting
.
dao
;
package
com
.
pcloud
.
book
.
rightsSetting
.
dao
;
import
com.pcloud.book.applet.dto.AppletNewsDTO
;
import
com.pcloud.book.rightsSetting.dto.ReadTypeCountDTO
;
import
com.pcloud.book.rightsSetting.dto.ReadTypeCountDTO
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingClassify
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingClassify
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingItem
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingItem
;
...
@@ -50,7 +49,7 @@ public interface RightsSettingItemDao extends BaseDao<RightsSettingItem>{
...
@@ -50,7 +49,7 @@ public interface RightsSettingItemDao extends BaseDao<RightsSettingItem>{
Map
<
Long
,
RightsSettingClassify
>
getRightsClassifyMap
(
ArrayList
<
Long
>
longs
);
Map
<
Long
,
RightsSettingClassify
>
getRightsClassifyMap
(
ArrayList
<
Long
>
longs
);
List
<
RightsSettingItem
>
getItemsByClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
String
rightsType
,
Integer
readType
,
Long
rightsClassifyId
);
List
<
RightsSettingItem
>
getItemsByClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
String
rightsType
,
Integer
readType
,
Long
rightsClassifyId
,
Long
thirdClassify
);
List
<
RightsSettingItem
>
getRightSettingInfo
(
String
serveType
,
String
rightsType
,
Long
rightsSettingId
);
List
<
RightsSettingItem
>
getRightSettingInfo
(
String
serveType
,
String
rightsType
,
Long
rightsSettingId
);
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/dao/impl/RightsSettingDAOImpl.java
View file @
47ee3261
...
@@ -51,10 +51,11 @@ public class RightsSettingDAOImpl extends BaseDaoImpl<RightsSetting> implement
...
@@ -51,10 +51,11 @@ public class RightsSettingDAOImpl extends BaseDaoImpl<RightsSetting> implement
}
}
@Override
@Override
public
RightsSettingDto
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
Long
verLabelId
)
{
public
RightsSettingDto
getByLabel
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
Long
verLabelId
,
Long
thirdTempletId
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"firstClassify"
,
firstClassify
);
paramMap
.
put
(
"firstClassify"
,
firstClassify
);
paramMap
.
put
(
"secondClassify"
,
secondClassify
);
paramMap
.
put
(
"secondClassify"
,
secondClassify
);
paramMap
.
put
(
"thirdClassify"
,
thirdTempletId
);
paramMap
.
put
(
"gradeLabelId"
,
gradeLabelId
);
paramMap
.
put
(
"gradeLabelId"
,
gradeLabelId
);
paramMap
.
put
(
"subjectLabelId"
,
subjectLabelId
);
paramMap
.
put
(
"subjectLabelId"
,
subjectLabelId
);
paramMap
.
put
(
"volLabelId"
,
volLabelId
);
paramMap
.
put
(
"volLabelId"
,
volLabelId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/dao/impl/RightsSettingItemDaoImpl.java
View file @
47ee3261
package
com
.
pcloud
.
book
.
rightsSetting
.
dao
.
impl
;
package
com
.
pcloud
.
book
.
rightsSetting
.
dao
.
impl
;
import
cn.hutool.core.collection.CollUtil
;
import
com.pcloud.book.applet.dto.AppletNewsDTO
;
import
com.pcloud.book.rightsSetting.dao.RightsSettingItemDao
;
import
com.pcloud.book.rightsSetting.dao.RightsSettingItemDao
;
import
com.pcloud.book.rightsSetting.dto.ReadTypeCountDTO
;
import
com.pcloud.book.rightsSetting.dto.ReadTypeCountDTO
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingClassify
;
import
com.pcloud.book.rightsSetting.entity.RightsSettingClassify
;
...
@@ -73,10 +71,11 @@ public class RightsSettingItemDaoImpl extends BaseDaoImpl<RightsSettingItem> imp
...
@@ -73,10 +71,11 @@ public class RightsSettingItemDaoImpl extends BaseDaoImpl<RightsSettingItem> imp
}
}
@Override
@Override
public
List
<
RightsSettingItem
>
getItemsByClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
String
rightsType
,
Integer
readType
,
Long
rightsClassifyId
)
{
public
List
<
RightsSettingItem
>
getItemsByClassify
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
volLabelId
,
String
rightsType
,
Integer
readType
,
Long
rightsClassifyId
,
Long
thirdClassify
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"thirdClassify"
,
thirdClassify
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"volLabelId"
,
volLabelId
);
map
.
put
(
"volLabelId"
,
volLabelId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/entity/BaseTempletClassify.java
View file @
47ee3261
...
@@ -15,6 +15,8 @@ public class BaseTempletClassify extends BaseEntity {
...
@@ -15,6 +15,8 @@ public class BaseTempletClassify extends BaseEntity {
private
Long
firstClassify
;
private
Long
firstClassify
;
@ApiModelProperty
(
"第二级类型标识"
)
@ApiModelProperty
(
"第二级类型标识"
)
private
Long
secondClassify
;
private
Long
secondClassify
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"年级标签id"
)
@ApiModelProperty
(
"年级标签id"
)
private
Long
gradeLabelId
;
private
Long
gradeLabelId
;
@ApiModelProperty
(
"科目标签id"
)
@ApiModelProperty
(
"科目标签id"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/entity/RightsSetting.java
View file @
47ee3261
...
@@ -32,6 +32,8 @@ public class RightsSetting extends BaseTempletClassify {
...
@@ -32,6 +32,8 @@ public class RightsSetting extends BaseTempletClassify {
private
Long
secondClassify
;
private
Long
secondClassify
;
private
Long
thirdClassify
;
private
Long
gradeLabelId
;
private
Long
gradeLabelId
;
private
Long
subjectLabelId
;
private
Long
subjectLabelId
;
...
@@ -210,6 +212,8 @@ public class RightsSetting extends BaseTempletClassify {
...
@@ -210,6 +212,8 @@ public class RightsSetting extends BaseTempletClassify {
private
String
secondClassifyContent
;
private
String
secondClassifyContent
;
private
String
thridClassifyContent
;
private
String
gradeLabelIdContent
;
private
String
gradeLabelIdContent
;
private
String
subjectLabelIdContent
;
private
String
subjectLabelIdContent
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/entity/RightsSettingBookRelation.java
View file @
47ee3261
...
@@ -64,6 +64,16 @@ public class RightsSettingBookRelation {
...
@@ -64,6 +64,16 @@ public class RightsSettingBookRelation {
private
String
secondTempletName
;
private
String
secondTempletName
;
/**
/**
* 第三级标签
*/
private
Long
thirdTempletId
;
/**
* 第三级标签名称
*/
private
String
thirdTempletName
;
/**
* 年级标签id
* 年级标签id
*/
*/
private
Long
graLabelId
;
private
Long
graLabelId
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/facade/RightsSettingFacede.java
View file @
47ee3261
...
@@ -87,6 +87,7 @@ public class RightsSettingFacede {
...
@@ -87,6 +87,7 @@ public class RightsSettingFacede {
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"rightsSettingType"
,
required
=
false
,
defaultValue
=
"1"
)
Integer
rightsSettingType
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"rightsSettingType"
,
required
=
false
,
defaultValue
=
"1"
)
Integer
rightsSettingType
,
@RequestParam
(
value
=
"bookQuery"
,
required
=
false
)
String
bookQuery
,
@RequestParam
(
value
=
"bookQuery"
,
required
=
false
)
String
bookQuery
,
...
@@ -109,6 +110,7 @@ public class RightsSettingFacede {
...
@@ -109,6 +110,7 @@ public class RightsSettingFacede {
rightsSetting
.
setVolLabelId
(
volLabelId
);
rightsSetting
.
setVolLabelId
(
volLabelId
);
rightsSetting
.
setAgentId
(
agentId
);
rightsSetting
.
setAgentId
(
agentId
);
rightsSetting
.
setVerLabelId
(
verLabelId
);
rightsSetting
.
setVerLabelId
(
verLabelId
);
rightsSetting
.
setThirdClassify
(
thirdClassify
);
return
new
ResponseDto
<
PageBeanNew
<
RightsSettingDto
>>(
rightsSettingBiz
.
listRightsSettingPage
(
currentPage
,
numPerPage
,
rightsSetting
));
return
new
ResponseDto
<
PageBeanNew
<
RightsSettingDto
>>(
rightsSettingBiz
.
listRightsSettingPage
(
currentPage
,
numPerPage
,
rightsSetting
));
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/PcloudGroupActivityBiz.java
View file @
47ee3261
...
@@ -64,7 +64,7 @@ public interface PcloudGroupActivityBiz {
...
@@ -64,7 +64,7 @@ public interface PcloudGroupActivityBiz {
* 获取共读活动列表(分页)
* 获取共读活动列表(分页)
*/
*/
PageBeanNew
<
QueryGroupActivityResponseVO
>
queryGroupActivity
(
String
name
,
Long
proLabelId
,
Long
purLabelId
,
Long
depLabelId
,
Integer
joinType
,
Long
firstClassify
,
PageBeanNew
<
QueryGroupActivityResponseVO
>
queryGroupActivity
(
String
name
,
Long
proLabelId
,
Long
purLabelId
,
Long
depLabelId
,
Integer
joinType
,
Long
firstClassify
,
Long
secondClassify
,
Long
secondClassify
,
Long
thirdClassify
,
Long
gradeLabelId
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
numPerPage
,
Integer
currentPage
,
String
cityCode
,
Long
agentId
,
Integer
isChoose
);
Long
subjectLabelId
,
Integer
numPerPage
,
Integer
currentPage
,
String
cityCode
,
Long
agentId
,
Integer
isChoose
);
...
@@ -95,7 +95,7 @@ public interface PcloudGroupActivityBiz {
...
@@ -95,7 +95,7 @@ public interface PcloudGroupActivityBiz {
* @date:2020/6/8 10:49
* @date:2020/6/8 10:49
* * @param null
* * @param null
*/
*/
PageBeanNew
<
AppletGroupManageDTO
>
getGroupListByBookTemplet
(
Long
wechatUserId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
currentPage
,
Integer
numPerPage
,
Long
agentId
);
PageBeanNew
<
AppletGroupManageDTO
>
getGroupListByBookTemplet
(
Long
wechatUserId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
currentPage
,
Integer
numPerPage
,
Long
agentId
,
Long
thirdClassify
);
List
<
GroupActivity4AppletDTO
>
getTishBookSchoolListWrap
(
BaseTempletClassify
baseTempletClassify
,
Integer
limit
);
List
<
GroupActivity4AppletDTO
>
getTishBookSchoolListWrap
(
BaseTempletClassify
baseTempletClassify
,
Integer
limit
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
View file @
47ee3261
...
@@ -305,7 +305,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -305,7 +305,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
@Override
@Override
public
PageBeanNew
<
QueryGroupActivityResponseVO
>
queryGroupActivity
(
String
name
,
Long
proLabelId
,
Long
purLabelId
,
Long
depLabelId
,
Integer
joinType
,
Long
firstClassify
,
public
PageBeanNew
<
QueryGroupActivityResponseVO
>
queryGroupActivity
(
String
name
,
Long
proLabelId
,
Long
purLabelId
,
Long
depLabelId
,
Integer
joinType
,
Long
firstClassify
,
Long
secondClassify
,
Long
secondClassify
,
Long
thirdClassify
,
Long
gradeLabelId
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
numPerPage
,
Integer
currentPage
,
String
cityCode
,
Long
agentId
,
Integer
isChoose
)
{
Long
subjectLabelId
,
Integer
numPerPage
,
Integer
currentPage
,
String
cityCode
,
Long
agentId
,
Integer
isChoose
)
{
...
@@ -313,6 +313,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -313,6 +313,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
baseTempletClassify
.
setFirstClassify
(
firstClassify
);
baseTempletClassify
.
setFirstClassify
(
firstClassify
);
baseTempletClassify
.
setSecondClassify
(
secondClassify
);
baseTempletClassify
.
setSecondClassify
(
secondClassify
);
baseTempletClassify
.
setThirdClassify
(
thirdClassify
);
baseTempletClassify
.
setSubjectLabelId
(
subjectLabelId
);
baseTempletClassify
.
setSubjectLabelId
(
subjectLabelId
);
baseTempletClassify
.
setGradeLabelId
(
gradeLabelId
);
baseTempletClassify
.
setGradeLabelId
(
gradeLabelId
);
if
(
null
!=
baseTempletClassify
.
getFirstClassify
()){
if
(
null
!=
baseTempletClassify
.
getFirstClassify
()){
...
@@ -326,6 +327,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -326,6 +327,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
paraMap
.
put
(
"joinType"
,
joinType
);
paraMap
.
put
(
"joinType"
,
joinType
);
paraMap
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
paraMap
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
paraMap
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
paraMap
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
paraMap
.
put
(
"thirdClassify"
,
baseTempletClassify
.
getThirdClassify
());
paraMap
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
paraMap
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
paraMap
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
paraMap
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
paraMap
.
put
(
"cityCode"
,
cityCode
);
paraMap
.
put
(
"cityCode"
,
cityCode
);
...
@@ -390,6 +392,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -390,6 +392,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
}
}
List
<
Long
>
firstClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
firstClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
secondClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
secondClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
thirdClassifyIds
=
new
ArrayList
<>();
List
<
Long
>
classifyIds
=
new
ArrayList
<>();
List
<
Long
>
classifyIds
=
new
ArrayList
<>();
List
<
Long
>
gradeLabelIds
=
new
ArrayList
<>();
List
<
Long
>
gradeLabelIds
=
new
ArrayList
<>();
List
<
Long
>
subjectLabelIds
=
new
ArrayList
<>();
List
<
Long
>
subjectLabelIds
=
new
ArrayList
<>();
...
@@ -397,6 +400,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -397,6 +400,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
for
(
QueryGroupActivityResponseVO
queryGroupActivityResponseVO:
rightsSettingDtos
)
{
for
(
QueryGroupActivityResponseVO
queryGroupActivityResponseVO:
rightsSettingDtos
)
{
firstClassifyIds
.
add
(
queryGroupActivityResponseVO
.
getFirstClassify
());
firstClassifyIds
.
add
(
queryGroupActivityResponseVO
.
getFirstClassify
());
secondClassifyIds
.
add
(
queryGroupActivityResponseVO
.
getSecondClassify
());
secondClassifyIds
.
add
(
queryGroupActivityResponseVO
.
getSecondClassify
());
thirdClassifyIds
.
add
(
queryGroupActivityResponseVO
.
getThirdClassify
());
gradeLabelIds
.
add
(
queryGroupActivityResponseVO
.
getGradeLabelId
());
gradeLabelIds
.
add
(
queryGroupActivityResponseVO
.
getGradeLabelId
());
subjectLabelIds
.
add
(
queryGroupActivityResponseVO
.
getSubjectLabelId
());
subjectLabelIds
.
add
(
queryGroupActivityResponseVO
.
getSubjectLabelId
());
}
}
...
@@ -406,6 +410,9 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -406,6 +410,9 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if
(!
ListUtils
.
isEmpty
(
secondClassifyIds
)){
if
(!
ListUtils
.
isEmpty
(
secondClassifyIds
)){
classifyIds
.
addAll
(
secondClassifyIds
);
classifyIds
.
addAll
(
secondClassifyIds
);
}
}
if
(!
ListUtils
.
isEmpty
(
thirdClassifyIds
)){
classifyIds
.
addAll
(
thirdClassifyIds
);
}
if
(!
ListUtils
.
isEmpty
(
gradeLabelIds
)){
if
(!
ListUtils
.
isEmpty
(
gradeLabelIds
)){
labelIds
.
addAll
(
gradeLabelIds
);
labelIds
.
addAll
(
gradeLabelIds
);
}
}
...
@@ -427,6 +434,9 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -427,6 +434,9 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
rightsSettingDto
.
getSecondClassify
())){
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
rightsSettingDto
.
getSecondClassify
())){
rightsSettingDto
.
setSecondClassifyName
(
classifyMap
.
get
(
rightsSettingDto
.
getSecondClassify
()).
getTempletName
());
rightsSettingDto
.
setSecondClassifyName
(
classifyMap
.
get
(
rightsSettingDto
.
getSecondClassify
()).
getTempletName
());
}
}
if
(!
MapUtils
.
isEmpty
(
classifyMap
)
&&
classifyMap
.
containsKey
(
rightsSettingDto
.
getThirdClassify
())){
rightsSettingDto
.
setThirdClassifyName
(
classifyMap
.
get
(
rightsSettingDto
.
getThirdClassify
()).
getTempletName
());
}
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
rightsSettingDto
.
getGradeLabelId
())){
if
(!
MapUtils
.
isEmpty
(
labelMap
)
&&
labelMap
.
containsKey
(
rightsSettingDto
.
getGradeLabelId
())){
rightsSettingDto
.
setGradeLabelName
(
labelMap
.
get
(
rightsSettingDto
.
getGradeLabelId
()).
getName
());
rightsSettingDto
.
setGradeLabelName
(
labelMap
.
get
(
rightsSettingDto
.
getGradeLabelId
()).
getName
());
}
}
...
@@ -475,12 +485,14 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -475,12 +485,14 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
baseTempletClassify
.
setFirstClassify
(
dto
.
getTempletId
());
baseTempletClassify
.
setFirstClassify
(
dto
.
getTempletId
());
baseTempletClassify
.
setSecondClassify
(
dto
.
getSecondTempletId
());
baseTempletClassify
.
setSecondClassify
(
dto
.
getSecondTempletId
());
baseTempletClassify
.
setThirdClassify
(
dto
.
getThirdTempletId
());
baseTempletClassify
.
setGradeLabelId
(
dto
.
getGraLabelId
());
baseTempletClassify
.
setGradeLabelId
(
dto
.
getGraLabelId
());
baseTempletClassify
.
setSubjectLabelId
(
dto
.
getSubLabelId
());
baseTempletClassify
.
setSubjectLabelId
(
dto
.
getSubLabelId
());
baseTempletClassify
.
setVolLabelId
(
dto
.
getVolLabelId
());
baseTempletClassify
.
setVolLabelId
(
dto
.
getVolLabelId
());
rightsSettingBiz
.
setClassifyAndLabel
(
baseTempletClassify
);
rightsSettingBiz
.
setClassifyAndLabel
(
baseTempletClassify
);
GroupActivity4AppletDTO
groupActivity4AppletDTO
=
pcloudGroupActivityDao
.
getGroupActivity4Applet
(
baseTempletClassify
.
getFirstClassify
(),
baseTempletClassify
.
getSecondClassify
(),
baseTempletClassify
.
getGradeLabelId
(),
baseTempletClassify
.
getSubjectLabelId
());
GroupActivity4AppletDTO
groupActivity4AppletDTO
=
pcloudGroupActivityDao
.
getGroupActivity4Applet
(
baseTempletClassify
.
getFirstClassify
(),
baseTempletClassify
.
getSecondClassify
(),
baseTempletClassify
.
getGradeLabelId
(),
baseTempletClassify
.
getSubjectLabelId
(),
baseTempletClassify
.
getThirdClassify
());
if
(
groupActivity4AppletDTO
==
null
){
if
(
groupActivity4AppletDTO
==
null
){
return
new
GroupActivity4AppletDTO
();
return
new
GroupActivity4AppletDTO
();
}
}
...
@@ -569,20 +581,22 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -569,20 +581,22 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
}
}
@Override
@Override
public
PageBeanNew
<
AppletGroupManageDTO
>
getGroupListByBookTemplet
(
Long
wechatUserId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
currentPage
,
Integer
numPerPage
,
Long
agentId
)
{
public
PageBeanNew
<
AppletGroupManageDTO
>
getGroupListByBookTemplet
(
Long
wechatUserId
,
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Integer
currentPage
,
Integer
numPerPage
,
Long
agentId
,
Long
thirdClassify
)
{
// 处理分类和标签
// 处理分类和标签
if
(
null
==
firstClassify
&&
null
==
secondClassify
&&
null
==
gradeLabelId
&&
null
==
subjectLabelId
)
{
if
(
null
==
firstClassify
&&
null
==
secondClassify
&&
null
==
thirdClassify
&&
null
==
gradeLabelId
&&
null
==
subjectLabelId
)
{
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
0
,
new
ArrayList
<>());
return
new
PageBeanNew
<>(
currentPage
,
numPerPage
,
0
,
new
ArrayList
<>());
}
}
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
BaseTempletClassify
baseTempletClassify
=
new
BaseTempletClassify
();
baseTempletClassify
.
setFirstClassify
(
firstClassify
);
baseTempletClassify
.
setFirstClassify
(
firstClassify
);
baseTempletClassify
.
setSecondClassify
(
secondClassify
);
baseTempletClassify
.
setSecondClassify
(
secondClassify
);
baseTempletClassify
.
setThirdClassify
(
thirdClassify
);
baseTempletClassify
.
setGradeLabelId
(
gradeLabelId
);
baseTempletClassify
.
setGradeLabelId
(
gradeLabelId
);
baseTempletClassify
.
setSubjectLabelId
(
subjectLabelId
);
baseTempletClassify
.
setSubjectLabelId
(
subjectLabelId
);
rightsSettingBiz
.
setClassifyAndLabel
(
baseTempletClassify
);
rightsSettingBiz
.
setClassifyAndLabel
(
baseTempletClassify
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
map
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
map
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
map
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
map
.
put
(
"thirdClassify"
,
baseTempletClassify
.
getThirdClassify
());
map
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
map
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
map
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
map
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
map
.
put
(
"agentId"
,
agentId
);
map
.
put
(
"agentId"
,
agentId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/dao/PcloudGroupActivityDao.java
View file @
47ee3261
...
@@ -25,7 +25,7 @@ public interface PcloudGroupActivityDao extends BaseDao<PcloudGroupActivity> {
...
@@ -25,7 +25,7 @@ public interface PcloudGroupActivityDao extends BaseDao<PcloudGroupActivity> {
void
updateByPrimaryKeySelective
(
PcloudGroupActivity
entity
);
void
updateByPrimaryKeySelective
(
PcloudGroupActivity
entity
);
GroupActivity4AppletDTO
getGroupActivity4Applet
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
);
GroupActivity4AppletDTO
getGroupActivity4Applet
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
thirdClassify
);
List
<
GroupActivity4AppletDTO
>
getTishBookSchoolList
(
BaseTempletClassify
baseTempletClassify
,
Integer
limit
);
List
<
GroupActivity4AppletDTO
>
getTishBookSchoolList
(
BaseTempletClassify
baseTempletClassify
,
Integer
limit
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/dao/impl/PcloudGroupActivityDaoImpl.java
View file @
47ee3261
...
@@ -32,6 +32,7 @@ public class PcloudGroupActivityDaoImpl extends BaseDaoImpl<PcloudGroupActivity>
...
@@ -32,6 +32,7 @@ public class PcloudGroupActivityDaoImpl extends BaseDaoImpl<PcloudGroupActivity>
map
.
put
(
"ids"
,
groupActivityClassifyVO
.
getIds
());
map
.
put
(
"ids"
,
groupActivityClassifyVO
.
getIds
());
map
.
put
(
"firstClassify"
,
groupActivityClassifyVO
.
getFirstClassify
());
map
.
put
(
"firstClassify"
,
groupActivityClassifyVO
.
getFirstClassify
());
map
.
put
(
"secondClassify"
,
groupActivityClassifyVO
.
getSecondClassify
());
map
.
put
(
"secondClassify"
,
groupActivityClassifyVO
.
getSecondClassify
());
map
.
put
(
"thirdClassify"
,
groupActivityClassifyVO
.
getThirdClassify
());
map
.
put
(
"gradeLabelId"
,
groupActivityClassifyVO
.
getGradeLabelId
());
map
.
put
(
"gradeLabelId"
,
groupActivityClassifyVO
.
getGradeLabelId
());
map
.
put
(
"subjectLabelId"
,
groupActivityClassifyVO
.
getSubjectLabelId
());
map
.
put
(
"subjectLabelId"
,
groupActivityClassifyVO
.
getSubjectLabelId
());
getSessionTemplate
().
update
(
getStatement
(
"batchUpdateClassify"
),
map
);
getSessionTemplate
().
update
(
getStatement
(
"batchUpdateClassify"
),
map
);
...
@@ -61,10 +62,11 @@ public class PcloudGroupActivityDaoImpl extends BaseDaoImpl<PcloudGroupActivity>
...
@@ -61,10 +62,11 @@ public class PcloudGroupActivityDaoImpl extends BaseDaoImpl<PcloudGroupActivity>
}
}
@Override
@Override
public
GroupActivity4AppletDTO
getGroupActivity4Applet
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
)
{
public
GroupActivity4AppletDTO
getGroupActivity4Applet
(
Long
firstClassify
,
Long
secondClassify
,
Long
gradeLabelId
,
Long
subjectLabelId
,
Long
thirdClassify
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"firstClassify"
,
firstClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"secondClassify"
,
secondClassify
);
map
.
put
(
"thirdClassify"
,
thirdClassify
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"gradeLabelId"
,
gradeLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
map
.
put
(
"subjectLabelId"
,
subjectLabelId
);
return
super
.
getSqlSession
().
selectOne
(
getStatement
(
"getGroupActivity4Applet"
),
map
);
return
super
.
getSqlSession
().
selectOne
(
getStatement
(
"getGroupActivity4Applet"
),
map
);
...
@@ -75,6 +77,7 @@ public class PcloudGroupActivityDaoImpl extends BaseDaoImpl<PcloudGroupActivity>
...
@@ -75,6 +77,7 @@ public class PcloudGroupActivityDaoImpl extends BaseDaoImpl<PcloudGroupActivity>
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
map
.
put
(
"firstClassify"
,
baseTempletClassify
.
getFirstClassify
());
map
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
map
.
put
(
"secondClassify"
,
baseTempletClassify
.
getSecondClassify
());
map
.
put
(
"thirdClassify"
,
baseTempletClassify
.
getThirdClassify
());
map
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
map
.
put
(
"gradeLabelId"
,
baseTempletClassify
.
getGradeLabelId
());
map
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
map
.
put
(
"subjectLabelId"
,
baseTempletClassify
.
getSubjectLabelId
());
map
.
put
(
"limit"
,
(
limit
!=
null
?
limit
:
10
));
map
.
put
(
"limit"
,
(
limit
!=
null
?
limit
:
10
));
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/facade/PcloudGroupActivityFacade.java
View file @
47ee3261
...
@@ -105,6 +105,7 @@ public class PcloudGroupActivityFacade {
...
@@ -105,6 +105,7 @@ public class PcloudGroupActivityFacade {
@RequestParam
(
value
=
"joinType"
,
required
=
false
)
Integer
joinType
,
@RequestParam
(
value
=
"joinType"
,
required
=
false
)
Integer
joinType
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
Long
firstClassify
,
@RequestParam
(
value
=
"firstClassify"
,
required
=
false
)
Long
firstClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
Long
secondClassify
,
@RequestParam
(
value
=
"secondClassify"
,
required
=
false
)
Long
secondClassify
,
@RequestParam
(
value
=
"thirdClassify"
,
required
=
false
)
Long
thirdClassify
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"gradeLabelId"
,
required
=
false
)
Long
gradeLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"subjectLabelId"
,
required
=
false
)
Long
subjectLabelId
,
@RequestParam
(
value
=
"cityCode"
,
required
=
false
)
String
cityCode
,
@RequestParam
(
value
=
"cityCode"
,
required
=
false
)
String
cityCode
,
...
@@ -114,7 +115,7 @@ public class PcloudGroupActivityFacade {
...
@@ -114,7 +115,7 @@ public class PcloudGroupActivityFacade {
Map
<
String
,
Object
>
map
=
SessionUtil
.
getToken4Redis
(
token
);
Map
<
String
,
Object
>
map
=
SessionUtil
.
getToken4Redis
(
token
);
Long
agentId
=
(
Long
)
map
.
get
(
SessionUtil
.
RAY_AGENT_ID
);
Long
agentId
=
(
Long
)
map
.
get
(
SessionUtil
.
RAY_AGENT_ID
);
return
new
ResponseDto
<>(
pcloudGroupActivityBiz
.
queryGroupActivity
(
name
,
proLabelId
,
purLabelId
,
depLabelId
,
joinType
,
firstClassify
,
return
new
ResponseDto
<>(
pcloudGroupActivityBiz
.
queryGroupActivity
(
name
,
proLabelId
,
purLabelId
,
depLabelId
,
joinType
,
firstClassify
,
secondClassify
,
gradeLabelId
,
subjectLabelId
,
numPerPage
,
currentPage
,
cityCode
,
agentId
,
isChoose
));
secondClassify
,
thirdClassify
,
gradeLabelId
,
subjectLabelId
,
numPerPage
,
currentPage
,
cityCode
,
agentId
,
isChoose
));
}
}
@ApiOperation
(
"获取共读活动列表(弹窗)"
)
@ApiOperation
(
"获取共读活动列表(弹窗)"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/skill/facade/response/QueryGroupActivityResponseVO.java
View file @
47ee3261
...
@@ -68,6 +68,12 @@ public class QueryGroupActivityResponseVO {
...
@@ -68,6 +68,12 @@ public class QueryGroupActivityResponseVO {
@ApiModelProperty
(
"第二级类型标识名称"
)
@ApiModelProperty
(
"第二级类型标识名称"
)
private
String
secondClassifyName
;
private
String
secondClassifyName
;
@ApiModelProperty
(
"第三级类型标识"
)
private
Long
thirdClassify
;
@ApiModelProperty
(
"第三级类型标识名称"
)
private
String
thirdClassifyName
;
@ApiModelProperty
(
"年级标签id"
)
@ApiModelProperty
(
"年级标签id"
)
private
Long
gradeLabelId
;
private
Long
gradeLabelId
;
@ApiModelProperty
(
"年级标签名称"
)
@ApiModelProperty
(
"年级标签名称"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/timesscreen/service/impl/TimesBookServiceImpl.java
View file @
47ee3261
...
@@ -67,7 +67,8 @@ public class TimesBookServiceImpl implements TimesBookService {
...
@@ -67,7 +67,8 @@ public class TimesBookServiceImpl implements TimesBookService {
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"numPerPage"
)
Integer
numPerPage
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
)
{
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
)
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
throw
BookBizException
.
PAGE_PARAM_DELETION
;
throw
BookBizException
.
PAGE_PARAM_DELETION
;
}
}
...
@@ -79,6 +80,8 @@ public class TimesBookServiceImpl implements TimesBookService {
...
@@ -79,6 +80,8 @@ public class TimesBookServiceImpl implements TimesBookService {
paramMap
.
put
(
"templetId"
,
templetId
);
paramMap
.
put
(
"templetId"
,
templetId
);
paramMap
.
put
(
"secondTempletId"
,
secondTempletId
);
paramMap
.
put
(
"secondTempletId"
,
secondTempletId
);
paramMap
.
put
(
"secondTempletIds"
,
Optional
.
ofNullable
(
paramMap
.
get
(
"secondTempletId"
)).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
paramMap
.
put
(
"secondTempletIds"
,
Optional
.
ofNullable
(
paramMap
.
get
(
"secondTempletId"
)).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
paramMap
.
put
(
"thirdTempletId"
,
thirdTempletId
);
paramMap
.
put
(
"thirdTempletIds"
,
Optional
.
ofNullable
(
paramMap
.
get
(
"thirdTempletId"
)).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
return
ResponseHandleUtil
.
toResponse
(
bookBiz
.
listPageIncomeDetail4Times
(
new
PageParam
(
currentPage
,
numPerPage
),
paramMap
,
agentId
));
return
ResponseHandleUtil
.
toResponse
(
bookBiz
.
listPageIncomeDetail4Times
(
new
PageParam
(
currentPage
,
numPerPage
),
paramMap
,
agentId
));
}
}
...
@@ -90,7 +93,8 @@ public class TimesBookServiceImpl implements TimesBookService {
...
@@ -90,7 +93,8 @@ public class TimesBookServiceImpl implements TimesBookService {
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"typeCode"
,
required
=
false
)
String
typeCode
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"isFundSupport"
,
required
=
false
)
Integer
isFundSupport
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"templetId"
,
required
=
false
)
Long
templetId
,
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
)
{
@RequestParam
(
value
=
"secondTempletId"
,
required
=
false
)
Long
secondTempletId
,
@RequestParam
(
value
=
"thirdTempletId"
,
required
=
false
)
Long
thirdTempletId
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"keyWord"
,
keyWord
!=
null
&&
""
.
equals
(
keyWord
.
trim
())
?
null
:
keyWord
);
paramMap
.
put
(
"keyWord"
,
keyWord
!=
null
&&
""
.
equals
(
keyWord
.
trim
())
?
null
:
keyWord
);
paramMap
.
put
(
"channelId"
,
channelId
);
paramMap
.
put
(
"channelId"
,
channelId
);
...
@@ -99,6 +103,8 @@ public class TimesBookServiceImpl implements TimesBookService {
...
@@ -99,6 +103,8 @@ public class TimesBookServiceImpl implements TimesBookService {
paramMap
.
put
(
"templetId"
,
templetId
);
paramMap
.
put
(
"templetId"
,
templetId
);
paramMap
.
put
(
"secondTempletId"
,
secondTempletId
);
paramMap
.
put
(
"secondTempletId"
,
secondTempletId
);
paramMap
.
put
(
"secondTempletIds"
,
Optional
.
ofNullable
(
paramMap
.
get
(
"secondTempletId"
)).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
paramMap
.
put
(
"secondTempletIds"
,
Optional
.
ofNullable
(
paramMap
.
get
(
"secondTempletId"
)).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
paramMap
.
put
(
"thirdTempletId"
,
thirdTempletId
);
paramMap
.
put
(
"thirdTempletIds"
,
Optional
.
ofNullable
(
paramMap
.
get
(
"thirdTempletId"
)).
map
(
Lists:
:
newArrayList
).
orElse
(
Lists
.
newArrayList
()));
return
ResponseHandleUtil
.
toResponse
(
bookBiz
.
exportBookIncomeDetail4Times
(
paramMap
,
agentId
));
return
ResponseHandleUtil
.
toResponse
(
bookBiz
.
exportBookIncomeDetail4Times
(
paramMap
,
agentId
));
}
}
...
...
pcloud-service-book/src/main/resources/mapper/appeal/BookAppeal.Mapper.xml
View file @
47ee3261
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<result
column=
"CHANNEL_ID"
property=
"channelId"
jdbcType=
"BIGINT"
/>
<result
column=
"CHANNEL_ID"
property=
"channelId"
jdbcType=
"BIGINT"
/>
<result
column=
"TEMPLET_ID"
property=
"templetId"
jdbcType=
"BIGINT"
/>
<result
column=
"TEMPLET_ID"
property=
"templetId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"third_TEMPLET_ID"
property=
"thirdTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"REASON"
property=
"reason"
jdbcType=
"VARCHAR"
/>
<result
column=
"REASON"
property=
"reason"
jdbcType=
"VARCHAR"
/>
<result
column=
"DECLARANT"
property=
"declarant"
jdbcType=
"BIGINT"
/>
<result
column=
"DECLARANT"
property=
"declarant"
jdbcType=
"BIGINT"
/>
<result
column=
"PHONE"
property=
"phone"
jdbcType=
"VARCHAR"
/>
<result
column=
"PHONE"
property=
"phone"
jdbcType=
"VARCHAR"
/>
...
@@ -34,13 +35,13 @@
...
@@ -34,13 +35,13 @@
<insert
id=
"insert"
parameterType=
"bookAppeal"
useGeneratedKeys=
"true"
keyProperty=
"bookAppealId"
flushCache=
"true"
>
<insert
id=
"insert"
parameterType=
"bookAppeal"
useGeneratedKeys=
"true"
keyProperty=
"bookAppealId"
flushCache=
"true"
>
INSERT INTO `BOOK_APPEAL` (
INSERT INTO `BOOK_APPEAL` (
BOOK_ID, CHANNEL_ID, TEMPLET_ID,SECOND_TEMPLET_ID,REASON,DECLARANT, PHONE, APPEAL_SUBMIT_DATE, APPEAL_STATE, AUDIT_REASON, AUDIT_USER,add_type,
BOOK_ID, CHANNEL_ID, TEMPLET_ID,SECOND_TEMPLET_ID,REASON,DECLARANT, PHONE, APPEAL_SUBMIT_DATE, APPEAL_STATE, AUDIT_REASON, AUDIT_USER,add_type,
CREATED_USER,CREATED_DATE,LAST_MODIFIED_USER, LAST_MODIFIED_DATE, IS_BOOK_GROUP
CREATED_USER,CREATED_DATE,LAST_MODIFIED_USER, LAST_MODIFIED_DATE, IS_BOOK_GROUP
, third_TEMPLET_ID
)
)
VALUES (
VALUES (
#{bookId, jdbcType=BIGINT}, #{channelId, jdbcType=BIGINT}, #{templetId, jdbcType=BIGINT}, #{secondTempletId, jdbcType=BIGINT},#{reason, jdbcType=VARCHAR}, #{declarant, jdbcType=BIGINT},
#{bookId, jdbcType=BIGINT}, #{channelId, jdbcType=BIGINT}, #{templetId, jdbcType=BIGINT}, #{secondTempletId, jdbcType=BIGINT},#{reason, jdbcType=VARCHAR}, #{declarant, jdbcType=BIGINT},
#{phone, jdbcType=VARCHAR}, #{appealSubmitDate, jdbcType=TIMESTAMP}, #{appealState, jdbcType=BIGINT}, #{auditReason, jdbcType=VARCHAR},
#{phone, jdbcType=VARCHAR}, #{appealSubmitDate, jdbcType=TIMESTAMP}, #{appealState, jdbcType=BIGINT}, #{auditReason, jdbcType=VARCHAR},
#{auditUser, jdbcType=BIGINT},#{addType, jdbcType=BIT}, #{createdUser, jdbcType=BIGINT}, NOW(),
#{auditUser, jdbcType=BIGINT},#{addType, jdbcType=BIT}, #{createdUser, jdbcType=BIGINT}, NOW(),
#{lastModifiedUser, jdbcType=BIGINT}, NOW(), #{isBookGroup, jdbcType=BIT}
#{lastModifiedUser, jdbcType=BIGINT}, NOW(), #{isBookGroup, jdbcType=BIT}
, #{thirdTempletId}
)
)
</insert>
</insert>
...
@@ -85,7 +86,7 @@
...
@@ -85,7 +86,7 @@
<!-- 获取申诉详情 -->
<!-- 获取申诉详情 -->
<select
id=
"getById"
resultMap=
"bookAppealMap"
parameterType=
"long"
>
<select
id=
"getById"
resultMap=
"bookAppealMap"
parameterType=
"long"
>
SELECT
SELECT
BOOK_APPEAL_ID, PHONE,CHANNEL_ID, DECLARANT,REASON,BOOK_ID,VERSION,APPEAL_STATE,AUDIT_REASON,TEMPLET_ID,CREATED_USER,IS_BOOK_GROUP,ADD_TYPE,SECOND_TEMPLET_ID
BOOK_APPEAL_ID, PHONE,CHANNEL_ID, DECLARANT,REASON,BOOK_ID,VERSION,APPEAL_STATE,AUDIT_REASON,TEMPLET_ID,CREATED_USER,IS_BOOK_GROUP,ADD_TYPE,SECOND_TEMPLET_ID
, third_TEMPLET_ID
FROM
FROM
BOOK_APPEAL A
BOOK_APPEAL A
WHERE
WHERE
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletBooklist.xml
View file @
47ee3261
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"relate_agent_id"
property=
"relateAgentId"
jdbcType=
"BIGINT"
/>
<result
column=
"relate_agent_id"
property=
"relateAgentId"
jdbcType=
"BIGINT"
/>
...
@@ -32,24 +33,25 @@
...
@@ -32,24 +33,25 @@
<result
column=
"classify_id"
property=
"classifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"classify_id"
property=
"classifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, booklist_name, user_name, digest, display_pic, introduce_type, introduce_content, introduce_url,
id, booklist_name, user_name, digest, display_pic, introduce_type, introduce_content, introduce_url,
classify_id, create_time, update_time, first_classify, second_classify, grade_label_id, subject_label_id, relate_agent_id
classify_id, create_time, update_time, first_classify, second_classify,
third_classify,
grade_label_id, subject_label_id, relate_agent_id
</sql>
</sql>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.applet.entity.AppletBooklist"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.applet.entity.AppletBooklist"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into applet_booklist (
insert into applet_booklist (
booklist_name, user_name, digest, display_pic, introduce_type, introduce_content, introduce_url,
booklist_name, user_name, digest, display_pic, introduce_type, introduce_content, introduce_url,
classify_id, create_time, update_time, first_classify, second_classify, grade_label_id, subject_label_id,
classify_id, create_time, update_time, first_classify, second_classify,
third_classify,
grade_label_id, subject_label_id,
relate_agent_id
relate_agent_id
)
)
values (
values (
#{booklistName}, #{userName}, #{digest}, #{displayPic}, #{introduceType}, #{introduceContent}, #{introduceUrl},
#{booklistName}, #{userName}, #{digest}, #{displayPic}, #{introduceType}, #{introduceContent}, #{introduceUrl},
#{classifyId}, NOW(), NOW(), #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{classifyId}, NOW(), NOW(), #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{thirdClassify},
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, #{relateAgentId}
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, #{relateAgentId}
)
)
</insert>
</insert>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
</if>
</if>
first_classify = #{firstClassify,jdbcType=BIGINT},
first_classify = #{firstClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
third_classify = #{thirdClassify},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
relate_agent_id = #{relateAgentId},
relate_agent_id = #{relateAgentId},
...
@@ -126,6 +129,7 @@
...
@@ -126,6 +129,7 @@
a.classify_name classifyName,
a.classify_name classifyName,
b.first_classify firstClassify,
b.first_classify firstClassify,
b.second_classify secondClassify,
b.second_classify secondClassify,
b.third_classify thirdClassify,
b.grade_label_id gradeLabelId,
b.grade_label_id gradeLabelId,
b.subject_label_id subjectLabelId,
b.subject_label_id subjectLabelId,
b.relate_agent_id relateAgentId
b.relate_agent_id relateAgentId
...
@@ -145,6 +149,9 @@
...
@@ -145,6 +149,9 @@
<if
test=
"secondClassify!=null"
>
<if
test=
"secondClassify!=null"
>
AND b.second_classify =#{secondClassify}
AND b.second_classify =#{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and b.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND b.grade_label_id = #{gradeLabelId}
AND b.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -190,6 +197,7 @@
...
@@ -190,6 +197,7 @@
B.COVER_IMG coverImg,
B.COVER_IMG coverImg,
A.TEMPLET_ID templetId,
A.TEMPLET_ID templetId,
A.SECOND_TEMPLET_ID secondTempletId,
A.SECOND_TEMPLET_ID secondTempletId,
A.third_TEMPLET_ID thirdTempletId,
c.seq seq,
c.seq seq,
B.ISBN isbn,
B.ISBN isbn,
CONCAT('BK',A.BOOK_ID) uniqueNumber,
CONCAT('BK',A.BOOK_ID) uniqueNumber,
...
@@ -275,6 +283,7 @@
...
@@ -275,6 +283,7 @@
B.COVER_IMG coverImg,
B.COVER_IMG coverImg,
A.TEMPLET_ID templetId,
A.TEMPLET_ID templetId,
A.SECOND_TEMPLET_ID secondTempletId,
A.SECOND_TEMPLET_ID secondTempletId,
A.third_TEMPLET_ID thirdTempletId,
B.ISBN isbn,
B.ISBN isbn,
CONCAT('BK',A.BOOK_ID) uniqueNumber
CONCAT('BK',A.BOOK_ID) uniqueNumber
FROM
FROM
...
@@ -304,6 +313,9 @@
...
@@ -304,6 +313,9 @@
<if
test=
"secondClassify!=null"
>
<if
test=
"secondClassify!=null"
>
AND b.second_classify =#{secondClassify}
AND b.second_classify =#{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and b.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND b.grade_label_id = #{gradeLabelId}
AND b.grade_label_id = #{gradeLabelId}
</if>
</if>
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletGroupSearchRecord.Mapper.xml
View file @
47ee3261
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
c.join_group_type joinGroupType,
c.join_group_type joinGroupType,
g.TEMPLET_ID templetId,
g.TEMPLET_ID templetId,
g.SECOND_TEMPLET_ID secondTempletId,
g.SECOND_TEMPLET_ID secondTempletId,
g.third_TEMPLET_ID thirdTempletId,
IF(c.join_group_type=1 OR c.related_book_group_id>0,1,0) hasGroup,
IF(c.join_group_type=1 OR c.related_book_group_id>0,1,0) hasGroup,
c.related_book_group_id relatedBookGroupId
c.related_book_group_id relatedBookGroupId
FROM applet_group_search_record a
FROM applet_group_search_record a
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletNews.xml
View file @
47ee3261
...
@@ -222,6 +222,9 @@
...
@@ -222,6 +222,9 @@
<if
test=
"secondClassify!=null"
>
<if
test=
"secondClassify!=null"
>
AND category.second_classify =#{secondClassify}
AND category.second_classify =#{secondClassify}
</if>
</if>
<if
test=
"thirdClassify!=null"
>
AND category.third_classify =#{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND category.grade_label_id = #{gradeLabelId}
AND category.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -303,6 +306,9 @@
...
@@ -303,6 +306,9 @@
<if
test=
"secondClassify!=null"
>
<if
test=
"secondClassify!=null"
>
AND category.second_classify =#{secondClassify}
AND category.second_classify =#{secondClassify}
</if>
</if>
<if
test=
"thirdClassify!=null"
>
AND category.third_classify =#{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND category.grade_label_id = #{gradeLabelId}
AND category.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -369,6 +375,9 @@
...
@@ -369,6 +375,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and category.second_classify = #{secondClassify}
and category.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify!=null"
>
AND category.third_classify =#{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and category.grade_label_id = #{gradeLabelId}
and category.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -408,6 +417,9 @@
...
@@ -408,6 +417,9 @@
<if
test=
"secondClassify!=null"
>
<if
test=
"secondClassify!=null"
>
AND category.second_classify =#{secondClassify}
AND category.second_classify =#{secondClassify}
</if>
</if>
<if
test=
"thirdClassify!=null"
>
AND category.third_classify =#{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND category.grade_label_id = #{gradeLabelId}
AND category.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -574,6 +586,7 @@
...
@@ -574,6 +586,7 @@
n.create_time createTime,
n.create_time createTime,
n.first_classify firstClassify,
n.first_classify firstClassify,
n.second_classify secondClassify,
n.second_classify secondClassify,
n.third_classify thirdClassify,
n.grade_label_id gradeLabelId,
n.grade_label_id gradeLabelId,
n.subject_label_id subjectLabelId,
n.subject_label_id subjectLabelId,
n.rights_classify_id rightsClassifyId,
n.rights_classify_id rightsClassifyId,
...
@@ -601,6 +614,9 @@
...
@@ -601,6 +614,9 @@
<if
test=
"secondClassify!=null"
>
<if
test=
"secondClassify!=null"
>
AND category.second_classify =#{secondClassify}
AND category.second_classify =#{secondClassify}
</if>
</if>
<if
test=
"thirdClassify!=null"
>
AND category.third_classify =#{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND category.grade_label_id = #{gradeLabelId}
AND category.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -842,6 +858,9 @@
...
@@ -842,6 +858,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and category.second_classify = #{secondClassify}
and category.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify!=null"
>
AND category.third_classify =#{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and category.grade_label_id = #{gradeLabelId}
and category.grade_label_id = #{gradeLabelId}
</if>
</if>
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletNewsCategory.xml
View file @
47ee3261
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
</resultMap>
</resultMap>
...
@@ -19,19 +20,19 @@
...
@@ -19,19 +20,19 @@
<insert
id=
"insert"
parameterType=
"com.pcloud.book.applet.entity.AppletNewsCategory"
useGeneratedKeys=
"true"
<insert
id=
"insert"
parameterType=
"com.pcloud.book.applet.entity.AppletNewsCategory"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
keyProperty=
"id"
>
insert into applet_news_category (
insert into applet_news_category (
applet_news_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id
applet_news_id, creator, create_time, first_classify,second_classify,
third_classify,
grade_label_id, subject_label_id
)
)
values (
values (
#{appletNewId}, #{creator}, NOW(), #{firstClassify}, #{secondClassify}, #{gradeLabelId}, #{subjectLabelId}
#{appletNewId}, #{creator}, NOW(), #{firstClassify}, #{secondClassify}, #{
thirdClassify}, #{
gradeLabelId}, #{subjectLabelId}
)
)
</insert>
</insert>
<insert
id=
"batchCreate"
parameterType=
"list"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"batchCreate"
parameterType=
"list"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into applet_news_category (
insert into applet_news_category (
applet_news_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id)
applet_news_id, creator, create_time, first_classify,second_classify,
third_classify,
grade_label_id, subject_label_id)
values
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
( #{item.appletNewId}, #{item.creator}, NOW(), #{item.firstClassify}, #{item.secondClassify},
( #{item.appletNewId}, #{item.creator}, NOW(), #{item.firstClassify}, #{item.secondClassify},
#{item.thirdClassify},
#{item.gradeLabelId}, #{item.subjectLabelId} )
#{item.gradeLabelId}, #{item.subjectLabelId} )
</foreach>
</foreach>
</insert>
</insert>
...
@@ -45,6 +46,9 @@
...
@@ -45,6 +46,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
</if>
</if>
<if
test=
"thirdClassify != null"
>
third_classify = #{thirdClassify,jdbcType=BIGINT},
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
</if>
</if>
...
@@ -61,6 +65,7 @@
...
@@ -61,6 +65,7 @@
category.applet_news_id,
category.applet_news_id,
category.first_classify firstClassify,
category.first_classify firstClassify,
category.second_classify secondClassify,
category.second_classify secondClassify,
category.third_classify thirdClassify,
category.grade_label_id gradeLabelId,
category.grade_label_id gradeLabelId,
category.subject_label_id subjectLabelId,
category.subject_label_id subjectLabelId,
label.name gradeLabelName,
label.name gradeLabelName,
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletRecord.Mapper.xml
View file @
47ee3261
...
@@ -234,6 +234,7 @@
...
@@ -234,6 +234,7 @@
b.COVER_IMG coverImg,
b.COVER_IMG coverImg,
b.AUTHOR author,
b.AUTHOR author,
b.PUBLISH publish,
b.PUBLISH publish,
a.third_TEMPLET_ID thirdTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.TEMPLET_ID templetId,
a.TEMPLET_ID templetId,
d.join_group_type joinGroupType,
d.join_group_type joinGroupType,
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletRecordDayServe.Mapper.xml
View file @
47ee3261
...
@@ -190,6 +190,7 @@
...
@@ -190,6 +190,7 @@
b.COVER_IMG coverImg,
b.COVER_IMG coverImg,
b.AUTHOR author,
b.AUTHOR author,
b.PUBLISH publish,
b.PUBLISH publish,
a.third_TEMPLET_ID thirdTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.TEMPLET_ID templetId,
a.TEMPLET_ID templetId,
d.join_group_type joinGroupType,
d.join_group_type joinGroupType,
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletRecordServe.Mapper.xml
View file @
47ee3261
...
@@ -192,6 +192,7 @@
...
@@ -192,6 +192,7 @@
b.PUBLISH publish,
b.PUBLISH publish,
a.SECOND_TEMPLET_ID secondTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.TEMPLET_ID templetId,
a.TEMPLET_ID templetId,
a.third_TEMPLET_ID thirdTempletId,
d.join_group_type joinGroupType,
d.join_group_type joinGroupType,
d.id bookGroupId,
d.id bookGroupId,
b.ISBN isbn,
b.ISBN isbn,
...
...
pcloud-service-book/src/main/resources/mapper/applet/AppletUserBookcase.xml
View file @
47ee3261
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
b.AUTHOR author,
b.AUTHOR author,
b.PUBLISH publish,
b.PUBLISH publish,
a.SECOND_TEMPLET_ID secondTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.third_TEMPLET_ID thirdTempletId,
a.TEMPLET_ID templetId,
a.TEMPLET_ID templetId,
d.join_group_type joinGroupType,
d.join_group_type joinGroupType,
d.id bookGroupId,
d.id bookGroupId,
...
@@ -268,6 +269,7 @@
...
@@ -268,6 +269,7 @@
b.AUTHOR author,
b.AUTHOR author,
b.PUBLISH publish,
b.PUBLISH publish,
a.SECOND_TEMPLET_ID secondTempletId,
a.SECOND_TEMPLET_ID secondTempletId,
a.third_TEMPLET_ID thirdTempletId,
a.TEMPLET_ID templetId,
a.TEMPLET_ID templetId,
d.join_group_type joinGroupType,
d.join_group_type joinGroupType,
d.id bookGroupId,
d.id bookGroupId,
...
@@ -299,6 +301,7 @@
...
@@ -299,6 +301,7 @@
<select
id=
"getBookClassifyInfo"
parameterType=
"map"
resultType=
"com.pcloud.book.rightsSetting.entity.BaseTempletClassify"
>
<select
id=
"getBookClassifyInfo"
parameterType=
"map"
resultType=
"com.pcloud.book.rightsSetting.entity.BaseTempletClassify"
>
SELECT b.TEMPLET_ID firstClassify,
SELECT b.TEMPLET_ID firstClassify,
b.SECOND_TEMPLET_ID secondClassify,
b.SECOND_TEMPLET_ID secondClassify,
b.third_TEMPLET_ID thirdClassify,
b.GRA_LABEL_ID gradeLabelId,
b.GRA_LABEL_ID gradeLabelId,
b.SUB_LABEL_ID subjectLabelId,
b.SUB_LABEL_ID subjectLabelId,
b.vol_label_id volLabelId
b.vol_label_id volLabelId
...
@@ -317,7 +320,8 @@
...
@@ -317,7 +320,8 @@
<select
id=
"getLastReadBookInfo"
parameterType=
"map"
resultType=
"com.pcloud.book.rightsSetting.entity.BaseTempletClassify"
>
<select
id=
"getLastReadBookInfo"
parameterType=
"map"
resultType=
"com.pcloud.book.rightsSetting.entity.BaseTempletClassify"
>
SELECT b.TEMPLET_ID firstClassify,
SELECT b.TEMPLET_ID firstClassify,
b.SECOND_TEMPLET_ID secondClassify,
b.SECOND_TEMPLET_ID secondClassify,
b.GRA_LABEL_ID gradeLabelId,
b.third_TEMPLET_ID thirdClassify,
b.GRA_LABEL_ID gradeLabelId,
b.SUB_LABEL_ID subjectLabelId,
b.SUB_LABEL_ID subjectLabelId,
b.vol_label_id volLabelId
b.vol_label_id volLabelId
FROM applet_user_bookcase a
FROM applet_user_bookcase a
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
47ee3261
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
<result
column=
"unique_number"
property=
"bookUniqueNumber"
jdbcType=
"VARCHAR"
/>
<result
column=
"unique_number"
property=
"bookUniqueNumber"
jdbcType=
"VARCHAR"
/>
<result
column=
"edition"
property=
"edition"
jdbcType=
"VARCHAR"
/>
<result
column=
"edition"
property=
"edition"
jdbcType=
"VARCHAR"
/>
<result
column=
"minimumSupport"
property=
"minimumSupport"
jdbcType=
"BIT"
/>
<result
column=
"minimumSupport"
property=
"minimumSupport"
jdbcType=
"BIT"
/>
<result
column=
"third_templet_id"
property=
"thirdTempletId"
jdbcType=
"BIGINT"
/>
</resultMap>
</resultMap>
<resultMap
id=
"bookListPageMap"
type=
"bookDto"
extends =
"bookMap"
>
<resultMap
id=
"bookListPageMap"
type=
"bookDto"
extends =
"bookMap"
>
...
@@ -310,7 +311,7 @@
...
@@ -310,7 +311,7 @@
SELECT
SELECT
B.BOOK_ID, B.TYPE_CODE,B.ISBN, B.BOOK_NAME,T.TYPE_NAME, B.REMARK, B.AUTHOR, B.PUBLISH,
B.BOOK_ID, B.TYPE_CODE,B.ISBN, B.BOOK_NAME,T.TYPE_NAME, B.REMARK, B.AUTHOR, B.PUBLISH,
B.PUBLISH_DATE, B.COVER_IMG, B.AD_IMG, B.DETAIL, B.`VERSION`,B.BOOK_PRICE,B.ISSN,B.SERIAL_NUMBER,BA.IS_MAIN_EDITOR,
B.PUBLISH_DATE, B.COVER_IMG, B.AD_IMG, B.DETAIL, B.`VERSION`,B.BOOK_PRICE,B.ISSN,B.SERIAL_NUMBER,BA.IS_MAIN_EDITOR,
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT,START_TIME,END_TIME,BA.TEMPLET_ID,BA.SECOND_TEMPLET_ID,
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT,START_TIME,END_TIME,BA.TEMPLET_ID,BA.SECOND_TEMPLET_ID,
BA.third_templet_id,
BA.GRA_LABEL_ID,BA.SUB_LABEL_ID,BA.VER_LABEL_ID,BA.AREA_LABEL_ID, BA.IS_PRINT isPrint,
BA.GRA_LABEL_ID,BA.SUB_LABEL_ID,BA.VER_LABEL_ID,BA.AREA_LABEL_ID, BA.IS_PRINT isPrint,
BA.pro_label_id, BA.dep_label_id,BA.pur_label_id,BA.vol_label_id,if(G.ID IS NULL, 0, 1) isBookGroup, G.id BOOK_GROUP_ID,G.join_group_type,
BA.pro_label_id, BA.dep_label_id,BA.pur_label_id,BA.vol_label_id,if(G.ID IS NULL, 0, 1) isBookGroup, G.id BOOK_GROUP_ID,G.join_group_type,
BA.is_open_robot_process,BA.vol_label_id,b.unique_number,BA.CREATED_DATE,b.edition
BA.is_open_robot_process,BA.vol_label_id,b.unique_number,BA.CREATED_DATE,b.edition
...
@@ -586,6 +587,13 @@
...
@@ -586,6 +587,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
<if
test=
"isbns != null"
>
<if
test=
"isbns != null"
>
AND
AND
B.ISBN
<![CDATA[ <> ]]>
${isbns}
B.ISBN
<![CDATA[ <> ]]>
${isbns}
...
@@ -1237,6 +1245,13 @@
...
@@ -1237,6 +1245,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
<if
test=
"isFundSupport != null"
>
<if
test=
"isFundSupport != null"
>
AND
AND
BF.BOOK_FUND_ID IS NOT NULL
BF.BOOK_FUND_ID IS NOT NULL
...
@@ -1375,7 +1390,8 @@
...
@@ -1375,7 +1390,8 @@
ba.ADVISER_ID, ba.TEMPLET_ID, ba.CHANNEL_ID, ba.CREATED_DATE,
ba.ADVISER_ID, ba.TEMPLET_ID, ba.CHANNEL_ID, ba.CREATED_DATE,
bt.TYPE_NAME, ba.IS_PRINT isPrint,
bt.TYPE_NAME, ba.IS_PRINT isPrint,
ba.SECOND_TEMPLET_ID, ba.GRA_LABEL_ID,ba.SUB_LABEL_ID,ba.VER_LABEL_ID,ba.AREA_LABEL_ID,ba.vol_label_id,
ba.SECOND_TEMPLET_ID, ba.GRA_LABEL_ID,ba.SUB_LABEL_ID,ba.VER_LABEL_ID,ba.AREA_LABEL_ID,ba.vol_label_id,
la1.`name` graLabelName,la2.`name` subLabelName,la3.`name` verLabelName,la4.`name` areaLabelName,la5.`name` volLabelName
la1.`name` graLabelName,la2.`name` subLabelName,la3.`name` verLabelName,la4.`name` areaLabelName,la5.`name` volLabelName,
ba.third_TEMPLET_ID
FROM
FROM
BOOK_ADVISER ba
BOOK_ADVISER ba
JOIN
JOIN
...
@@ -1408,6 +1424,13 @@
...
@@ -1408,6 +1424,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
ba.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
<if
test=
"startDate!=null"
>
<if
test=
"startDate!=null"
>
AND ba.CREATED_DATE
<![CDATA[ > ]]>
#{startDate} AND ba.CREATED_DATE
<![CDATA[ < ]]>
#{endDate}
AND ba.CREATED_DATE
<![CDATA[ > ]]>
#{startDate} AND ba.CREATED_DATE
<![CDATA[ < ]]>
#{endDate}
</if>
</if>
...
@@ -1460,6 +1483,13 @@
...
@@ -1460,6 +1483,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
<if
test=
"startDate!=null"
>
<if
test=
"startDate!=null"
>
AND ba.CREATED_DATE
<![CDATA[ > ]]>
#{startDate} AND ba.CREATED_DATE
<![CDATA[ < ]]>
#{endDate}
AND ba.CREATED_DATE
<![CDATA[ > ]]>
#{startDate} AND ba.CREATED_DATE
<![CDATA[ < ]]>
#{endDate}
</if>
</if>
...
@@ -1855,6 +1885,13 @@
...
@@ -1855,6 +1885,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
GROUP BY A.BOOK_ID, A.CHANNEL_ID
GROUP BY A.BOOK_ID, A.CHANNEL_ID
ORDER BY
ORDER BY
A.LAST_MODIFIED_DATE DESC , A.BOOK_ADVISER_ID DESC
A.LAST_MODIFIED_DATE DESC , A.BOOK_ADVISER_ID DESC
...
@@ -1924,6 +1961,13 @@
...
@@ -1924,6 +1961,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
GROUP BY G.book_id, G.channel_id
GROUP BY G.book_id, G.channel_id
ORDER BY
ORDER BY
G.update_time DESC , G.id DESC
G.update_time DESC , G.id DESC
...
@@ -2038,6 +2082,13 @@
...
@@ -2038,6 +2082,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
<if
test=
"isFundSupport != null"
>
<if
test=
"isFundSupport != null"
>
AND
AND
BF.BOOK_FUND_ID IS NOT NULL
BF.BOOK_FUND_ID IS NOT NULL
...
@@ -2107,6 +2158,13 @@
...
@@ -2107,6 +2158,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
<if
test=
"isFundSupport != null"
>
<if
test=
"isFundSupport != null"
>
AND
AND
BF.BOOK_FUND_ID IS NOT NULL
BF.BOOK_FUND_ID IS NOT NULL
...
@@ -2127,7 +2185,8 @@
...
@@ -2127,7 +2185,8 @@
SELECT
SELECT
A.BOOK_ID, A.CHANNEL_ID, A.ADVISER_ID, A.IS_MAIN_EDITOR, T.TYPE_CODE, T.TYPE_NAME, B.ISBN, B.BOOK_NAME, B.REMARK,
A.BOOK_ID, A.CHANNEL_ID, A.ADVISER_ID, A.IS_MAIN_EDITOR, T.TYPE_CODE, T.TYPE_NAME, B.ISBN, B.BOOK_NAME, B.REMARK,
B.AUTHOR, B.PUBLISH, B.PUBLISH_DATE, B.COVER_IMG, B.ORIGIN_NAME, B.BOOK_PRICE, B.ISSN, B.BOOK_NUM, B.SERIAL_NUMBER,
B.AUTHOR, B.PUBLISH, B.PUBLISH_DATE, B.COVER_IMG, B.ORIGIN_NAME, B.BOOK_PRICE, B.ISSN, B.BOOK_NUM, B.SERIAL_NUMBER,
A.TEMPLET_ID,A.SECOND_TEMPLET_ID,A.LAST_MODIFIED_DATE LAST_MODIFIED_DATE,A.BOOK_ADVISER_ID,CONCAT('BK',A.BOOK_ID) uniqueNumber
A.TEMPLET_ID,A.SECOND_TEMPLET_ID,A.LAST_MODIFIED_DATE LAST_MODIFIED_DATE,A.BOOK_ADVISER_ID,CONCAT('BK',A.BOOK_ID) uniqueNumber,
A.THIRD_TEMPLET_ID
FROM
FROM
BOOK_ADVISER A
BOOK_ADVISER A
INNER JOIN BOOK B ON A.BOOK_ID = B.BOOK_ID AND A.IS_DELETE = 0 AND B.IS_DELETE = 0
INNER JOIN BOOK B ON A.BOOK_ID = B.BOOK_ID AND A.IS_DELETE = 0 AND B.IS_DELETE = 0
...
@@ -2159,6 +2218,10 @@
...
@@ -2159,6 +2218,10 @@
AND
AND
A.SECOND_TEMPLET_ID=#{secondTempletId}
A.SECOND_TEMPLET_ID=#{secondTempletId}
</if>
</if>
<if
test=
"thirdTempletId!=null "
>
AND
A.third_TEMPLET_ID=#{thirdTempletId}
</if>
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
AND
AND
A.ADVISER_ID in
A.ADVISER_ID in
...
@@ -2203,6 +2266,10 @@
...
@@ -2203,6 +2266,10 @@
AND
AND
A.SECOND_TEMPLET_ID=#{secondTempletId}
A.SECOND_TEMPLET_ID=#{secondTempletId}
</if>
</if>
<if
test=
"thirdTempletId!=null "
>
AND
A.third_TEMPLET_ID=#{thirdTempletId}
</if>
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
AND
AND
A.ADVISER_ID in
A.ADVISER_ID in
...
@@ -2235,6 +2302,10 @@
...
@@ -2235,6 +2302,10 @@
AND
AND
A.SECOND_TEMPLET_ID=#{secondTempletId}
A.SECOND_TEMPLET_ID=#{secondTempletId}
</if>
</if>
<if
test=
"thirdTempletId!=null "
>
AND
A.third_TEMPLET_ID=#{thirdTempletId}
</if>
GROUP BY A.BOOK_ID, A.CHANNEL_ID
GROUP BY A.BOOK_ID, A.CHANNEL_ID
ORDER BY
ORDER BY
A.LAST_MODIFIED_DATE DESC
A.LAST_MODIFIED_DATE DESC
...
@@ -2385,6 +2456,7 @@
...
@@ -2385,6 +2456,7 @@
IF(A.IS_MAIN_EDITOR is NULL, "", A.IS_MAIN_EDITOR) isMainEditor,
IF(A.IS_MAIN_EDITOR is NULL, "", A.IS_MAIN_EDITOR) isMainEditor,
IF(A.TEMPLET_ID is NULL, 0, A.TEMPLET_ID) templetId,
IF(A.TEMPLET_ID is NULL, 0, A.TEMPLET_ID) templetId,
IF(A.SECOND_TEMPLET_ID is NULL, 0, A.SECOND_TEMPLET_ID) secondTempletId,
IF(A.SECOND_TEMPLET_ID is NULL, 0, A.SECOND_TEMPLET_ID) secondTempletId,
IF(A.third_TEMPLET_ID is NULL, 0, A.third_TEMPLET_ID) thirdTempletId,
IF(A.LAST_MODIFIED_DATE is NULL, "2001-01-01 00:00:00", A.LAST_MODIFIED_DATE) lastModifiedDate,
IF(A.LAST_MODIFIED_DATE is NULL, "2001-01-01 00:00:00", A.LAST_MODIFIED_DATE) lastModifiedDate,
IF(A.BOOK_ADVISER_ID is NULL, 0, A.BOOK_ADVISER_ID) bookAdviserId,
IF(A.BOOK_ADVISER_ID is NULL, 0, A.BOOK_ADVISER_ID) bookAdviserId,
IF(A.BOOK_ADVISER_ID is NULL, 0, 1) isAdviserBook,
IF(A.BOOK_ADVISER_ID is NULL, 0, 1) isAdviserBook,
...
@@ -2490,7 +2562,8 @@
...
@@ -2490,7 +2562,8 @@
A.pro_label_id,
A.pro_label_id,
A.dep_label_id,
A.dep_label_id,
A.pur_label_id,
A.pur_label_id,
A.vol_label_id
A.vol_label_id,
A.third_TEMPLET_ID
FROM
FROM
BOOK_ADVISER A
BOOK_ADVISER A
INNER JOIN BOOK B ON A.BOOK_ID = B.BOOK_ID AND A.IS_DELETE = 0 AND B.IS_DELETE = 0
INNER JOIN BOOK B ON A.BOOK_ID = B.BOOK_ID AND A.IS_DELETE = 0 AND B.IS_DELETE = 0
...
@@ -2522,6 +2595,10 @@
...
@@ -2522,6 +2595,10 @@
AND
AND
A.SECOND_TEMPLET_ID=#{secondTempletId}
A.SECOND_TEMPLET_ID=#{secondTempletId}
</if>
</if>
<if
test=
"thirdTempletId!=null "
>
AND
A.third_TEMPLET_ID=#{thirdTempletId}
</if>
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
<if
test=
"adviserIds!=null and adviserIds.size()>0"
>
AND
AND
A.ADVISER_ID in
A.ADVISER_ID in
...
...
pcloud-service-book/src/main/resources/mapper/book/BookAdviser.Mapper.xml
View file @
47ee3261
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.pcloud.book.book.dao.impl.BookAdviserDaoImpl"
>
<mapper
namespace=
"com.pcloud.book.book.dao.impl.BookAdviserDaoImpl"
>
<!-- 书籍编辑实体DTO -->
<!-- 书籍编辑实体DTO -->
<resultMap
id=
"bookAdviserMap"
type=
"
b
ookAdviserDto"
>
<resultMap
id=
"bookAdviserMap"
type=
"
com.pcloud.book.book.dto.B
ookAdviserDto"
>
<id
column=
"BOOK_ADVISER_ID"
property=
"bookAdviserId"
jdbcType=
"BIGINT"
/>
<id
column=
"BOOK_ADVISER_ID"
property=
"bookAdviserId"
jdbcType=
"BIGINT"
/>
<result
column=
"BOOK_ID"
property=
"bookId"
jdbcType=
"BIGINT"
/>
<result
column=
"BOOK_ID"
property=
"bookId"
jdbcType=
"BIGINT"
/>
<result
column=
"ADVISER_ID"
property=
"adviserId"
jdbcType=
"BIGINT"
/>
<result
column=
"ADVISER_ID"
property=
"adviserId"
jdbcType=
"BIGINT"
/>
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<result
column=
"IS_MAIN_EDITOR"
property=
"isMainEditor"
jdbcType=
"BIT"
/>
<result
column=
"IS_MAIN_EDITOR"
property=
"isMainEditor"
jdbcType=
"BIT"
/>
<result
column=
"IS_DELETE"
property=
"isDelete"
jdbcType=
"BIT"
/>
<result
column=
"IS_DELETE"
property=
"isDelete"
jdbcType=
"BIT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"third_TEMPLET_ID"
property=
"thirdTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"GRA_LABEL_ID"
property=
"graLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"GRA_LABEL_ID"
property=
"graLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"SUB_LABEL_ID"
property=
"subLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"SUB_LABEL_ID"
property=
"subLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"VER_LABEL_ID"
property=
"verLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"VER_LABEL_ID"
property=
"verLabelId"
jdbcType=
"BIGINT"
/>
...
@@ -43,14 +44,14 @@
...
@@ -43,14 +44,14 @@
<!-- 新增书籍和编辑关联信息-->
<!-- 新增书籍和编辑关联信息-->
<insert
id=
"insert"
parameterType=
"bookAdviser"
useGeneratedKeys=
"true"
keyProperty=
"bookAdviserId"
flushCache=
"true"
>
<insert
id=
"insert"
parameterType=
"bookAdviser"
useGeneratedKeys=
"true"
keyProperty=
"bookAdviserId"
flushCache=
"true"
>
INSERT INTO BOOK_ADVISER (
INSERT INTO BOOK_ADVISER (
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID, SECOND_TEMPLET_ID,
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID, SECOND_TEMPLET_ID,
third_templet_id,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,pro_label_id, dep_label_id,pur_label_id,is_open_robot_process,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,pro_label_id, dep_label_id,pur_label_id,is_open_robot_process,
vol_label_id,LAST_MODIFIED_DATE
vol_label_id,LAST_MODIFIED_DATE
)
)
VALUES (
VALUES (
#{bookId, jdbcType=VARCHAR}, #{adviserId, jdbcType=VARCHAR}, #{channelId, jdbcType=VARCHAR},
#{bookId, jdbcType=VARCHAR}, #{adviserId, jdbcType=VARCHAR}, #{channelId, jdbcType=VARCHAR},
#{adviserId, jdbcType=BIGINT}, NOW(),#{isMainEditor, jdbcType=BIT},#{templetId, jdbcType=BIGINT},
#{adviserId, jdbcType=BIGINT}, NOW(),#{isMainEditor, jdbcType=BIT},#{templetId, jdbcType=BIGINT},
#{secondTempletId, jdbcType=BIGINT},#{graLabelId, jdbcType=BIGINT},#{subLabelId, jdbcType=BIGINT},
#{secondTempletId, jdbcType=BIGINT},#{
thirdTempletId},#{
graLabelId, jdbcType=BIGINT},#{subLabelId, jdbcType=BIGINT},
#{verLabelId, jdbcType=BIGINT},#{areaLabelId, jdbcType=BIGINT},#{proLabelId,jdbcType=BIGINT},
#{verLabelId, jdbcType=BIGINT},#{areaLabelId, jdbcType=BIGINT},#{proLabelId,jdbcType=BIGINT},
#{depLabelId,jdbcType=BIGINT},#{purLabelId,jdbcType=BIGINT},#{isOpenRobotProcess,jdbcType=BIT},
#{depLabelId,jdbcType=BIGINT},#{purLabelId,jdbcType=BIGINT},#{isOpenRobotProcess,jdbcType=BIT},
#{volLabelId},now()
#{volLabelId},now()
...
@@ -63,30 +64,22 @@
...
@@ -63,30 +64,22 @@
<if
test=
"secondTempletId!=null"
>
<if
test=
"secondTempletId!=null"
>
,SECOND_TEMPLET_ID=#{secondTempletId, jdbcType=BIGINT}
,SECOND_TEMPLET_ID=#{secondTempletId, jdbcType=BIGINT}
</if>
</if>
<if
test=
"secondTempletId!=null"
>
<if
test=
"thirdTempletId!=null"
>
,SECOND_TEMPLET_ID=#{secondTempletId, jdbcType=BIGINT}
,third_templet_id=#{thirdTempletId, jdbcType=BIGINT}
</if>
<if
test=
"secondTempletId!=null"
>
,SECOND_TEMPLET_ID=#{secondTempletId, jdbcType=BIGINT}
</if>
<if
test=
"secondTempletId!=null"
>
,SECOND_TEMPLET_ID=#{secondTempletId, jdbcType=BIGINT}
</if>
<if
test=
"secondTempletId!=null"
>
,SECOND_TEMPLET_ID=#{secondTempletId, jdbcType=BIGINT}
</if>
</if>
</insert>
</insert>
<!-- 批量新增书籍和编辑关联信息-->
<!-- 批量新增书籍和编辑关联信息-->
<insert
id=
"batchInsert"
parameterType=
"bookAdviser"
useGeneratedKeys=
"true"
keyProperty=
"bookAdviserId"
flushCache=
"true"
>
<insert
id=
"batchInsert"
parameterType=
"bookAdviser"
useGeneratedKeys=
"true"
keyProperty=
"bookAdviserId"
flushCache=
"true"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
";"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
";"
>
INSERT INTO BOOK_ADVISER (
INSERT INTO BOOK_ADVISER (
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID,SECOND_TEMPLET_ID,LAST_MODIFIED_DATE
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID,SECOND_TEMPLET_ID,LAST_MODIFIED_DATE
,third_TEMPLET_ID
)
)
VALUES
VALUES
(
(
#{item.bookId, jdbcType=VARCHAR}, #{item.adviserId, jdbcType=VARCHAR}, #{item.channelId, jdbcType=VARCHAR},
#{item.bookId, jdbcType=VARCHAR}, #{item.adviserId, jdbcType=VARCHAR}, #{item.channelId, jdbcType=VARCHAR},
#{item.adviserId, jdbcType=BIGINT}, NOW(),#{item.isMainEditor, jdbcType=BIT},#{item.templetId, jdbcType=BIGINT},#{item.secondTempletId, jdbcType=BIGINT},now()
#{item.adviserId, jdbcType=BIGINT}, NOW(),#{item.isMainEditor, jdbcType=BIT},#{item.templetId, jdbcType=BIGINT},#{item.secondTempletId, jdbcType=BIGINT},now()
, #{item.thirdTempletId}
) ON DUPLICATE KEY UPDATE IS_DELETE = 0,LAST_MODIFIED_DATE=now(),IS_MAIN_EDITOR=#{item.isMainEditor, jdbcType=BIT}
) ON DUPLICATE KEY UPDATE IS_DELETE = 0,LAST_MODIFIED_DATE=now(),IS_MAIN_EDITOR=#{item.isMainEditor, jdbcType=BIT}
<if
test=
"item.templetId!=null"
>
<if
test=
"item.templetId!=null"
>
,TEMPLET_ID=#{item.templetId, jdbcType=BIGINT}
,TEMPLET_ID=#{item.templetId, jdbcType=BIGINT}
...
@@ -94,6 +87,9 @@
...
@@ -94,6 +87,9 @@
<if
test=
"item.secondTempletId!=null"
>
<if
test=
"item.secondTempletId!=null"
>
,SECOND_TEMPLET_ID=#{item.secondTempletId, jdbcType=BIGINT}
,SECOND_TEMPLET_ID=#{item.secondTempletId, jdbcType=BIGINT}
</if>
</if>
<if
test=
"item.thirdTempletId!=null"
>
,third_TEMPLET_ID=#{item.thirdTempletId, jdbcType=BIGINT}
</if>
</foreach>
</foreach>
</insert>
</insert>
...
@@ -126,7 +122,7 @@
...
@@ -126,7 +122,7 @@
<select
id=
"getBase"
resultMap=
"bookAdviserMap"
parameterType=
"map"
>
<select
id=
"getBase"
resultMap=
"bookAdviserMap"
parameterType=
"map"
>
SELECT
SELECT
BOOK_ADVISER_ID, BOOK_ID, TEMPLET_ID, CHANNEL_ID, ADVISER_ID, IS_DELETE,
BOOK_ADVISER_ID, BOOK_ID, TEMPLET_ID, CHANNEL_ID, ADVISER_ID, IS_DELETE,
TEMPLET_ID,SECOND_TEMPLET_ID,
TEMPLET_ID,SECOND_TEMPLET_ID,
third_templet_id,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,is_open_robot_process,vol_label_id
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,is_open_robot_process,vol_label_id
FROM
FROM
BOOK_ADVISER
BOOK_ADVISER
...
@@ -475,6 +471,9 @@
...
@@ -475,6 +471,9 @@
<if
test=
"secondTempletId != null"
>
<if
test=
"secondTempletId != null"
>
,SECOND_TEMPLET_ID = #{secondTempletId}
,SECOND_TEMPLET_ID = #{secondTempletId}
</if>
</if>
<if
test=
"thirdTempletId != null"
>
,third_TEMPLET_ID = #{thirdTempletId}
</if>
<if
test=
"graLabelId!=null"
>
<if
test=
"graLabelId!=null"
>
,GRA_LABEL_ID = #{graLabelId, jdbcType=BIGINT}
,GRA_LABEL_ID = #{graLabelId, jdbcType=BIGINT}
</if>
</if>
...
@@ -691,7 +690,7 @@
...
@@ -691,7 +690,7 @@
<select
id=
"getOneMainBook"
parameterType=
"long"
resultMap=
"bookAdviserMap"
>
<select
id=
"getOneMainBook"
parameterType=
"long"
resultMap=
"bookAdviserMap"
>
SELECT
SELECT
BOOK_ADVISER_ID, BOOK_ID, TEMPLET_ID, CHANNEL_ID, ADVISER_ID, IS_DELETE,
BOOK_ADVISER_ID, BOOK_ID, TEMPLET_ID, CHANNEL_ID, ADVISER_ID, IS_DELETE,
TEMPLET_ID,SECOND_TEMPLET_ID,
TEMPLET_ID,SECOND_TEMPLET_ID,
third_templet_id,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,vol_label_id
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,vol_label_id
FROM book_adviser
FROM book_adviser
WHERE BOOK_ID=#{bookId}
WHERE BOOK_ID=#{bookId}
...
@@ -702,7 +701,7 @@
...
@@ -702,7 +701,7 @@
<select
id=
"getByBookGroupId"
parameterType=
"long"
resultMap=
"bookAdviserMap"
>
<select
id=
"getByBookGroupId"
parameterType=
"long"
resultMap=
"bookAdviserMap"
>
SELECT
SELECT
a.BOOK_ADVISER_ID, a.BOOK_ID, a.TEMPLET_ID, a.CHANNEL_ID, a.ADVISER_ID, a.IS_DELETE,
a.BOOK_ADVISER_ID, a.BOOK_ID, a.TEMPLET_ID, a.CHANNEL_ID, a.ADVISER_ID, a.IS_DELETE,
a.TEMPLET_ID,a.SECOND_TEMPLET_ID,
a.TEMPLET_ID,a.SECOND_TEMPLET_ID,
a.third_TEMPLET_ID,
a.GRA_LABEL_ID,a.SUB_LABEL_ID,a.VER_LABEL_ID,a.AREA_LABEL_ID,a.vol_label_id
a.GRA_LABEL_ID,a.SUB_LABEL_ID,a.VER_LABEL_ID,a.AREA_LABEL_ID,a.vol_label_id
FROM
FROM
book_adviser a
book_adviser a
...
@@ -986,6 +985,7 @@
...
@@ -986,6 +985,7 @@
SET
SET
TEMPLET_ID = #{templetId, jdbcType=BIGINT}
TEMPLET_ID = #{templetId, jdbcType=BIGINT}
,SECOND_TEMPLET_ID = #{secondTempletId, jdbcType=BIGINT}
,SECOND_TEMPLET_ID = #{secondTempletId, jdbcType=BIGINT}
,third_TEMPLET_ID = #{thirdTempletId, jdbcType=BIGINT}
,GRA_LABEL_ID = #{graLabelId, jdbcType=BIGINT}
,GRA_LABEL_ID = #{graLabelId, jdbcType=BIGINT}
,SUB_LABEL_ID = #{subLabelId, jdbcType=BIGINT}
,SUB_LABEL_ID = #{subLabelId, jdbcType=BIGINT}
,VER_LABEL_ID = #{verLabelId, jdbcType=BIGINT}
,VER_LABEL_ID = #{verLabelId, jdbcType=BIGINT}
...
@@ -1003,5 +1003,13 @@
...
@@ -1003,5 +1003,13 @@
CHANNEL_ID = #{channelId, jdbcType=BIGINT}
CHANNEL_ID = #{channelId, jdbcType=BIGINT}
</update>
</update>
<select
id=
"syncTempletId4ES"
resultType=
"com.pcloud.book.es.entity.ESBookAndAdviser"
>
select BOOK_ID AS bookId,
TEMPLET_ID AS templetId,
SECOND_TEMPLET_ID AS secondTempletId,
third_templet_id AS thirdTempletId
from book_adviser
group by BOOK_ID
</select>
</mapper>
</mapper>
pcloud-service-book/src/main/resources/mapper/copyright/BookAuthInfo.Mapper.xml
View file @
47ee3261
...
@@ -121,6 +121,13 @@
...
@@ -121,6 +121,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
GROUP BY A.BOOK_ID, A.CHANNEL_ID
GROUP BY A.BOOK_ID, A.CHANNEL_ID
ORDER BY
ORDER BY
I.LAST_MODIFIED_DATE DESC
I.LAST_MODIFIED_DATE DESC
...
@@ -180,6 +187,13 @@
...
@@ -180,6 +187,13 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"thirdTempletIds!=null and thirdTempletIds.size()>0"
>
AND
A.third_TEMPLET_ID in
<foreach
collection=
"thirdTempletIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
</if>
GROUP BY A.BOOK_ID, A.CHANNEL_ID
GROUP BY A.BOOK_ID, A.CHANNEL_ID
ORDER BY
ORDER BY
I.LAST_MODIFIED_DATE DESC
I.LAST_MODIFIED_DATE DESC
...
...
pcloud-service-book/src/main/resources/mapper/cultivate/CultivateRecord.xml
View file @
47ee3261
...
@@ -118,7 +118,8 @@
...
@@ -118,7 +118,8 @@
</select>
</select>
<select
id=
"getBookSearchRecord"
parameterType=
"map"
resultType=
"com.pcloud.book.book.vo.SearchBookVO"
>
<select
id=
"getBookSearchRecord"
parameterType=
"map"
resultType=
"com.pcloud.book.book.vo.SearchBookVO"
>
select a.id,a.content,a.book_id bookId ,b.book_name bookName,a.agent_id agentId,c.SECOND_TEMPLET_ID secondTempletId,b.publish ,c.ADVISER_ID adviserId,c.channel_id channelId
select a.id,a.content,a.book_id bookId ,b.book_name bookName,a.agent_id agentId,c.SECOND_TEMPLET_ID secondTempletId,c.third_TEMPLET_ID thirdTempletId,
b.publish ,c.ADVISER_ID adviserId,c.channel_id channelId
,a.create_time createTime,b.author,b.COVER_IMG coverImg, b.ISBN isbn
,a.create_time createTime,b.author,b.COVER_IMG coverImg, b.ISBN isbn
from search_record a,book b ,book_adviser c
from search_record a,book b ,book_adviser c
where a.book_id=b.book_id
where a.book_id=b.book_id
...
...
pcloud-service-book/src/main/resources/mapper/giftConpon/GiftCategory.xml
View file @
47ee3261
...
@@ -8,31 +8,32 @@
...
@@ -8,31 +8,32 @@
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, gift_package_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id
id, gift_package_id, creator, create_time, first_classify,second_classify,
third_classify,
grade_label_id, subject_label_id
</sql>
</sql>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.giftcoupon.entity.GiftCategory"
useGeneratedKeys=
"true"
<insert
id=
"insert"
parameterType=
"com.pcloud.book.giftcoupon.entity.GiftCategory"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
keyProperty=
"id"
>
insert into gift_category (
insert into gift_category (
gift_package_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id
gift_package_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id
,third_classify
)
)
values (
values (
#{giftPackageId}, #{creator}, NOW(), #{firstClassify}, #{secondClassify}, #{gradeLabelId}, #{subjectLabelId}
#{giftPackageId}, #{creator}, NOW(), #{firstClassify}, #{secondClassify}, #{gradeLabelId}, #{subjectLabelId}
, #{thirdClassify}
)
)
</insert>
</insert>
<insert
id=
"batchCreate"
parameterType=
"list"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"batchCreate"
parameterType=
"list"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into gift_category (
insert into gift_category (
gift_package_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id)
gift_package_id, creator, create_time, first_classify,second_classify, grade_label_id, subject_label_id
, third_classify
)
values
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
( #{item.giftPackageId}, #{item.creator}, NOW(), #{item.firstClassify}, #{item.secondClassify},
( #{item.giftPackageId}, #{item.creator}, NOW(), #{item.firstClassify}, #{item.secondClassify},
#{item.gradeLabelId}, #{item.subjectLabelId}
)
#{item.gradeLabelId}, #{item.subjectLabelId}
,#{item.thirdClassify}
)
</foreach>
</foreach>
</insert>
</insert>
...
@@ -42,6 +43,7 @@
...
@@ -42,6 +43,7 @@
category.gift_package_id,
category.gift_package_id,
category.first_classify firstClassify,
category.first_classify firstClassify,
category.second_classify secondClassify,
category.second_classify secondClassify,
category.third_classify thirdClassify,
category.grade_label_id gradeLabelId,
category.grade_label_id gradeLabelId,
category.subject_label_id subjectLabelId,
category.subject_label_id subjectLabelId,
label.name gradeLabelName,
label.name gradeLabelName,
...
@@ -58,6 +60,7 @@
...
@@ -58,6 +60,7 @@
category.gift_package_id giftPackageId,
category.gift_package_id giftPackageId,
category.first_classify firstClassify,
category.first_classify firstClassify,
category.second_classify secondClassify,
category.second_classify secondClassify,
category.third_classify thirdClassify,
category.grade_label_id gradeLabelId,
category.grade_label_id gradeLabelId,
category.subject_label_id subjectLabelId
category.subject_label_id subjectLabelId
from gift_category category
from gift_category category
...
@@ -88,6 +91,14 @@
...
@@ -88,6 +91,14 @@
${item}
${item}
</foreach>
</foreach>
and second_classify>0
and second_classify>0
union
select third_classify from
gift_category
where gift_package_id in
<foreach
collection=
"list"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
${item}
</foreach>
and third_classify>0
</select>
</select>
<select
id=
"getLabels"
parameterType=
"list"
resultType=
"Long"
>
<select
id=
"getLabels"
parameterType=
"list"
resultType=
"Long"
>
...
...
pcloud-service-book/src/main/resources/mapper/group/BookGroupClassify.Mapper.xml
View file @
47ee3261
...
@@ -1182,6 +1182,7 @@
...
@@ -1182,6 +1182,7 @@
c.pur_label_id AS purLabelId,
c.pur_label_id AS purLabelId,
0 firstClassify,
0 firstClassify,
0 secondClassify,
0 secondClassify,
0 thirdClassify,
0 gradeLabelId,
0 gradeLabelId,
0 subjectLabelId,
0 subjectLabelId,
0 groupType,
0 groupType,
...
@@ -1198,6 +1199,9 @@
...
@@ -1198,6 +1199,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
AND 1=2
AND 1=2
</if>
</if>
<if
test=
"thirdClassify != null"
>
AND 1=2
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND 1=2
AND 1=2
</if>
</if>
...
@@ -1218,6 +1222,7 @@
...
@@ -1218,6 +1222,7 @@
a.pur_label_id AS purLabelId,
a.pur_label_id AS purLabelId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify AS thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
a.group_type as groupType,
a.group_type as groupType,
...
@@ -1233,6 +1238,9 @@
...
@@ -1233,6 +1238,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
AND a.second_classify = #{secondClassify}
AND a.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and a.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
AND a.grade_label_id = #{gradeLabelId}
AND a.grade_label_id = #{gradeLabelId}
</if>
</if>
...
...
pcloud-service-book/src/main/resources/mapper/group/BookGroupMapper.xml
View file @
47ee3261
...
@@ -620,6 +620,7 @@
...
@@ -620,6 +620,7 @@
<result
column=
"BOOK_NAME"
property=
"bookName"
jdbcType=
"VARCHAR"
/>
<result
column=
"BOOK_NAME"
property=
"bookName"
jdbcType=
"VARCHAR"
/>
<result
column=
"TEMPLET_ID"
property=
"templetId"
jdbcType=
"BIGINT"
/>
<result
column=
"TEMPLET_ID"
property=
"templetId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"third_TEMPLET_ID"
property=
"thirdTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"ADVISER_ID"
property=
"adviserId"
jdbcType=
"BIGINT"
/>
<result
column=
"ADVISER_ID"
property=
"adviserId"
jdbcType=
"BIGINT"
/>
<result
column=
"CHANNEL_ID"
property=
"channelId"
jdbcType=
"BIGINT"
/>
<result
column=
"CHANNEL_ID"
property=
"channelId"
jdbcType=
"BIGINT"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
...
...
pcloud-service-book/src/main/resources/mapper/record/BookBrowseRecordMapper.xml
View file @
47ee3261
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<result
column=
"sub_Label_Id"
property=
"subLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"sub_Label_Id"
property=
"subLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"first_Classify_Id"
property=
"firstClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"first_Classify_Id"
property=
"firstClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"second_Classify_Id"
property=
"secondClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"second_Classify_Id"
property=
"secondClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"third_Classify_Id"
property=
"thirdClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"book_classify_id"
property=
"bookClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"book_classify_id"
property=
"bookClassifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"ip"
property=
"ip"
jdbcType=
"VARCHAR"
/>
<result
column=
"ip"
property=
"ip"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
...
@@ -23,7 +24,7 @@
...
@@ -23,7 +24,7 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, book_adviser_id, isbn, user_id, province, province_code, city, city_code, district,
id, book_adviser_id, isbn, user_id, province, province_code, city, city_code, district,
district_code, gra_Label__id, sub_Label_Id, first_Classify_Id, second_Classify_Id,
district_code, gra_Label__id, sub_Label_Id, first_Classify_Id, second_Classify_Id,
third_Classify_Id,
book_classify_id, ip, create_time, update_time
book_classify_id, ip, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Long"
>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Long"
>
...
@@ -120,14 +121,16 @@
...
@@ -120,14 +121,16 @@
user_id, province, province_code,
user_id, province, province_code,
city, city_code, district,
city, city_code, district,
district_code, gra_Label__id, sub_Label_Id,
district_code, gra_Label__id, sub_Label_Id,
first_Classify_Id, second_Classify_Id, book_classify_id,
first_Classify_Id, second_Classify_Id, third_Classify_Id,
book_classify_id,
ip, create_time, update_time, book_name, agent_id, book_id, adviser_id
ip, create_time, update_time, book_name, agent_id, book_id, adviser_id
)
)
values (#{id,jdbcType=BIGINT}, #{bookAdviserId,jdbcType=BIGINT}, #{isbn,jdbcType=VARCHAR},
values (#{id,jdbcType=BIGINT}, #{bookAdviserId,jdbcType=BIGINT}, #{isbn,jdbcType=VARCHAR},
#{userId,jdbcType=BIGINT}, #{province,jdbcType=VARCHAR}, #{provinceCode,jdbcType=VARCHAR},
#{userId,jdbcType=BIGINT}, #{province,jdbcType=VARCHAR}, #{provinceCode,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{cityCode,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{cityCode,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR},
#{districtCode,jdbcType=VARCHAR}, #{graLabelId,jdbcType=BIGINT}, #{subLabelId,jdbcType=BIGINT},
#{districtCode,jdbcType=VARCHAR}, #{graLabelId,jdbcType=BIGINT}, #{subLabelId,jdbcType=BIGINT},
#{firstClassifyId,jdbcType=BIGINT}, #{secondClassifyId,jdbcType=BIGINT}, #{bookClassifyId,jdbcType=BIGINT},
#{firstClassifyId,jdbcType=BIGINT}, #{secondClassifyId,jdbcType=BIGINT}, #{thirdClassifyId},
#{bookClassifyId,jdbcType=BIGINT},
#{ip,jdbcType=VARCHAR}, now(), now(), #{bookName}, #{agentId}, #{bookId}, #{adviserId}
#{ip,jdbcType=VARCHAR}, now(), now(), #{bookName}, #{agentId}, #{bookId}, #{adviserId}
)
)
on duplicate key
on duplicate key
...
@@ -140,6 +143,7 @@
...
@@ -140,6 +143,7 @@
sub_Label_Id = #{subLabelId,jdbcType=BIGINT},
sub_Label_Id = #{subLabelId,jdbcType=BIGINT},
first_Classify_Id = #{firstClassifyId,jdbcType=BIGINT},
first_Classify_Id = #{firstClassifyId,jdbcType=BIGINT},
second_Classify_Id = #{secondClassifyId,jdbcType=BIGINT},
second_Classify_Id = #{secondClassifyId,jdbcType=BIGINT},
third_Classify_Id = #{thirdClassifyId,jdbcType=BIGINT},
book_classify_id = #{bookClassifyId,jdbcType=BIGINT},
book_classify_id = #{bookClassifyId,jdbcType=BIGINT},
ip = #{ip,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
book_name = #{bookName},
book_name = #{bookName},
...
@@ -191,6 +195,9 @@
...
@@ -191,6 +195,9 @@
<if
test=
"secondClassifyId != null"
>
<if
test=
"secondClassifyId != null"
>
second_Classify_Id,
second_Classify_Id,
</if>
</if>
<if
test=
"thirdClassifyId != null"
>
third_Classify_Id,
</if>
<if
test=
"bookClassifyId != null"
>
<if
test=
"bookClassifyId != null"
>
book_classify_id,
book_classify_id,
</if>
</if>
...
@@ -247,6 +254,9 @@
...
@@ -247,6 +254,9 @@
<if
test=
"secondClassifyId != null"
>
<if
test=
"secondClassifyId != null"
>
#{secondClassifyId,jdbcType=BIGINT},
#{secondClassifyId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"thirdClassifyId != null"
>
#{thirdClassifyId,jdbcType=BIGINT},
</if>
<if
test=
"bookClassifyId != null"
>
<if
test=
"bookClassifyId != null"
>
#{bookClassifyId,jdbcType=BIGINT},
#{bookClassifyId,jdbcType=BIGINT},
</if>
</if>
...
@@ -303,6 +313,9 @@
...
@@ -303,6 +313,9 @@
<if
test=
"secondClassifyId != null"
>
<if
test=
"secondClassifyId != null"
>
second_Classify_Id = #{secondClassifyId,jdbcType=BIGINT},
second_Classify_Id = #{secondClassifyId,jdbcType=BIGINT},
</if>
</if>
<if
test=
"thirdClassifyId != null"
>
third_Classify_Id = #{thirdClassifyId,jdbcType=BIGINT},
</if>
<if
test=
"bookClassifyId != null"
>
<if
test=
"bookClassifyId != null"
>
book_classify_id = #{bookClassifyId,jdbcType=BIGINT},
book_classify_id = #{bookClassifyId,jdbcType=BIGINT},
</if>
</if>
...
@@ -333,6 +346,7 @@
...
@@ -333,6 +346,7 @@
sub_Label_Id = #{subLabelId,jdbcType=BIGINT},
sub_Label_Id = #{subLabelId,jdbcType=BIGINT},
first_Classify_Id = #{firstClassifyId,jdbcType=BIGINT},
first_Classify_Id = #{firstClassifyId,jdbcType=BIGINT},
second_Classify_Id = #{secondClassifyId,jdbcType=BIGINT},
second_Classify_Id = #{secondClassifyId,jdbcType=BIGINT},
third_Classify_Id = #{thirdClassifyId,jdbcType=BIGINT},
book_classify_id = #{bookClassifyId,jdbcType=BIGINT},
book_classify_id = #{bookClassifyId,jdbcType=BIGINT},
ip = #{ip,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingBookRelationMapper.xml
View file @
47ee3261
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<result
column=
"book_name"
property=
"bookName"
jdbcType=
"VARCHAR"
/>
<result
column=
"book_name"
property=
"bookName"
jdbcType=
"VARCHAR"
/>
<result
column=
"TEMPLET_ID"
property=
"templetId"
jdbcType=
"BIGINT"
/>
<result
column=
"TEMPLET_ID"
property=
"templetId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"SECOND_TEMPLET_ID"
property=
"secondTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"third_TEMPLET_ID"
property=
"thirdTempletId"
jdbcType=
"BIGINT"
/>
<result
column=
"GRA_LABEL_ID"
property=
"graLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"GRA_LABEL_ID"
property=
"graLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"SUB_LABEL_ID"
property=
"subLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"SUB_LABEL_ID"
property=
"subLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"VER_LABEL_ID"
property=
"verLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"VER_LABEL_ID"
property=
"verLabelId"
jdbcType=
"BIGINT"
/>
...
@@ -53,6 +54,7 @@
...
@@ -53,6 +54,7 @@
c.group_qrcode_url,
c.group_qrcode_url,
a.TEMPLET_ID,
a.TEMPLET_ID,
a.SECOND_TEMPLET_ID,
a.SECOND_TEMPLET_ID,
a.third_TEMPLET_ID,
a.GRA_LABEL_ID,
a.GRA_LABEL_ID,
a.SUB_LABEL_ID,
a.SUB_LABEL_ID,
a.VER_LABEL_ID,
a.VER_LABEL_ID,
...
@@ -196,6 +198,7 @@
...
@@ -196,6 +198,7 @@
c.group_qrcode_url,
c.group_qrcode_url,
a.TEMPLET_ID,
a.TEMPLET_ID,
a.SECOND_TEMPLET_ID,
a.SECOND_TEMPLET_ID,
a.third_templet_id,
a.GRA_LABEL_ID,
a.GRA_LABEL_ID,
a.SUB_LABEL_ID,
a.SUB_LABEL_ID,
a.VER_LABEL_ID,
a.VER_LABEL_ID,
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingItemMapper.xml
View file @
47ee3261
...
@@ -77,6 +77,9 @@
...
@@ -77,6 +77,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and c.second_classify = #{secondClassify}
and c.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and c.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and c.grade_label_id = #{gradeLabelId}
and c.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -240,7 +243,8 @@
...
@@ -240,7 +243,8 @@
c.create_time AS createTime,
c.create_time AS createTime,
c.first_classify AS firstClassify,
c.first_classify AS firstClassify,
c.second_classify AS secondClassify,
c.second_classify AS secondClassify,
c.grade_label_id AS gradeLabelId,
c.third_classify as thirdClassify,
c.grade_label_id AS gradeLabelId,
c.subject_label_id AS subjectLabelId,
c.subject_label_id AS subjectLabelId,
c.rights_classify_id AS rightsClassifyId,
c.rights_classify_id AS rightsClassifyId,
c.jump_type AS jumpType,
c.jump_type AS jumpType,
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingMapper.xml
View file @
47ee3261
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<result
column=
"count"
property=
"count"
jdbcType=
"INTEGER"
/>
<result
column=
"count"
property=
"count"
jdbcType=
"INTEGER"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
...
@@ -42,6 +43,7 @@
...
@@ -42,6 +43,7 @@
<result
column=
"count"
property=
"count"
jdbcType=
"INTEGER"
/>
<result
column=
"count"
property=
"count"
jdbcType=
"INTEGER"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
...
@@ -69,7 +71,7 @@
...
@@ -69,7 +71,7 @@
</collection>
</collection>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id,rights_number, introduce, detail, count, first_classify, second_classify, grade_label_id, subject_label_id,
id,rights_number, introduce, detail, count, first_classify, second_classify,
third_classify,
grade_label_id, subject_label_id,
create_time, update_time, enable_group_service, rights_setting_type, book_id
create_time, update_time, enable_group_service, rights_setting_type, book_id
,online_course_open,learning_tool_open,draw_open,read_type_title, vol_label_id,
,online_course_open,learning_tool_open,draw_open,read_type_title, vol_label_id,
reading_guide,guide_title,guide_type,guide_id,guide_pic,ver_label_id, show_state, agent_id, guide_link_url,
reading_guide,guide_title,guide_type,guide_id,guide_pic,ver_label_id, show_state, agent_id, guide_link_url,
...
@@ -77,14 +79,14 @@
...
@@ -77,14 +79,14 @@
</sql>
</sql>
<sql
id=
"Base_Column_List_own"
>
<sql
id=
"Base_Column_List_own"
>
r.id,r.rights_number, r.introduce, r.detail, r.count, r.first_classify, r.second_classify, r.grade_label_id, r.subject_label_id,
r.id,r.rights_number, r.introduce, r.detail, r.count, r.first_classify, r.second_classify, r.
third_classify, r.
grade_label_id, r.subject_label_id,
r.create_time, r.update_time, r.enable_group_service, r.rights_setting_type, r.book_id
r.create_time, r.update_time, r.enable_group_service, r.rights_setting_type, r.book_id
,r.online_course_open,r.learning_tool_open,r.draw_open,r.read_type_title,r.vol_label_id,r.ver_label_id, r.show_state,
,r.online_course_open,r.learning_tool_open,r.draw_open,r.read_type_title,r.vol_label_id,r.ver_label_id, r.show_state,
r.update_user_id, r.update_user_id
r.update_user_id, r.update_user_id
</sql>
</sql>
<sql
id=
"Base_Column_List_1"
>
<sql
id=
"Base_Column_List_1"
>
r.id,r.rights_number, r.introduce, r.detail, r.count, r.first_classify, r.second_classify, r.grade_label_id, r.subject_label_id,
r.id,r.rights_number, r.introduce, r.detail, r.count, r.first_classify, r.second_classify,
r.third_classify,
r.grade_label_id, r.subject_label_id,
r.create_time, r.update_time, r.enable_group_service, r.rights_setting_type, b.book_id
r.create_time, r.update_time, r.enable_group_service, r.rights_setting_type, b.book_id
,r.online_course_open,r.learning_tool_open,r.draw_open,r.read_type_title,r.vol_label_id,r.ver_label_id, r.update_user_id, r.update_user_id
,r.online_course_open,r.learning_tool_open,r.draw_open,r.read_type_title,r.vol_label_id,r.ver_label_id, r.update_user_id, r.update_user_id
</sql>
</sql>
...
@@ -101,13 +103,13 @@
...
@@ -101,13 +103,13 @@
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.rightsSetting.entity.RightsSetting"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.rightsSetting.entity.RightsSetting"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into rights_setting (rights_number,introduce, detail,
insert into rights_setting (rights_number,introduce, detail,
count, first_classify, second_classify,
count, first_classify, second_classify,
third_classify,
grade_label_id, subject_label_id, create_time,
grade_label_id, subject_label_id, create_time,
update_time, enable_group_service, rights_setting_type, book_id,
update_time, enable_group_service, rights_setting_type, book_id,
online_course_open,learning_tool_open,draw_open,read_type_title, vol_label_id,
online_course_open,learning_tool_open,draw_open,read_type_title, vol_label_id,
reading_guide,guide_title,guide_type,guide_id,guide_pic,ver_label_id, agent_id, guide_link_url,create_user_id)
reading_guide,guide_title,guide_type,guide_id,guide_pic,ver_label_id, agent_id, guide_link_url,create_user_id)
values ( #{rightsNumber,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, #{detail,jdbcType=VARCHAR},
values ( #{rightsNumber,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, #{detail,jdbcType=VARCHAR},
#{count,jdbcType=INTEGER}, #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{count,jdbcType=INTEGER}, #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{thirdClassify},
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, now(),
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, now(),
now(), #{enableGroupService}, #{rightsSettingType}, #{bookId},
now(), #{enableGroupService}, #{rightsSettingType}, #{bookId},
#{onlineCourseOpen},#{learningToolOpen},#{drawNowOpen},#{readTypeTitle}, #{volLabelId},
#{onlineCourseOpen},#{learningToolOpen},#{drawNowOpen},#{readTypeTitle}, #{volLabelId},
...
@@ -134,6 +136,9 @@
...
@@ -134,6 +136,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
</if>
</if>
<if
test=
"thirdClassify != null"
>
third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
</if>
</if>
...
@@ -204,6 +209,7 @@
...
@@ -204,6 +209,7 @@
count = #{count,jdbcType=INTEGER},
count = #{count,jdbcType=INTEGER},
first_classify = #{firstClassify,jdbcType=BIGINT},
first_classify = #{firstClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
third_classify = #{thirdClassify},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
update_time = now(),
update_time = now(),
...
@@ -238,6 +244,9 @@
...
@@ -238,6 +244,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and second_classify = #{secondClassify}
and second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and grade_label_id = #{gradeLabelId}
and grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -268,7 +277,7 @@
...
@@ -268,7 +277,7 @@
<select
id=
"listBookRightsSettingPage"
parameterType=
"map"
resultMap=
"DtoResultMap4Book"
>
<select
id=
"listBookRightsSettingPage"
parameterType=
"map"
resultMap=
"DtoResultMap4Book"
>
select
select
r.id,r.rights_number, r.introduce, r.detail, r.count, r.first_classify, r.second_classify, r.grade_label_id, r.subject_label_id,
r.id,r.rights_number, r.introduce, r.detail, r.count, r.first_classify, r.second_classify, r.
third_classify, r.
grade_label_id, r.subject_label_id,
r.create_time, r.update_time, r.enable_group_service, r.rights_setting_type, r.book_id, b.BOOK_NAME, r.vol_label_id,
r.create_time, r.update_time, r.enable_group_service, r.rights_setting_type, r.book_id, b.BOOK_NAME, r.vol_label_id,
r.ver_label_id, r.show_state,
r.ver_label_id, r.show_state,
b.isbn,
b.isbn,
...
@@ -297,6 +306,9 @@
...
@@ -297,6 +306,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and a.SECOND_TEMPLET_ID = #{secondClassify}
and a.SECOND_TEMPLET_ID = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and a.third_templet_id = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and a.GRA_LABEL_ID = #{gradeLabelId}
and a.GRA_LABEL_ID = #{gradeLabelId}
</if>
</if>
...
@@ -326,6 +338,9 @@
...
@@ -326,6 +338,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and second_classify = #{secondClassify}
and second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and grade_label_id = #{gradeLabelId}
and grade_label_id = #{gradeLabelId}
</if>
</if>
...
...
pcloud-service-book/src/main/resources/mapper/skill/PcloudGroupActivityDao.xml
View file @
47ee3261
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<result
column=
"is_delete"
property=
"isDelete"
jdbcType=
"BIT"
/>
<result
column=
"is_delete"
property=
"isDelete"
jdbcType=
"BIT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"first_classify"
property=
"firstClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"second_classify"
property=
"secondClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"third_classify"
property=
"thirdClassify"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"grade_label_id"
property=
"gradeLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"subject_label_id"
property=
"subjectLabelId"
jdbcType=
"BIGINT"
/>
<result
column=
"media_id"
property=
"mediaId"
jdbcType=
"VARCHAR"
/>
<result
column=
"media_id"
property=
"mediaId"
jdbcType=
"VARCHAR"
/>
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
id, name, description, join_type, group_pic, pro_label_id, dep_label_id,
id, name, description, join_type, group_pic, pro_label_id, dep_label_id,
pur_label_id, book_group_classify_id,
pur_label_id, book_group_classify_id,
create_time, create_user, update_time, update_user, is_delete,
create_time, create_user, update_time, update_user, is_delete,
first_classify, second_classify, grade_label_id, subject_label_id,media_id, agent_id
first_classify, second_classify,
third_classify,
grade_label_id, subject_label_id,media_id, agent_id
</sql>
</sql>
<update
id=
"batchUpdateClassify"
parameterType=
"map"
>
<update
id=
"batchUpdateClassify"
parameterType=
"map"
>
...
@@ -39,6 +40,7 @@
...
@@ -39,6 +40,7 @@
SET
SET
first_classify = #{firstClassify,jdbcType=BIGINT},
first_classify = #{firstClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
third_classify = #{thirdClassify},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
update_time=NOW()
update_time=NOW()
...
@@ -97,6 +99,9 @@
...
@@ -97,6 +99,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and second_classify = #{secondClassify}
and second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and grade_label_id = #{gradeLabelId}
and grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -127,6 +132,7 @@
...
@@ -127,6 +132,7 @@
b.classify AS classifyName,
b.classify AS classifyName,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify AS thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
a.number,
a.number,
...
@@ -164,6 +170,9 @@
...
@@ -164,6 +170,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and a.second_classify = #{secondClassify}
and a.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and a.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and a.grade_label_id = #{gradeLabelId}
and a.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -253,6 +262,7 @@
...
@@ -253,6 +262,7 @@
c.book_group_id bookGroupId,
c.book_group_id bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
d.related_book_group_id AS relatedBookGroupId,
d.related_book_group_id AS relatedBookGroupId,
...
@@ -276,6 +286,9 @@
...
@@ -276,6 +286,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and a.second_classify = #{secondClassify}
and a.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and a.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and a.grade_label_id = #{gradeLabelId}
and a.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -313,6 +326,7 @@
...
@@ -313,6 +326,7 @@
b.classify AS groupName,
b.classify AS groupName,
a.first_classify,
a.first_classify,
a.second_classify,
a.second_classify,
a.third_classify,
a.grade_label_id,
a.grade_label_id,
a.subject_label_id,
a.subject_label_id,
a.is_show,
a.is_show,
...
@@ -339,6 +353,7 @@
...
@@ -339,6 +353,7 @@
c.book_group_id bookGroupId,
c.book_group_id bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
'GROUP' as serveType,
'GROUP' as serveType,
...
@@ -373,6 +388,7 @@
...
@@ -373,6 +388,7 @@
c.book_group_id bookGroupId,
c.book_group_id bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
IFNULL(case c.price when a.group_type = 1 then 0 else c.price END, 0) price,
IFNULL(case c.price when a.group_type = 1 then 0 else c.price END, 0) price,
...
@@ -412,6 +428,7 @@
...
@@ -412,6 +428,7 @@
null bookGroupId,
null bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
c.price AS price,
c.price AS price,
...
@@ -446,6 +463,7 @@
...
@@ -446,6 +463,7 @@
c.book_group_id bookGroupId,
c.book_group_id bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId
a.subject_label_id AS subjectLabelId
FROM
FROM
...
@@ -460,6 +478,9 @@
...
@@ -460,6 +478,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and a.second_classify = #{secondClassify}
and a.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and a.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and a.grade_label_id = #{gradeLabelId}
and a.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -476,13 +497,13 @@
...
@@ -476,13 +497,13 @@
description, join_type, group_pic, pro_label_id, dep_label_id,
description, join_type, group_pic, pro_label_id, dep_label_id,
pur_label_id, book_group_classify_id, create_time,
pur_label_id, book_group_classify_id, create_time,
create_user, update_time, update_user,
create_user, update_time, update_user,
is_delete, first_classify, second_classify, grade_label_id, subject_label_id,number,
is_delete, first_classify, second_classify,
third_classify,
grade_label_id, subject_label_id,number,
group_type,group_extLink, agent_id)
group_type,group_extLink, agent_id)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{desc,jdbcType=VARCHAR}, #{joinType,jdbcType=INTEGER}, #{groupPic,jdbcType=VARCHAR}, #{proLabelId,jdbcType=INTEGER}, #{depLabelId,jdbcType=INTEGER},
#{desc,jdbcType=VARCHAR}, #{joinType,jdbcType=INTEGER}, #{groupPic,jdbcType=VARCHAR}, #{proLabelId,jdbcType=INTEGER}, #{depLabelId,jdbcType=INTEGER},
#{purLabelId,jdbcType=INTEGER}, #{bookGroupClassifyId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{purLabelId,jdbcType=INTEGER}, #{bookGroupClassifyId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
#{createUser,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER},
#{isDelete,jdbcType=BIT}, #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{isDelete,jdbcType=BIT}, #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{thirdClassify},
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, #{number,jdbcType=BIGINT},
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, #{number,jdbcType=BIGINT},
#{groupType,jdbcType=BIGINT}, #{groupExtLink,jdbcType=VARCHAR}, #{agentId})
#{groupType,jdbcType=BIGINT}, #{groupExtLink,jdbcType=VARCHAR}, #{agentId})
</insert>
</insert>
...
@@ -545,6 +566,7 @@
...
@@ -545,6 +566,7 @@
</if>
</if>
first_classify = #{firstClassify,jdbcType=BIGINT},
first_classify = #{firstClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
third_classify = #{thirdClassify},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
</set>
</set>
...
@@ -567,6 +589,7 @@
...
@@ -567,6 +589,7 @@
is_delete = #{isDelete,jdbcType=BIT},
is_delete = #{isDelete,jdbcType=BIT},
first_classify = #{firstClassify,jdbcType=BIGINT},
first_classify = #{firstClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
second_classify = #{secondClassify,jdbcType=BIGINT},
third_classify = #{thirdClassify},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
grade_label_id = #{gradeLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
is_show = #{isShow,jdbcType=BIT},
is_show = #{isShow,jdbcType=BIT},
...
@@ -600,6 +623,7 @@
...
@@ -600,6 +623,7 @@
c.book_group_id bookGroupId,
c.book_group_id bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
c.price,
c.price,
...
@@ -620,6 +644,9 @@
...
@@ -620,6 +644,9 @@
<if
test=
"secondClassify != null"
>
<if
test=
"secondClassify != null"
>
and a.second_classify = #{secondClassify}
and a.second_classify = #{secondClassify}
</if>
</if>
<if
test=
"thirdClassify != null"
>
and a.third_classify = #{thirdClassify}
</if>
<if
test=
"gradeLabelId != null"
>
<if
test=
"gradeLabelId != null"
>
and a.grade_label_id = #{gradeLabelId}
and a.grade_label_id = #{gradeLabelId}
</if>
</if>
...
@@ -654,6 +681,7 @@
...
@@ -654,6 +681,7 @@
c.book_group_id bookGroupId,
c.book_group_id bookGroupId,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
c.price,
c.price,
...
@@ -692,6 +720,7 @@
...
@@ -692,6 +720,7 @@
b.classify AS classifyName,
b.classify AS classifyName,
a.first_classify AS firstClassify,
a.first_classify AS firstClassify,
a.second_classify AS secondClassify,
a.second_classify AS secondClassify,
a.third_classify as thirdClassify,
a.grade_label_id AS gradeLabelId,
a.grade_label_id AS gradeLabelId,
a.subject_label_id AS subjectLabelId,
a.subject_label_id AS subjectLabelId,
a.number,
a.number,
...
...
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