记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
7f34a48c
Commit
7f34a48c
authored
Aug 11, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加草莓500里的文件
parent
b4d10863
Changes
33
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
1205 additions
and
155 deletions
+1205
-155
SweetConstant.java
...a/com/liquidnet/service/sweet/constant/SweetConstant.java
+15
-7
ISweetManualArtistsFiveService.java
...ce/sweet/service/five/ISweetManualArtistsFiveService.java
+6
-5
ISweetManualFiveService.java
...t/service/sweet/service/five/ISweetManualFiveService.java
+5
-5
ISweetManualNotifyFiveService.java
...ice/sweet/service/five/ISweetManualNotifyFiveService.java
+4
-4
ISweetManualShopFiveService.java
...rvice/sweet/service/five/ISweetManualShopFiveService.java
+4
-4
ISweetManualSortFiveService.java
...rvice/sweet/service/five/ISweetManualSortFiveService.java
+3
-3
ISweetRichtextFiveService.java
...service/sweet/service/five/ISweetRichtextFiveService.java
+3
-3
ISweetUserRelationFiveService.java
...ice/sweet/service/five/ISweetUserRelationFiveService.java
+2
-2
SweetManualShopFiveAllVo.java
.../liquidnet/service/sweet/vo/SweetManualShopFiveAllVo.java
+30
-0
SweetManualArtistsFiveMapper.java
...et/service/sweet/mapper/SweetManualArtistsFiveMapper.java
+9
-7
SweetManualFiveMapper.java
...liquidnet/service/sweet/mapper/SweetManualFiveMapper.java
+9
-7
SweetManualNotifyFiveMapper.java
...net/service/sweet/mapper/SweetManualNotifyFiveMapper.java
+3
-2
SweetManualShopFiveMapper.java
...idnet/service/sweet/mapper/SweetManualShopFiveMapper.java
+3
-2
SweetManualSortFiveMapper.java
...idnet/service/sweet/mapper/SweetManualSortFiveMapper.java
+3
-2
SweetRichtextFiveMapper.java
...quidnet/service/sweet/mapper/SweetRichtextFiveMapper.java
+3
-2
SweetUserRelationFiveMapper.java
...net/service/sweet/mapper/SweetUserRelationFiveMapper.java
+3
-2
SweetAppletFiveController.java
...vice/sweet/controller/five/SweetAppletFiveController.java
+31
-33
SweetManualArtistsFiveController.java
...eet/controller/five/SweetManualArtistsFiveController.java
+12
-12
SweetManualFiveController.java
...vice/sweet/controller/five/SweetManualFiveController.java
+11
-11
SweetManualNotifyFiveController.java
...weet/controller/five/SweetManualNotifyFiveController.java
+12
-12
SweetManualShopFiveController.java
.../sweet/controller/five/SweetManualShopFiveController.java
+12
-12
SweetManualSortFiveController.java
.../sweet/controller/five/SweetManualSortFiveController.java
+8
-8
SweetRichtextFiveController.java
...ce/sweet/controller/five/SweetRichtextFiveController.java
+9
-9
SweetManualArtistsFiveServiceImpl.java
.../service/impl/five/SweetManualArtistsFiveServiceImpl.java
+127
-0
SweetManualFiveServiceImpl.java
...e/sweet/service/impl/five/SweetManualFiveServiceImpl.java
+129
-0
SweetManualNotifyFiveServiceImpl.java
...t/service/impl/five/SweetManualNotifyFiveServiceImpl.java
+121
-0
SweetManualShopFiveServiceImpl.java
...eet/service/impl/five/SweetManualShopFiveServiceImpl.java
+105
-0
SweetManualSortFiveServiceImpl.java
...eet/service/impl/five/SweetManualSortFiveServiceImpl.java
+64
-0
SweetRichtextFiveServiceImpl.java
...sweet/service/impl/five/SweetRichtextFiveServiceImpl.java
+91
-0
SweetUserRelationFiveServiceImpl.java
...t/service/impl/five/SweetUserRelationFiveServiceImpl.java
+20
-0
ObjectUtil.java
...in/java/com/liquidnet/service/sweet/utils/ObjectUtil.java
+17
-0
RedisFiveDataUtils.java
...com/liquidnet/service/sweet/utils/RedisFiveDataUtils.java
+330
-0
sqlmap.properties
...uidnet-service-sweet/src/main/resources/sqlmap.properties
+1
-1
No files found.
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/constant/SweetConstant.java
View file @
7f34a48c
...
@@ -27,13 +27,21 @@ public class SweetConstant {
...
@@ -27,13 +27,21 @@ public class SweetConstant {
public
final
static
String
REDIS_KEY_SWEET_MDSK_ARTISTS_RELATION
=
"sweet:mdsk:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_MDSK_ARTISTS_RELATION
=
"sweet:mdsk:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_MDSK_SHOP
=
"sweet:mdsk:artists:shop:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_MDSK_SHOP
=
"sweet:mdsk:artists:shop:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_PUSH_LIST
=
"sweet:mdsk:manual:pushList"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_MANUAL_PUSH_LIST
=
"sweet:five:manual:pushList"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_TIME_LIST
=
"sweet:mdsk:manual:timeList:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_MANUAL_TIME_LIST
=
"sweet:five:manual:timeList:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_NOTIFY_LIST
=
"sweet:mdsk:manual:notify:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_MANUAL_NOTIFY_LIST
=
"sweet:five:manual:notify:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_RICH_TEXT
=
"sweet:mdsk:manual:richText:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_MANUAL_RICH_TEXT
=
"sweet:five:manual:richText:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_SORT
=
"sweet:mdsk:manual:sort:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_MANUAL_SORT
=
"sweet:five:manual:sort:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_ARTISTS_RELATION
=
"sweet:mdsk:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_ARTISTS_RELATION
=
"sweet:five:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_SHOP
=
"sweet:mdsk:artists:shop:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_FIVE_SHOP
=
"sweet:five:artists:shop:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_PUSH_LIST
=
"sweet:tfc:manual:pushList"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_TIME_LIST
=
"sweet:tfc:manual:timeList:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_NOTIFY_LIST
=
"sweet:tfc:manual:notify:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_RICH_TEXT
=
"sweet:tfc:manual:richText:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_MANUAL_SORT
=
"sweet:tfc:manual:sort:manual:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_ARTISTS_RELATION
=
"sweet:tfc:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_TFC_SHOP
=
"sweet:tfc:artists:shop:manual:"
;
// 积分活动
// 积分活动
public
static
final
String
REDIS_KEY_SWEET_INTEGRAL_ACTIVITY_LIST
=
"sweet:integralActivity:list"
;
public
static
final
String
REDIS_KEY_SWEET_INTEGRAL_ACTIVITY_LIST
=
"sweet:integralActivity:list"
;
...
...
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetManualArtistsFiveService.java
View file @
7f34a48c
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.service.five;
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.service.five;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList
MDSK
Dto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList
Five
Dto
;
import
com.liquidnet.service.sweet.entity.SweetManualArtists
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualArtists
Five
;
/**
/**
* <p>
* <p>
...
@@ -14,12 +14,13 @@ import com.liquidnet.service.sweet.entity.SweetManualArtistsMdsk;
...
@@ -14,12 +14,13 @@ import com.liquidnet.service.sweet.entity.SweetManualArtistsMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetManualArtistsFiveService
extends
IService
<
SweetManualArtistsMdsk
>
{
public
interface
ISweetManualArtistsFiveService
extends
IService
<
SweetManualArtistsFive
>
{
ResponseDto
<
PageInfo
<
SweetManualArtistListMDSKDto
>>
getList
(
Integer
page
,
Integer
size
,
String
manualId
);
ResponseDto
<
PageInfo
<
SweetManualArtistListFiveDto
>>
getList
(
Integer
page
,
Integer
size
,
String
manualId
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
artistId
,
String
stageId
,
String
performanceStart
,
String
performanceEnd
,
String
signatureStart
,
String
signatureEnd
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
artistId
,
String
stageId
,
String
performanceStart
,
String
performanceEnd
,
String
signatureStart
,
String
signatureEnd
);
ResponseDto
<
SweetManualArtistList
MDSK
Dto
>
details
(
String
manualRelationId
);
ResponseDto
<
SweetManualArtistList
Five
Dto
>
details
(
String
manualRelationId
);
ResponseDto
<
Boolean
>
change
(
String
manualRelationId
,
String
manualId
,
String
artistId
,
String
stageId
,
String
performanceStart
,
String
performanceEnd
,
String
signatureStart
,
String
signatureEnd
);
ResponseDto
<
Boolean
>
change
(
String
manualRelationId
,
String
manualId
,
String
artistId
,
String
stageId
,
String
performanceStart
,
String
performanceEnd
,
String
signatureStart
,
String
signatureEnd
);
...
...
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetManualFiveService.java
View file @
7f34a48c
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.service.five;
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.service.five;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManual
MDSK
Dto
;
import
com.liquidnet.service.sweet.dto.SweetManual
Five
Dto
;
import
com.liquidnet.service.sweet.entity.SweetManual
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManual
Five
;
/**
/**
* <p>
* <p>
...
@@ -14,11 +14,11 @@ import com.liquidnet.service.sweet.entity.SweetManualMdsk;
...
@@ -14,11 +14,11 @@ import com.liquidnet.service.sweet.entity.SweetManualMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetManualFiveService
extends
IService
<
SweetManual
Mdsk
>
{
public
interface
ISweetManualFiveService
extends
IService
<
SweetManual
Five
>
{
ResponseDto
<
PageInfo
<
SweetManual
MDSK
Dto
>>
getManualList
(
int
page
,
int
size
,
String
name
);
ResponseDto
<
PageInfo
<
SweetManual
Five
Dto
>>
getManualList
(
int
page
,
int
size
,
String
name
);
ResponseDto
<
SweetManual
MDSK
Dto
>
details
(
String
manualId
);
ResponseDto
<
SweetManual
Five
Dto
>
details
(
String
manualId
);
//关闭开启
//关闭开启
ResponseDto
<
Boolean
>
changeStatus
(
String
manualId
,
String
performancesId
,
Integer
status
);
ResponseDto
<
Boolean
>
changeStatus
(
String
manualId
,
String
performancesId
,
Integer
status
);
...
...
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetManualNotifyFiveService.java
View file @
7f34a48c
...
@@ -3,7 +3,7 @@ package com.liquidnet.service.sweet.service.five;
...
@@ -3,7 +3,7 @@ package com.liquidnet.service.sweet.service.five;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualNotify
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualNotify
Five
;
/**
/**
* <p>
* <p>
...
@@ -13,12 +13,12 @@ import com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk;
...
@@ -13,12 +13,12 @@ import com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetManualNotifyFiveService
extends
IService
<
SweetManualNotify
Mdsk
>
{
public
interface
ISweetManualNotifyFiveService
extends
IService
<
SweetManualNotify
Five
>
{
ResponseDto
<
PageInfo
<
SweetManualNotify
Mdsk
>>
getList
(
Integer
page
,
Integer
size
,
String
title
,
String
manualId
);
ResponseDto
<
PageInfo
<
SweetManualNotify
Five
>>
getList
(
Integer
page
,
Integer
size
,
String
title
,
String
manualId
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
content
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
content
);
ResponseDto
<
SweetManualNotify
Mdsk
>
details
(
String
manualId
);
ResponseDto
<
SweetManualNotify
Five
>
details
(
String
manualId
);
ResponseDto
<
Boolean
>
change
(
String
manualId
,
String
manualNotifyId
,
String
title
,
String
content
);
ResponseDto
<
Boolean
>
change
(
String
manualId
,
String
manualNotifyId
,
String
title
,
String
content
);
...
...
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetManualShopFiveService.java
View file @
7f34a48c
...
@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.service.five;
...
@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.service.five;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualShop
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualShop
Five
;
import
java.util.List
;
import
java.util.List
;
...
@@ -14,10 +14,10 @@ import java.util.List;
...
@@ -14,10 +14,10 @@ import java.util.List;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetManualShopFiveService
extends
IService
<
SweetManualShop
Mdsk
>
{
public
interface
ISweetManualShopFiveService
extends
IService
<
SweetManualShop
Five
>
{
ResponseDto
<
List
<
SweetManualShop
Mdsk
>>
getList
(
String
manualId
,
Integer
type
);
ResponseDto
<
List
<
SweetManualShop
Five
>>
getList
(
String
manualId
,
Integer
type
);
ResponseDto
<
SweetManualShop
Mdsk
>
details
(
String
manualShopId
);
ResponseDto
<
SweetManualShop
Five
>
details
(
String
manualShopId
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
picUrl
,
String
describe
,
Integer
type
,
Integer
isRecommend
,
Integer
sort
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
picUrl
,
String
describe
,
Integer
type
,
Integer
isRecommend
,
Integer
sort
);
...
...
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetManualSortFiveService.java
View file @
7f34a48c
...
@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.service.five;
...
@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.service.five;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualSort
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualSort
Five
;
/**
/**
* <p>
* <p>
...
@@ -12,8 +12,8 @@ import com.liquidnet.service.sweet.entity.SweetManualSortMdsk;
...
@@ -12,8 +12,8 @@ import com.liquidnet.service.sweet.entity.SweetManualSortMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetManualSortFiveService
extends
IService
<
SweetManualSort
Mdsk
>
{
public
interface
ISweetManualSortFiveService
extends
IService
<
SweetManualSort
Five
>
{
ResponseDto
<
SweetManualSort
Mdsk
>
get
(
String
manualId
);
ResponseDto
<
SweetManualSort
Five
>
get
(
String
manualId
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
content
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
content
);
}
}
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetRichtextFiveService.java
View file @
7f34a48c
...
@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.service.five;
...
@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.service.five;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetRichtext
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetRichtext
Five
;
/**
/**
* <p>
* <p>
...
@@ -12,8 +12,8 @@ import com.liquidnet.service.sweet.entity.SweetRichtextMdsk;
...
@@ -12,8 +12,8 @@ import com.liquidnet.service.sweet.entity.SweetRichtextMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetRichtextFiveService
extends
IService
<
SweetRichtext
Mdsk
>
{
public
interface
ISweetRichtextFiveService
extends
IService
<
SweetRichtext
Five
>
{
ResponseDto
<
SweetRichtext
Mdsk
>
get
(
String
manualId
,
Integer
type
);
ResponseDto
<
SweetRichtext
Five
>
get
(
String
manualId
,
Integer
type
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
details
,
String
local
,
String
pirUrl
,
Integer
type
);
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
details
,
String
local
,
String
pirUrl
,
Integer
type
);
...
...
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/five/ISweetUserRelationFiveService.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
five
;
package
com
.
liquidnet
.
service
.
sweet
.
service
.
five
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.liquidnet.service.sweet.entity.SweetUserRelation
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetUserRelation
Five
;
/**
/**
* <p>
* <p>
...
@@ -11,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetUserRelationMdsk;
...
@@ -11,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetUserRelationMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
ISweetUserRelationFiveService
extends
IService
<
SweetUserRelation
Mdsk
>
{
public
interface
ISweetUserRelationFiveService
extends
IService
<
SweetUserRelation
Five
>
{
}
}
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/vo/SweetManualShopFiveAllVo.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
vo
;
import
com.liquidnet.service.sweet.entity.SweetManualShopFive
;
import
com.liquidnet.service.sweet.entity.SweetManualShopMdsk
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
@Data
@ApiModel
public
class
SweetManualShopFiveAllVo
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
"推荐"
)
private
List
<
SweetManualShopFive
>
recommend
;
@ApiModelProperty
(
"吃喝"
)
private
List
<
SweetManualShopFive
>
eat
;
@ApiModelProperty
(
"玩乐"
)
private
List
<
SweetManualShopFive
>
play
;
private
static
final
SweetManualShopFiveAllVo
obj
=
new
SweetManualShopFiveAllVo
();
public
static
SweetManualShopFiveAllVo
getNew
()
{
try
{
return
(
SweetManualShopFiveAllVo
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
SweetManualShopFiveAllVo
();
}
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetManualArtistsFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListMDSKDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListFiveDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistStageListMDSKDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListFiveDto
;
import
com.liquidnet.service.sweet.entity.SweetManualArtistsMdsk
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistStageListFiveDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistStageListFiveDto
;
import
com.liquidnet.service.sweet.entity.SweetManualArtistsFive
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -16,12 +18,12 @@ import java.util.Map;
...
@@ -16,12 +18,12 @@ import java.util.Map;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetManualArtistsFiveMapper
extends
BaseMapper
<
SweetManualArtists
Mdsk
>
{
public
interface
SweetManualArtistsFiveMapper
extends
BaseMapper
<
SweetManualArtists
Five
>
{
List
<
SweetManualArtistList
MDSK
Dto
>
getManualList
(
Map
<
String
,
Object
>
map
);
List
<
SweetManualArtistList
Five
Dto
>
getManualList
(
Map
<
String
,
Object
>
map
);
SweetManualArtistList
MDSK
Dto
getManualDetails
(
Map
<
String
,
Object
>
map
);
SweetManualArtistList
Five
Dto
getManualDetails
(
Map
<
String
,
Object
>
map
);
List
<
SweetManualArtistStageList
MDSK
Dto
>
getStageNameList
(
Map
<
String
,
Object
>
map
);
List
<
SweetManualArtistStageList
Five
Dto
>
getStageNameList
(
Map
<
String
,
Object
>
map
);
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetManualFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.dto.SweetManualAppletMDSKDto
;
import
com.liquidnet.service.sweet.dto.SweetManualAppletFiveDto
;
import
com.liquidnet.service.sweet.dto.SweetManualMDSKDto
;
import
com.liquidnet.service.sweet.dto.SweetManualAppletFiveDto
;
import
com.liquidnet.service.sweet.entity.SweetManualMdsk
;
import
com.liquidnet.service.sweet.dto.SweetManualFiveDto
;
import
com.liquidnet.service.sweet.dto.SweetManualFiveDto
;
import
com.liquidnet.service.sweet.entity.SweetManualFive
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -16,12 +18,12 @@ import java.util.Map;
...
@@ -16,12 +18,12 @@ import java.util.Map;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetManualFiveMapper
extends
BaseMapper
<
SweetManual
Mdsk
>
{
public
interface
SweetManualFiveMapper
extends
BaseMapper
<
SweetManual
Five
>
{
List
<
SweetManual
MDSK
Dto
>
getManualList
(
Map
<
String
,
Object
>
map
);
List
<
SweetManual
Five
Dto
>
getManualList
(
Map
<
String
,
Object
>
map
);
SweetManual
MDSK
Dto
getManualDetails
(
Map
<
String
,
Object
>
map
);
SweetManual
Five
Dto
getManualDetails
(
Map
<
String
,
Object
>
map
);
List
<
SweetManualApplet
MDSK
Dto
>
getManualAppletDto
();
List
<
SweetManualApplet
Five
Dto
>
getManualAppletDto
();
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetManualNotifyFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualNotifyFive
;
import
com.liquidnet.service.sweet.entity.SweetManualNotifyFive
;
/**
/**
* <p>
* <p>
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk;
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetManualNotifyFiveMapper
extends
BaseMapper
<
SweetManualNotify
Mdsk
>
{
public
interface
SweetManualNotifyFiveMapper
extends
BaseMapper
<
SweetManualNotify
Five
>
{
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetManualShopFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.entity.SweetManualShopMdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualShopFive
;
import
com.liquidnet.service.sweet.entity.SweetManualShopFive
;
/**
/**
* <p>
* <p>
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetManualShopMdsk;
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetManualShopMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetManualShopFiveMapper
extends
BaseMapper
<
SweetManualShop
Mdsk
>
{
public
interface
SweetManualShopFiveMapper
extends
BaseMapper
<
SweetManualShop
Five
>
{
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetManualSortFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.entity.SweetManualSortMdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualSortFive
;
import
com.liquidnet.service.sweet.entity.SweetManualSortFive
;
/**
/**
* <p>
* <p>
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetManualSortMdsk;
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetManualSortMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetManualSortFiveMapper
extends
BaseMapper
<
SweetManualSort
Mdsk
>
{
public
interface
SweetManualSortFiveMapper
extends
BaseMapper
<
SweetManualSort
Five
>
{
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetRichtextFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.entity.SweetRichtextMdsk
;
import
com.liquidnet.service.sweet.entity.SweetRichtextFive
;
import
com.liquidnet.service.sweet.entity.SweetRichtextFive
;
/**
/**
* <p>
* <p>
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetRichtextMdsk;
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetRichtextMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetRichtextFiveMapper
extends
BaseMapper
<
SweetRichtext
Mdsk
>
{
public
interface
SweetRichtextFiveMapper
extends
BaseMapper
<
SweetRichtext
Five
>
{
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetUserRelationFiveMapper.java
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.entity.SweetUserRelationMdsk
;
import
com.liquidnet.service.sweet.entity.SweetUserRelationFive
;
import
com.liquidnet.service.sweet.entity.SweetUserRelationFive
;
/**
/**
* <p>
* <p>
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetUserRelationMdsk;
...
@@ -11,6 +12,6 @@ import com.liquidnet.service.sweet.entity.SweetUserRelationMdsk;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
public
interface
SweetUserRelationFiveMapper
extends
BaseMapper
<
SweetUserRelation
Mdsk
>
{
public
interface
SweetUserRelationFiveMapper
extends
BaseMapper
<
SweetUserRelation
Five
>
{
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetAppletFiveController.java
View file @
7f34a48c
...
@@ -2,15 +2,13 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -2,15 +2,13 @@ package com.liquidnet.service.sweet.controller.five;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManualAppletMDSKDto
;
import
com.liquidnet.service.sweet.dto.*
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList2MDSKDto
;
import
com.liquidnet.service.sweet.entity.*
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListMDSKDto
;
import
com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualShopMdsk
;
import
com.liquidnet.service.sweet.entity.SweetRichtextMdsk
;
import
com.liquidnet.service.sweet.utils.ObjectUtil
;
import
com.liquidnet.service.sweet.utils.ObjectUtil
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
com.liquidnet.service.sweet.utils.RedisMDSKDataUtils
;
import
com.liquidnet.service.sweet.utils.RedisMDSKDataUtils
;
import
com.liquidnet.service.sweet.vo.SweetArtistsRelationVo
;
import
com.liquidnet.service.sweet.vo.SweetArtistsRelationVo
;
import
com.liquidnet.service.sweet.vo.SweetManualShopFiveAllVo
;
import
com.liquidnet.service.sweet.vo.SweetManualShopMdskAllVo
;
import
com.liquidnet.service.sweet.vo.SweetManualShopMdskAllVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
...
@@ -29,17 +27,17 @@ import java.util.Map;
...
@@ -29,17 +27,17 @@ import java.util.Map;
public
class
SweetAppletFiveController
{
public
class
SweetAppletFiveController
{
@Autowired
@Autowired
private
Redis
MDSK
DataUtils
redisDataUtils
;
private
Redis
Five
DataUtils
redisDataUtils
;
@GetMapping
(
"timeSelect"
)
@GetMapping
(
"timeSelect"
)
@ApiOperation
(
"场次选择"
)
@ApiOperation
(
"场次选择"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"名称"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"名称"
,
required
=
true
),
})
})
public
ResponseDto
<
List
<
SweetManualApplet
MDSK
Dto
>>
timeSelect
(
@RequestParam
String
name
)
{
public
ResponseDto
<
List
<
SweetManualApplet
Five
Dto
>>
timeSelect
(
@RequestParam
String
name
)
{
List
<
SweetManualApplet
MDSK
Dto
>
dto
=
redisDataUtils
.
getPushList
();
List
<
SweetManualApplet
Five
Dto
>
dto
=
redisDataUtils
.
getPushList
();
List
<
SweetManualApplet
MDSKDto
>
vo
=
ObjectUtil
.
getSweetManualAppletMDSK
DtoList
();
List
<
SweetManualApplet
FiveDto
>
vo
=
ObjectUtil
.
getSweetManualAppletFive
DtoList
();
for
(
SweetManualApplet
MDSK
Dto
item
:
dto
)
{
for
(
SweetManualApplet
Five
Dto
item
:
dto
)
{
if
(
item
.
getTitle
().
contains
(
name
)
||
item
.
getTitle
().
contains
(
"M_DSK"
))
{
if
(
item
.
getTitle
().
contains
(
name
)
||
item
.
getTitle
().
contains
(
"M_DSK"
))
{
vo
.
add
(
item
);
vo
.
add
(
item
);
}
}
...
@@ -52,7 +50,7 @@ public class SweetAppletFiveController {
...
@@ -52,7 +50,7 @@ public class SweetAppletFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetManualApplet
MDSK
Dto
>
details
(
@RequestParam
()
String
manualId
)
{
public
ResponseDto
<
SweetManualApplet
Five
Dto
>
details
(
@RequestParam
()
String
manualId
)
{
return
ResponseDto
.
success
(
redisDataUtils
.
getAppletPerformance
(
manualId
));
return
ResponseDto
.
success
(
redisDataUtils
.
getAppletPerformance
(
manualId
));
}
}
...
@@ -61,7 +59,7 @@ public class SweetAppletFiveController {
...
@@ -61,7 +59,7 @@ public class SweetAppletFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
})
})
public
ResponseDto
<
List
<
SweetManualNotify
Mdsk
>>
notify
(
@RequestParam
()
String
manualId
)
{
public
ResponseDto
<
List
<
SweetManualNotify
Five
>>
notify
(
@RequestParam
()
String
manualId
)
{
return
ResponseDto
.
success
(
redisDataUtils
.
getNotifyRedisData
(
manualId
));
return
ResponseDto
.
success
(
redisDataUtils
.
getNotifyRedisData
(
manualId
));
}
}
...
@@ -85,7 +83,7 @@ public class SweetAppletFiveController {
...
@@ -85,7 +83,7 @@ public class SweetAppletFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetManualArtistList2
MDSK
Dto
>
timeList
(
@RequestParam
String
manualId
,
public
ResponseDto
<
SweetManualArtistList2
Five
Dto
>
timeList
(
@RequestParam
String
manualId
,
@RequestParam
(
required
=
false
)
String
dateTime
,
@RequestParam
(
required
=
false
)
String
dateTime
,
@RequestParam
(
required
=
false
)
String
stage
,
@RequestParam
(
required
=
false
)
String
stage
,
@RequestParam
Integer
isSign
,
@RequestParam
Integer
isSign
,
...
@@ -93,13 +91,13 @@ public class SweetAppletFiveController {
...
@@ -93,13 +91,13 @@ public class SweetAppletFiveController {
@RequestParam
(
required
=
false
)
Integer
size
,
@RequestParam
(
required
=
false
)
Integer
size
,
@RequestParam
String
uid
)
{
@RequestParam
String
uid
)
{
try
{
try
{
List
<
SweetManualArtistList
MDSKDto
>
allReturnArtist
=
ObjectUtil
.
getSweetManualArtistListMDSK
DtoList
();
List
<
SweetManualArtistList
FiveDto
>
allReturnArtist
=
ObjectUtil
.
getSweetManualArtistListFive
DtoList
();
List
<
SweetManualArtistList
MDSKDto
>
returnArtist
=
ObjectUtil
.
getSweetManualArtistListMDSK
DtoList
();
List
<
SweetManualArtistList
FiveDto
>
returnArtist
=
ObjectUtil
.
getSweetManualArtistListFive
DtoList
();
SweetManualArtistList2
MDSK
Dto
data
=
redisDataUtils
.
getTimeList
(
manualId
);
SweetManualArtistList2
Five
Dto
data
=
redisDataUtils
.
getTimeList
(
manualId
);
SweetArtistsRelationVo
relationData
=
redisDataUtils
.
getArtistsRelationRedisVo
(
uid
,
manualId
);
SweetArtistsRelationVo
relationData
=
redisDataUtils
.
getArtistsRelationRedisVo
(
uid
,
manualId
);
List
<
SweetManualArtistList
MDSK
Dto
>
artistData
=
data
.
getData
();
List
<
SweetManualArtistList
Five
Dto
>
artistData
=
data
.
getData
();
int
startPosition
=
0
;
int
startPosition
=
0
;
int
endPosition
=
0
;
int
endPosition
=
0
;
...
@@ -116,7 +114,7 @@ public class SweetAppletFiveController {
...
@@ -116,7 +114,7 @@ public class SweetAppletFiveController {
}
}
}
}
for
(
SweetManualArtistList
MDSK
Dto
item
:
artistData
)
{
for
(
SweetManualArtistList
Five
Dto
item
:
artistData
)
{
boolean
isSave
=
true
;
boolean
isSave
=
true
;
if
(
isSign
==
1
)
{
if
(
isSign
==
1
)
{
if
(
item
.
getSignatureStart
()
==
null
)
{
if
(
item
.
getSignatureStart
()
==
null
)
{
...
@@ -145,7 +143,7 @@ public class SweetAppletFiveController {
...
@@ -145,7 +143,7 @@ public class SweetAppletFiveController {
}
}
for
(
int
i
=
0
;
i
<
allReturnArtist
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
allReturnArtist
.
size
();
i
++)
{
SweetManualArtistList
MDSK
Dto
item
=
allReturnArtist
.
get
(
i
);
SweetManualArtistList
Five
Dto
item
=
allReturnArtist
.
get
(
i
);
if
(
page
!=
null
&&
i
>=
startPosition
&&
i
<
endPosition
)
{
if
(
page
!=
null
&&
i
>=
startPosition
&&
i
<
endPosition
)
{
item
.
setIsWatch
(
0
);
item
.
setIsWatch
(
0
);
...
@@ -194,7 +192,7 @@ public class SweetAppletFiveController {
...
@@ -194,7 +192,7 @@ public class SweetAppletFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"type"
,
value
=
"类型 (1签售时间 2现场地图 3官方大巴 4公共交通 5自驾导航坐标 6官方支持 7观众须知 8防疫指南 9观演攻略)"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"type"
,
value
=
"类型 (1签售时间 2现场地图 3官方大巴 4公共交通 5自驾导航坐标 6官方支持 7观众须知 8防疫指南 9观演攻略)"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetRichtext
Mdsk
>
richText
(
@RequestParam
()
String
manualId
,
public
ResponseDto
<
SweetRichtext
Five
>
richText
(
@RequestParam
()
String
manualId
,
@RequestParam
()
String
type
)
{
@RequestParam
()
String
type
)
{
return
ResponseDto
.
success
(
redisDataUtils
.
getRichTextRedisData
(
manualId
,
type
));
return
ResponseDto
.
success
(
redisDataUtils
.
getRichTextRedisData
(
manualId
,
type
));
}
}
...
@@ -266,15 +264,15 @@ public class SweetAppletFiveController {
...
@@ -266,15 +264,15 @@ public class SweetAppletFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"artistsId"
,
value
=
"艺人id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"artistsId"
,
value
=
"艺人id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
)
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
)
})
})
public
ResponseDto
<
SweetManualArtistList
MDSK
Dto
>
artistsDetails
(
@RequestParam
String
artistsId
,
public
ResponseDto
<
SweetManualArtistList
Five
Dto
>
artistsDetails
(
@RequestParam
String
artistsId
,
@RequestParam
String
manualId
,
@RequestParam
String
manualId
,
@RequestParam
String
uid
)
{
@RequestParam
String
uid
)
{
SweetManualArtistList2
MDSK
Dto
data
=
redisDataUtils
.
getTimeList
(
manualId
);
SweetManualArtistList2
Five
Dto
data
=
redisDataUtils
.
getTimeList
(
manualId
);
List
<
SweetManualArtistList
MDSK
Dto
>
dataList
=
data
.
getData
();
List
<
SweetManualArtistList
Five
Dto
>
dataList
=
data
.
getData
();
SweetArtistsRelationVo
relationData
=
redisDataUtils
.
getArtistsRelationRedisVo
(
uid
,
manualId
);
SweetArtistsRelationVo
relationData
=
redisDataUtils
.
getArtistsRelationRedisVo
(
uid
,
manualId
);
SweetManualArtistList
MDSKDto
vo
=
SweetManualArtistListMDSK
Dto
.
getNew
();
SweetManualArtistList
FiveDto
vo
=
SweetManualArtistListFive
Dto
.
getNew
();
for
(
SweetManualArtistList
MDSK
Dto
item
:
dataList
)
{
for
(
SweetManualArtistList
Five
Dto
item
:
dataList
)
{
if
(
item
.
getArtistId
().
equalsIgnoreCase
(
artistsId
))
{
if
(
item
.
getArtistId
().
equalsIgnoreCase
(
artistsId
))
{
item
.
setIsWatch
(
0
);
item
.
setIsWatch
(
0
);
item
.
setIsSign
(
0
);
item
.
setIsSign
(
0
);
...
@@ -310,15 +308,15 @@ public class SweetAppletFiveController {
...
@@ -310,15 +308,15 @@ public class SweetAppletFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"uid"
,
value
=
"用户id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"artistsId"
,
value
=
"艺人id"
,
required
=
true
)
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"artistsId"
,
value
=
"艺人id"
,
required
=
true
)
})
})
public
ResponseDto
<
SweetManualShop
Mdsk
AllVo
>
manualShop
(
@RequestParam
String
manualId
)
{
public
ResponseDto
<
SweetManualShop
Five
AllVo
>
manualShop
(
@RequestParam
String
manualId
)
{
List
<
SweetManualShop
Mdsk
>
shopList
=
redisDataUtils
.
getManualShopRedisData
(
manualId
);
List
<
SweetManualShop
Five
>
shopList
=
redisDataUtils
.
getManualShopRedisData
(
manualId
);
List
<
SweetManualShop
Mdsk
>
recommend
=
ObjectUtil
.
getSweetManualShopMdsk
List
();
List
<
SweetManualShop
Five
>
recommend
=
ObjectUtil
.
getSweetManualShopFive
List
();
List
<
SweetManualShop
Mdsk
>
eat
=
ObjectUtil
.
getSweetManualShopMdsk
List
();
List
<
SweetManualShop
Five
>
eat
=
ObjectUtil
.
getSweetManualShopFive
List
();
List
<
SweetManualShop
Mdsk
>
play
=
ObjectUtil
.
getSweetManualShopMdsk
List
();
List
<
SweetManualShop
Five
>
play
=
ObjectUtil
.
getSweetManualShopFive
List
();
SweetManualShop
MdskAllVo
vo
=
SweetManualShopMdsk
AllVo
.
getNew
();
SweetManualShop
FiveAllVo
vo
=
SweetManualShopFive
AllVo
.
getNew
();
for
(
SweetManualShop
Mdsk
item
:
shopList
)
{
for
(
SweetManualShop
Five
item
:
shopList
)
{
if
(
item
.
getIsRecommend
().
equals
(
1
))
{
if
(
item
.
getIsRecommend
().
equals
(
1
))
{
recommend
.
add
(
item
);
recommend
.
add
(
item
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetManualArtistsFiveController.java
View file @
7f34a48c
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.controller.five;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList
MDSK
Dto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList
Five
Dto
;
import
com.liquidnet.service.sweet.service.
ISweetManualArtistsMdsk
Service
;
import
com.liquidnet.service.sweet.service.
five.ISweetManualArtistsFive
Service
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -20,13 +20,13 @@ import org.springframework.web.bind.annotation.*;
...
@@ -20,13 +20,13 @@ import org.springframework.web.bind.annotation.*;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
@Api
(
tags
=
"电子手册艺人_
MDSK
"
)
@Api
(
tags
=
"电子手册艺人_
Five
"
)
@RestController
@RestController
@RequestMapping
(
"/
mdsk
/sweet-manual-artists"
)
@RequestMapping
(
"/
Five
/sweet-manual-artists"
)
public
class
SweetManualArtistsFiveController
{
public
class
SweetManualArtistsFiveController
{
@Autowired
@Autowired
private
ISweetManualArtists
MdskService
sweetManualArtistsMdsk
Service
;
private
ISweetManualArtists
FiveService
sweetManualArtistsFive
Service
;
@GetMapping
(
"getList"
)
@GetMapping
(
"getList"
)
@ApiOperation
(
"宣传手册艺人列表"
)
@ApiOperation
(
"宣传手册艺人列表"
)
...
@@ -35,10 +35,10 @@ public class SweetManualArtistsFiveController {
...
@@ -35,10 +35,10 @@ public class SweetManualArtistsFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manaulId"
,
value
=
"手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manaulId"
,
value
=
"手册id"
,
required
=
true
),
})
})
public
ResponseDto
<
PageInfo
<
SweetManualArtistList
MDSK
Dto
>>
getList
(
@RequestParam
()
Integer
page
,
public
ResponseDto
<
PageInfo
<
SweetManualArtistList
Five
Dto
>>
getList
(
@RequestParam
()
Integer
page
,
@RequestParam
()
Integer
size
,
@RequestParam
()
Integer
size
,
@RequestParam
()
String
manualId
)
{
@RequestParam
()
String
manualId
)
{
return
sweetManualArtists
Mdsk
Service
.
getList
(
page
,
size
,
manualId
);
return
sweetManualArtists
Five
Service
.
getList
(
page
,
size
,
manualId
);
}
}
@GetMapping
(
"details"
)
@GetMapping
(
"details"
)
...
@@ -46,8 +46,8 @@ public class SweetManualArtistsFiveController {
...
@@ -46,8 +46,8 @@ public class SweetManualArtistsFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualRelationId"
,
value
=
"手册艺人id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualRelationId"
,
value
=
"手册艺人id"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetManualArtistList
MDSK
Dto
>
details
(
@RequestParam
()
String
manualRelationId
)
{
public
ResponseDto
<
SweetManualArtistList
Five
Dto
>
details
(
@RequestParam
()
String
manualRelationId
)
{
return
sweetManualArtists
Mdsk
Service
.
details
(
manualRelationId
);
return
sweetManualArtists
Five
Service
.
details
(
manualRelationId
);
}
}
@PostMapping
(
"add"
)
@PostMapping
(
"add"
)
...
@@ -68,7 +68,7 @@ public class SweetManualArtistsFiveController {
...
@@ -68,7 +68,7 @@ public class SweetManualArtistsFiveController {
@RequestParam
(
required
=
false
)
String
performanceEnd
,
@RequestParam
(
required
=
false
)
String
performanceEnd
,
@RequestParam
(
required
=
false
)
String
signatureStart
,
@RequestParam
(
required
=
false
)
String
signatureStart
,
@RequestParam
(
required
=
false
)
String
signatureEnd
)
{
@RequestParam
(
required
=
false
)
String
signatureEnd
)
{
return
sweetManualArtists
Mdsk
Service
.
add
(
manualId
,
artistId
,
stageId
,
performanceStart
,
performanceEnd
,
signatureStart
,
signatureEnd
);
return
sweetManualArtists
Five
Service
.
add
(
manualId
,
artistId
,
stageId
,
performanceStart
,
performanceEnd
,
signatureStart
,
signatureEnd
);
}
}
@PostMapping
(
"change"
)
@PostMapping
(
"change"
)
...
@@ -91,7 +91,7 @@ public class SweetManualArtistsFiveController {
...
@@ -91,7 +91,7 @@ public class SweetManualArtistsFiveController {
@RequestParam
(
required
=
false
)
String
performanceEnd
,
@RequestParam
(
required
=
false
)
String
performanceEnd
,
@RequestParam
(
required
=
false
)
String
signatureStart
,
@RequestParam
(
required
=
false
)
String
signatureStart
,
@RequestParam
(
required
=
false
)
String
signatureEnd
)
{
@RequestParam
(
required
=
false
)
String
signatureEnd
)
{
return
sweetManualArtists
Mdsk
Service
.
change
(
manualRelationId
,
manualId
,
artistId
,
stageId
,
performanceStart
,
performanceEnd
,
signatureStart
,
signatureEnd
);
return
sweetManualArtists
Five
Service
.
change
(
manualRelationId
,
manualId
,
artistId
,
stageId
,
performanceStart
,
performanceEnd
,
signatureStart
,
signatureEnd
);
}
}
@DeleteMapping
(
"delete"
)
@DeleteMapping
(
"delete"
)
...
@@ -102,7 +102,7 @@ public class SweetManualArtistsFiveController {
...
@@ -102,7 +102,7 @@ public class SweetManualArtistsFiveController {
})
})
public
ResponseDto
<
Boolean
>
delete
(
@RequestParam
()
String
manualRelationId
,
public
ResponseDto
<
Boolean
>
delete
(
@RequestParam
()
String
manualRelationId
,
@RequestParam
()
String
manualId
)
{
@RequestParam
()
String
manualId
)
{
return
sweetManualArtists
Mdsk
Service
.
delete
(
manualRelationId
,
manualId
);
return
sweetManualArtists
Five
Service
.
delete
(
manualRelationId
,
manualId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetManualFiveController.java
View file @
7f34a48c
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.controller.five;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManual
MDSK
Dto
;
import
com.liquidnet.service.sweet.dto.SweetManual
Five
Dto
;
import
com.liquidnet.service.sweet.service.
ISweetManualMdsk
Service
;
import
com.liquidnet.service.sweet.service.
five.ISweetManualFive
Service
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -20,12 +20,12 @@ import org.springframework.web.bind.annotation.*;
...
@@ -20,12 +20,12 @@ import org.springframework.web.bind.annotation.*;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
@Api
(
tags
=
"电子手册_
MDSK
"
)
@Api
(
tags
=
"电子手册_
Five
"
)
@RestController
@RestController
@RequestMapping
(
"/
mdsk
/sweet-manual"
)
@RequestMapping
(
"/
Five
/sweet-manual"
)
public
class
SweetManualFiveController
{
public
class
SweetManualFiveController
{
@Autowired
@Autowired
private
ISweetManual
MdskService
sweetManualMdsk
Service
;
private
ISweetManual
FiveService
sweetManualFive
Service
;
@GetMapping
(
"list"
)
@GetMapping
(
"list"
)
@ApiOperation
(
"宣传手册列表"
)
@ApiOperation
(
"宣传手册列表"
)
...
@@ -34,10 +34,10 @@ public class SweetManualFiveController {
...
@@ -34,10 +34,10 @@ public class SweetManualFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"数量"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"姓名"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"姓名"
,
required
=
false
),
})
})
public
ResponseDto
<
PageInfo
<
SweetManual
MDSK
Dto
>>
getList
(
@RequestParam
()
Integer
page
,
public
ResponseDto
<
PageInfo
<
SweetManual
Five
Dto
>>
getList
(
@RequestParam
()
Integer
page
,
@RequestParam
()
Integer
size
,
@RequestParam
()
Integer
size
,
@RequestParam
(
required
=
false
)
String
name
)
{
@RequestParam
(
required
=
false
)
String
name
)
{
return
sweetManual
Mdsk
Service
.
getManualList
(
page
,
size
,
name
);
return
sweetManual
Five
Service
.
getManualList
(
page
,
size
,
name
);
}
}
...
@@ -46,8 +46,8 @@ public class SweetManualFiveController {
...
@@ -46,8 +46,8 @@ public class SweetManualFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
),
})
})
public
ResponseDto
<
SweetManual
MDSK
Dto
>
details
(
@RequestParam
(
required
=
false
)
String
manualId
)
{
public
ResponseDto
<
SweetManual
Five
Dto
>
details
(
@RequestParam
(
required
=
false
)
String
manualId
)
{
return
sweetManual
Mdsk
Service
.
details
(
manualId
);
return
sweetManual
Five
Service
.
details
(
manualId
);
}
}
@PostMapping
(
"changeRelease"
)
@PostMapping
(
"changeRelease"
)
...
@@ -58,7 +58,7 @@ public class SweetManualFiveController {
...
@@ -58,7 +58,7 @@ public class SweetManualFiveController {
})
})
public
ResponseDto
<
Boolean
>
changeRelease
(
@RequestParam
()
String
manualId
,
public
ResponseDto
<
Boolean
>
changeRelease
(
@RequestParam
()
String
manualId
,
@RequestParam
()
Integer
isRelease
)
{
@RequestParam
()
Integer
isRelease
)
{
return
sweetManual
Mdsk
Service
.
changeRelease
(
manualId
,
isRelease
);
return
sweetManual
Five
Service
.
changeRelease
(
manualId
,
isRelease
);
}
}
@PostMapping
(
"changeStatus"
)
@PostMapping
(
"changeStatus"
)
...
@@ -71,6 +71,6 @@ public class SweetManualFiveController {
...
@@ -71,6 +71,6 @@ public class SweetManualFiveController {
public
ResponseDto
<
Boolean
>
changeStatus
(
@RequestParam
()
String
manualId
,
public
ResponseDto
<
Boolean
>
changeStatus
(
@RequestParam
()
String
manualId
,
@RequestParam
()
String
performancesId
,
@RequestParam
()
String
performancesId
,
@RequestParam
()
Integer
status
)
{
@RequestParam
()
Integer
status
)
{
return
sweetManual
Mdsk
Service
.
changeStatus
(
manualId
,
performancesId
,
status
);
return
sweetManual
Five
Service
.
changeStatus
(
manualId
,
performancesId
,
status
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetManualNotifyFiveController.java
View file @
7f34a48c
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.controller.five;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualNotify
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualNotify
Five
;
import
com.liquidnet.service.sweet.service.
ISweetManualNotifyMdsk
Service
;
import
com.liquidnet.service.sweet.service.
five.ISweetManualNotifyFive
Service
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -20,13 +20,13 @@ import org.springframework.web.bind.annotation.*;
...
@@ -20,13 +20,13 @@ import org.springframework.web.bind.annotation.*;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
@Api
(
tags
=
"电子手册通知_
MDSK
"
)
@Api
(
tags
=
"电子手册通知_
Five
"
)
@RestController
@RestController
@RequestMapping
(
"/
mdsk
/sweet-manual-notify"
)
@RequestMapping
(
"/
Five
/sweet-manual-notify"
)
public
class
SweetManualNotifyFiveController
{
public
class
SweetManualNotifyFiveController
{
@Autowired
@Autowired
ISweetManualNotify
MdskService
sweetManualNotifyMdsk
Service
;
ISweetManualNotify
FiveService
sweetManualNotifyFive
Service
;
@GetMapping
(
"list"
)
@GetMapping
(
"list"
)
@ApiOperation
(
"通知列表"
)
@ApiOperation
(
"通知列表"
)
...
@@ -36,11 +36,11 @@ public class SweetManualNotifyFiveController {
...
@@ -36,11 +36,11 @@ public class SweetManualNotifyFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"通知标题 不查询从传递null"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"通知标题 不查询从传递null"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
,
required
=
true
),
})
})
public
ResponseDto
<
PageInfo
<
SweetManualNotify
Mdsk
>>
getList
(
@RequestParam
()
Integer
page
,
public
ResponseDto
<
PageInfo
<
SweetManualNotify
Five
>>
getList
(
@RequestParam
()
Integer
page
,
@RequestParam
()
Integer
size
,
@RequestParam
()
Integer
size
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
()
String
manualId
)
{
@RequestParam
()
String
manualId
)
{
return
sweetManualNotify
Mdsk
Service
.
getList
(
page
,
size
,
name
,
manualId
);
return
sweetManualNotify
Five
Service
.
getList
(
page
,
size
,
name
,
manualId
);
}
}
@PostMapping
(
"add"
)
@PostMapping
(
"add"
)
...
@@ -53,7 +53,7 @@ public class SweetManualNotifyFiveController {
...
@@ -53,7 +53,7 @@ public class SweetManualNotifyFiveController {
public
ResponseDto
<
Boolean
>
add
(
@RequestParam
()
String
manualId
,
public
ResponseDto
<
Boolean
>
add
(
@RequestParam
()
String
manualId
,
@RequestParam
()
String
title
,
@RequestParam
()
String
title
,
@RequestParam
()
String
content
)
{
@RequestParam
()
String
content
)
{
return
sweetManualNotify
Mdsk
Service
.
add
(
manualId
,
title
,
content
);
return
sweetManualNotify
Five
Service
.
add
(
manualId
,
title
,
content
);
}
}
@GetMapping
(
"detail"
)
@GetMapping
(
"detail"
)
...
@@ -61,8 +61,8 @@ public class SweetManualNotifyFiveController {
...
@@ -61,8 +61,8 @@ public class SweetManualNotifyFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualNotifyId"
,
value
=
"通知id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualNotifyId"
,
value
=
"通知id"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetManualNotify
Mdsk
>
detail
(
@RequestParam
()
String
manualNotifyId
)
{
public
ResponseDto
<
SweetManualNotify
Five
>
detail
(
@RequestParam
()
String
manualNotifyId
)
{
return
sweetManualNotify
Mdsk
Service
.
details
(
manualNotifyId
);
return
sweetManualNotify
Five
Service
.
details
(
manualNotifyId
);
}
}
@PostMapping
(
"change"
)
@PostMapping
(
"change"
)
...
@@ -77,7 +77,7 @@ public class SweetManualNotifyFiveController {
...
@@ -77,7 +77,7 @@ public class SweetManualNotifyFiveController {
@RequestParam
()
String
manualNotifyId
,
@RequestParam
()
String
manualNotifyId
,
@RequestParam
()
String
title
,
@RequestParam
()
String
title
,
@RequestParam
()
String
content
)
{
@RequestParam
()
String
content
)
{
return
sweetManualNotify
Mdsk
Service
.
change
(
manualId
,
manualNotifyId
,
title
,
content
);
return
sweetManualNotify
Five
Service
.
change
(
manualId
,
manualNotifyId
,
title
,
content
);
}
}
@DeleteMapping
(
"delete"
)
@DeleteMapping
(
"delete"
)
...
@@ -86,7 +86,7 @@ public class SweetManualNotifyFiveController {
...
@@ -86,7 +86,7 @@ public class SweetManualNotifyFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualNotifyId"
,
value
=
"手册通知id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualNotifyId"
,
value
=
"手册通知id"
,
required
=
true
),
})
})
public
ResponseDto
<
Boolean
>
delete
(
@RequestParam
()
String
manualNotifyId
)
{
public
ResponseDto
<
Boolean
>
delete
(
@RequestParam
()
String
manualNotifyId
)
{
return
sweetManualNotify
Mdsk
Service
.
delete
(
manualNotifyId
);
return
sweetManualNotify
Five
Service
.
delete
(
manualNotifyId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetManualShopFiveController.java
View file @
7f34a48c
...
@@ -2,8 +2,8 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -2,8 +2,8 @@ package com.liquidnet.service.sweet.controller.five;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualShop
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualShop
Five
;
import
com.liquidnet.service.sweet.service.
ISweetManualShopMdsk
Service
;
import
com.liquidnet.service.sweet.service.
five.ISweetManualShopFive
Service
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -21,13 +21,13 @@ import java.util.List;
...
@@ -21,13 +21,13 @@ import java.util.List;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
@Api
(
tags
=
"电子手册吃喝玩乐_
MDSK
"
)
@Api
(
tags
=
"电子手册吃喝玩乐_
Five
"
)
@RestController
@RestController
@RequestMapping
(
"/
mdsk
/sweet-manual-shop"
)
@RequestMapping
(
"/
Five
/sweet-manual-shop"
)
public
class
SweetManualShopFiveController
{
public
class
SweetManualShopFiveController
{
@Autowired
@Autowired
ISweetManualShop
MdskService
sweetManualShopMdsk
Service
;
ISweetManualShop
FiveService
sweetManualShopFive
Service
;
@GetMapping
(
"list"
)
@GetMapping
(
"list"
)
@ApiOperation
(
"列表"
)
@ApiOperation
(
"列表"
)
...
@@ -35,9 +35,9 @@ public class SweetManualShopFiveController {
...
@@ -35,9 +35,9 @@ public class SweetManualShopFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"类型 1吃喝 2玩乐"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"类型 1吃喝 2玩乐"
,
required
=
true
),
})
})
public
ResponseDto
<
List
<
SweetManualShop
Mdsk
>>
getList
(
@RequestParam
String
manualId
,
public
ResponseDto
<
List
<
SweetManualShop
Five
>>
getList
(
@RequestParam
String
manualId
,
@RequestParam
Integer
type
)
{
@RequestParam
Integer
type
)
{
return
sweetManualShop
Mdsk
Service
.
getList
(
manualId
,
type
);
return
sweetManualShop
Five
Service
.
getList
(
manualId
,
type
);
}
}
@GetMapping
(
"details"
)
@GetMapping
(
"details"
)
...
@@ -45,8 +45,8 @@ public class SweetManualShopFiveController {
...
@@ -45,8 +45,8 @@ public class SweetManualShopFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualShopId"
,
value
=
"商铺id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualShopId"
,
value
=
"商铺id"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetManualShop
Mdsk
>
details
(
@RequestParam
String
manualShopId
)
{
public
ResponseDto
<
SweetManualShop
Five
>
details
(
@RequestParam
String
manualShopId
)
{
return
sweetManualShop
Mdsk
Service
.
details
(
manualShopId
);
return
sweetManualShop
Five
Service
.
details
(
manualShopId
);
}
}
@PostMapping
(
"add"
)
@PostMapping
(
"add"
)
...
@@ -67,7 +67,7 @@ public class SweetManualShopFiveController {
...
@@ -67,7 +67,7 @@ public class SweetManualShopFiveController {
@RequestParam
Integer
type
,
@RequestParam
Integer
type
,
@RequestParam
Integer
isRecommend
,
@RequestParam
Integer
isRecommend
,
@RequestParam
Integer
sort
)
{
@RequestParam
Integer
sort
)
{
return
sweetManualShop
Mdsk
Service
.
add
(
manualId
,
title
,
picUrl
,
describes
,
type
,
isRecommend
,
sort
);
return
sweetManualShop
Five
Service
.
add
(
manualId
,
title
,
picUrl
,
describes
,
type
,
isRecommend
,
sort
);
}
}
@PostMapping
(
"change"
)
@PostMapping
(
"change"
)
...
@@ -90,7 +90,7 @@ public class SweetManualShopFiveController {
...
@@ -90,7 +90,7 @@ public class SweetManualShopFiveController {
@RequestParam
Integer
type
,
@RequestParam
Integer
type
,
@RequestParam
Integer
isRecommend
,
@RequestParam
Integer
isRecommend
,
@RequestParam
Integer
sort
)
{
@RequestParam
Integer
sort
)
{
return
sweetManualShop
Mdsk
Service
.
change
(
manualShopId
,
manualId
,
title
,
picUrl
,
describes
,
type
,
isRecommend
,
sort
);
return
sweetManualShop
Five
Service
.
change
(
manualShopId
,
manualId
,
title
,
picUrl
,
describes
,
type
,
isRecommend
,
sort
);
}
}
...
@@ -102,7 +102,7 @@ public class SweetManualShopFiveController {
...
@@ -102,7 +102,7 @@ public class SweetManualShopFiveController {
})
})
public
ResponseDto
<
Boolean
>
delete
(
@RequestParam
()
String
manualShopId
,
public
ResponseDto
<
Boolean
>
delete
(
@RequestParam
()
String
manualShopId
,
@RequestParam
String
manualId
)
{
@RequestParam
String
manualId
)
{
return
sweetManualShop
Mdsk
Service
.
delete
(
manualShopId
,
manualId
);
return
sweetManualShop
Five
Service
.
delete
(
manualShopId
,
manualId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetManualSortFiveController.java
View file @
7f34a48c
...
@@ -2,8 +2,8 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -2,8 +2,8 @@ package com.liquidnet.service.sweet.controller.five;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualSort
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualSort
Five
;
import
com.liquidnet.service.sweet.service.
ISweetManualSortMdsk
Service
;
import
com.liquidnet.service.sweet.service.
five.ISweetManualSortFive
Service
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -19,13 +19,13 @@ import org.springframework.web.bind.annotation.*;
...
@@ -19,13 +19,13 @@ import org.springframework.web.bind.annotation.*;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
@Api
(
tags
=
"电子手册显示tag_
MDSK
"
)
@Api
(
tags
=
"电子手册显示tag_
Five
"
)
@RestController
@RestController
@RequestMapping
(
"/
mdsk
/sweet-manual-sort"
)
@RequestMapping
(
"/
Five
/sweet-manual-sort"
)
public
class
SweetManualSortFiveController
{
public
class
SweetManualSortFiveController
{
@Autowired
@Autowired
private
ISweetManualSort
MdskService
sweetManualSortMdsk
Service
;
private
ISweetManualSort
FiveService
sweetManualSortFive
Service
;
@PostMapping
(
"add"
)
@PostMapping
(
"add"
)
...
@@ -36,7 +36,7 @@ public class SweetManualSortFiveController {
...
@@ -36,7 +36,7 @@ public class SweetManualSortFiveController {
})
})
public
ResponseDto
<
Boolean
>
changeStatus
(
@RequestParam
()
String
manualId
,
public
ResponseDto
<
Boolean
>
changeStatus
(
@RequestParam
()
String
manualId
,
@RequestParam
()
String
content
)
{
@RequestParam
()
String
content
)
{
return
sweetManualSort
Mdsk
Service
.
add
(
manualId
,
content
);
return
sweetManualSort
Five
Service
.
add
(
manualId
,
content
);
}
}
@GetMapping
(
"get"
)
@GetMapping
(
"get"
)
...
@@ -44,8 +44,8 @@ public class SweetManualSortFiveController {
...
@@ -44,8 +44,8 @@ public class SweetManualSortFiveController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
)
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
)
})
})
public
ResponseDto
<
SweetManualSort
Mdsk
>
changeStatus
(
@RequestParam
()
String
manualId
)
{
public
ResponseDto
<
SweetManualSort
Five
>
changeStatus
(
@RequestParam
()
String
manualId
)
{
return
sweetManualSort
Mdsk
Service
.
get
(
manualId
);
return
sweetManualSort
Five
Service
.
get
(
manualId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/five/SweetRichtextFiveController.java
View file @
7f34a48c
...
@@ -2,8 +2,8 @@ package com.liquidnet.service.sweet.controller.five;
...
@@ -2,8 +2,8 @@ package com.liquidnet.service.sweet.controller.five;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetRichtext
Mdsk
;
import
com.liquidnet.service.sweet.entity.SweetRichtext
Five
;
import
com.liquidnet.service.sweet.service.
ISweetRichtextMdsk
Service
;
import
com.liquidnet.service.sweet.service.
five.ISweetRichtextFive
Service
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -19,13 +19,13 @@ import org.springframework.web.bind.annotation.*;
...
@@ -19,13 +19,13 @@ import org.springframework.web.bind.annotation.*;
* @author liquidnet
* @author liquidnet
* @since 2021-08-09
* @since 2021-08-09
*/
*/
@Api
(
tags
=
"电子手册 富文本_
MDSK
"
)
@Api
(
tags
=
"电子手册 富文本_
Five
"
)
@RestController
@RestController
@RequestMapping
(
"/
mdsk
/sweet-richtext"
)
@RequestMapping
(
"/
Five
/sweet-richtext"
)
public
class
SweetRichtextFiveController
{
public
class
SweetRichtextFiveController
{
@Autowired
@Autowired
ISweetRichtext
MdskService
sweetRichtextMdsk
Service
;
ISweetRichtext
FiveService
sweetRichtextFive
Service
;
@GetMapping
(
"get"
)
@GetMapping
(
"get"
)
@ApiOperation
(
"富文本详情"
)
@ApiOperation
(
"富文本详情"
)
...
@@ -33,9 +33,9 @@ public class SweetRichtextFiveController {
...
@@ -33,9 +33,9 @@ public class SweetRichtextFiveController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"manualId"
,
value
=
"电子手册id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"类型 (1签售时间 2现场地图 3官方大巴 4公共交通 5自驾导航坐标 6官方支持 7观众须知 8防疫指南 9观演攻略)"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"类型 (1签售时间 2现场地图 3官方大巴 4公共交通 5自驾导航坐标 6官方支持 7观众须知 8防疫指南 9观演攻略)"
,
required
=
true
),
})
})
public
ResponseDto
<
SweetRichtext
Mdsk
>
get
(
@RequestParam
()
String
manualId
,
public
ResponseDto
<
SweetRichtext
Five
>
get
(
@RequestParam
()
String
manualId
,
@RequestParam
()
Integer
type
)
{
@RequestParam
()
Integer
type
)
{
return
sweetRichtext
Mdsk
Service
.
get
(
manualId
,
type
);
return
sweetRichtext
Five
Service
.
get
(
manualId
,
type
);
}
}
@PostMapping
(
"add"
)
@PostMapping
(
"add"
)
...
@@ -52,7 +52,7 @@ public class SweetRichtextFiveController {
...
@@ -52,7 +52,7 @@ public class SweetRichtextFiveController {
@RequestParam
(
required
=
false
)
String
local
,
@RequestParam
(
required
=
false
)
String
local
,
@RequestParam
(
required
=
false
)
String
picUrl
,
@RequestParam
(
required
=
false
)
String
picUrl
,
@RequestParam
()
Integer
type
)
{
@RequestParam
()
Integer
type
)
{
return
sweetRichtext
Mdsk
Service
.
add
(
manualId
,
details
,
local
,
picUrl
,
type
);
return
sweetRichtext
Five
Service
.
add
(
manualId
,
details
,
local
,
picUrl
,
type
);
}
}
@PostMapping
(
"change"
)
@PostMapping
(
"change"
)
...
@@ -69,7 +69,7 @@ public class SweetRichtextFiveController {
...
@@ -69,7 +69,7 @@ public class SweetRichtextFiveController {
@RequestParam
(
required
=
false
)
String
local
,
@RequestParam
(
required
=
false
)
String
local
,
@RequestParam
(
required
=
false
)
String
picUrl
,
@RequestParam
(
required
=
false
)
String
picUrl
,
@RequestParam
()
Integer
type
)
{
@RequestParam
()
Integer
type
)
{
return
sweetRichtext
Mdsk
Service
.
change
(
manualId
,
details
,
local
,
picUrl
,
type
);
return
sweetRichtext
Five
Service
.
change
(
manualId
,
details
,
local
,
picUrl
,
type
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetManualArtistsFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListFiveDto
;
import
com.liquidnet.service.sweet.entity.SweetManualArtistsFive
;
import
com.liquidnet.service.sweet.mapper.SweetManualArtistsFiveMapper
;
import
com.liquidnet.service.sweet.mapper.SweetManualArtistsFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetManualArtistsFiveService
;
import
com.liquidnet.service.sweet.service.ISweetManualArtistsTFCService
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
/**
* <p>
* 电子宣传手册艺人表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetManualArtistsFiveServiceImpl
extends
ServiceImpl
<
SweetManualArtistsFiveMapper
,
SweetManualArtistsFive
>
implements
ISweetManualArtistsFiveService
{
@Autowired
private
SweetManualArtistsFiveMapper
sweetManualArtistsFiveMapper
;
@Autowired
private
RedisFiveDataUtils
redisDataUtils
;
@Override
public
ResponseDto
<
PageInfo
<
SweetManualArtistListFiveDto
>>
getList
(
Integer
page
,
Integer
size
,
String
manualId
)
{
PageInfo
<
SweetManualArtistListFiveDto
>
pageInfoTmp
;
try
{
PageHelper
.
startPage
(
page
,
size
);
HashMap
<
String
,
Object
>
map
=
CollectionUtil
.
mapStringObject
();
map
.
put
(
"manualId"
,
manualId
);
List
<
SweetManualArtistListFiveDto
>
voList
=
sweetManualArtistsFiveMapper
.
getManualList
(
map
);
pageInfoTmp
=
new
PageInfo
(
voList
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseDto
.
failure
();
}
return
ResponseDto
.
success
(
pageInfoTmp
);
}
@Override
public
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
artistId
,
String
stageId
,
String
performanceStart
,
String
performanceEnd
,
String
signatureStart
,
String
signatureEnd
)
{
try
{
SweetManualArtistsFive
sweetManualNotify
=
SweetManualArtistsFive
.
getNew
();
sweetManualNotify
.
setManualRelationId
(
IDGenerator
.
nextSnowId
());
sweetManualNotify
.
setManualId
(
manualId
);
sweetManualNotify
.
setStageId
(
stageId
);
sweetManualNotify
.
setArtistsId
(
artistId
);
sweetManualNotify
.
setPerformanceEnd
(
performanceEnd
!=
null
?
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceEnd
)
:
null
);
sweetManualNotify
.
setPerformanceStart
(
performanceStart
!=
null
?
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceStart
)
:
null
);
sweetManualNotify
.
setSignatureStart
(
signatureStart
!=
null
?
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
signatureStart
)
:
null
);
sweetManualNotify
.
setSignatureEnd
(
signatureEnd
!=
null
?
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
signatureEnd
)
:
null
);
sweetManualNotify
.
setCreatedAt
(
LocalDateTime
.
now
());
sweetManualArtistsFiveMapper
.
insert
(
sweetManualNotify
);
redisDataUtils
.
deleteTimeListRedisData
(
manualId
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
SweetManualArtistListFiveDto
>
details
(
String
manualRelationId
)
{
try
{
HashMap
<
String
,
Object
>
map
=
CollectionUtil
.
mapStringObject
();
map
.
put
(
"manualRelationId"
,
manualRelationId
);
SweetManualArtistListFiveDto
dto
=
sweetManualArtistsFiveMapper
.
getManualDetails
(
map
);
return
ResponseDto
.
success
(
dto
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
change
(
String
manualRelationId
,
String
manualId
,
String
artistId
,
String
stageId
,
String
performanceStart
,
String
performanceEnd
,
String
signatureStart
,
String
signatureEnd
)
{
try
{
SweetManualArtistsFive
sweetManualNotify
=
SweetManualArtistsFive
.
getNew
();
sweetManualNotify
.
setStageId
(
stageId
);
sweetManualNotify
.
setArtistsId
(
artistId
);
sweetManualNotify
.
setPerformanceEnd
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceEnd
));
sweetManualNotify
.
setPerformanceStart
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
performanceStart
));
sweetManualNotify
.
setSignatureStart
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
signatureStart
));
sweetManualNotify
.
setSignatureEnd
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
signatureEnd
));
sweetManualNotify
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualArtistsFiveMapper
.
update
(
sweetManualNotify
,
Wrappers
.
lambdaUpdate
(
SweetManualArtistsFive
.
class
).
eq
(
SweetManualArtistsFive:
:
getManualRelationId
,
manualRelationId
));
redisDataUtils
.
deleteTimeListRedisData
(
manualId
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
delete
(
String
manualRelationId
,
String
manualId
)
{
try
{
SweetManualArtistsFive
sweetManualNotify
=
SweetManualArtistsFive
.
getNew
();
sweetManualNotify
.
setManualRelationId
(
IDGenerator
.
nextSnowId
());
sweetManualNotify
.
setStatus
(
0
);
sweetManualNotify
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualArtistsFiveMapper
.
update
(
sweetManualNotify
,
Wrappers
.
lambdaUpdate
(
SweetManualArtistsFive
.
class
).
eq
(
SweetManualArtistsFive:
:
getManualRelationId
,
manualRelationId
));
redisDataUtils
.
deleteTimeListRedisData
(
manualId
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetManualFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ErrorMapping
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.dto.SweetManualFiveDto
;
import
com.liquidnet.service.sweet.entity.SweetManualFive
;
import
com.liquidnet.service.sweet.mapper.SweetManualFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetManualFiveService
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
/**
* <p>
* 电子宣传手册表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetManualFiveServiceImpl
extends
ServiceImpl
<
SweetManualFiveMapper
,
SweetManualFive
>
implements
ISweetManualFiveService
{
@Autowired
private
SweetManualFiveMapper
sweetManualFiveMapper
;
@Autowired
private
RedisFiveDataUtils
redisDataUtils
;
@Override
public
ResponseDto
<
PageInfo
<
SweetManualFiveDto
>>
getManualList
(
int
page
,
int
size
,
String
name
)
{
PageInfo
<
SweetManualFiveDto
>
pageInfoTmp
;
try
{
PageHelper
.
startPage
(
page
,
size
);
HashMap
<
String
,
Object
>
map
=
CollectionUtil
.
mapStringObject
();
map
.
put
(
"title"
,
name
);
List
<
SweetManualFiveDto
>
voList
=
sweetManualFiveMapper
.
getManualList
(
map
);
for
(
int
i
=
0
;
i
<
voList
.
size
();
i
++)
{
SweetManualFiveDto
vo
=
voList
.
get
(
i
);
if
(
vo
.
getStatus
()
>=
6
&&
vo
.
getStatus
()
!=
7
)
{
if
(
DateUtil
.
compareStrDay
(
vo
.
getTimeSell
(),
DateUtil
.
getNowTime
())
>
0
)
{
//未开始
vo
.
setStatus
(
9
);
}
else
if
(
DateUtil
.
compareStrDay
(
vo
.
getTimeStop
(),
DateUtil
.
getNowTime
())
<
0
)
{
//已结束
vo
.
setStatus
(
10
);
}
else
{
vo
.
setStatus
(
6
);
}
}
}
pageInfoTmp
=
new
PageInfo
(
voList
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
}
return
ResponseDto
.
success
(
pageInfoTmp
);
}
@Override
public
ResponseDto
<
SweetManualFiveDto
>
details
(
String
manualId
)
{
SweetManualFiveDto
vo
;
try
{
HashMap
<
String
,
Object
>
map
=
CollectionUtil
.
mapStringObject
();
map
.
put
(
"manualId"
,
manualId
);
vo
=
sweetManualFiveMapper
.
getManualDetails
(
map
);
if
(
vo
.
getStatus
()
>=
6
&&
vo
.
getStatus
()
!=
7
)
{
if
(
DateUtil
.
compareStrDay
(
vo
.
getTimeSell
(),
DateUtil
.
getNowTime
())
>
0
)
{
//未开始
vo
.
setStatus
(
9
);
}
else
if
(
DateUtil
.
compareStrDay
(
vo
.
getTimeStop
(),
DateUtil
.
getNowTime
())
<
0
)
{
//已结束
vo
.
setStatus
(
10
);
}
else
{
vo
.
setStatus
(
6
);
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
}
return
ResponseDto
.
success
(
vo
);
}
@Override
public
ResponseDto
<
Boolean
>
changeStatus
(
String
manualId
,
String
performancesId
,
Integer
status
)
{
try
{
int
count
=
sweetManualFiveMapper
.
selectCount
(
Wrappers
.
lambdaUpdate
(
SweetManualFive
.
class
).
eq
(
SweetManualFive:
:
getManualId
,
manualId
));
SweetManualFive
sweetManual
=
SweetManualFive
.
getNew
();
if
(
count
>
0
)
{
//修改
sweetManual
.
setStatus
(
status
);
sweetManual
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualFiveMapper
.
update
(
sweetManual
,
Wrappers
.
lambdaUpdate
(
SweetManualFive
.
class
).
eq
(
SweetManualFive:
:
getManualId
,
manualId
));
}
else
{
//创建
sweetManual
.
setManualId
(
IDGenerator
.
nextSnowId
());
sweetManual
.
setPerformanceId
(
performancesId
);
sweetManual
.
setStatus
(
status
);
sweetManual
.
setIsRelease
(
0
);
sweetManual
.
setCreatedAt
(
LocalDateTime
.
now
());
sweetManualFiveMapper
.
insert
(
sweetManual
);
}
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
redisDataUtils
.
deletePushListRedisData
();
return
ResponseDto
.
success
();
}
@Override
public
ResponseDto
<
Boolean
>
changeRelease
(
String
manualId
,
Integer
isRelease
)
{
try
{
SweetManualFive
sweetManual
=
SweetManualFive
.
getNew
();
sweetManual
.
setIsRelease
(
isRelease
);
sweetManual
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualFiveMapper
.
update
(
sweetManual
,
Wrappers
.
lambdaUpdate
(
SweetManualFive
.
class
).
eq
(
SweetManualFive:
:
getManualId
,
manualId
));
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
redisDataUtils
.
deletePushListRedisData
();
return
ResponseDto
.
success
();
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetManualNotifyFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualNotifyFive
;
import
com.liquidnet.service.sweet.mapper.SweetManualNotifyFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetManualNotifyFiveService
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* <p>
* 电子宣传手册通知表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetManualNotifyFiveServiceImpl
extends
ServiceImpl
<
SweetManualNotifyFiveMapper
,
SweetManualNotifyFive
>
implements
ISweetManualNotifyFiveService
{
@Autowired
private
SweetManualNotifyFiveMapper
sweetManualNotifyFiveMapper
;
@Autowired
private
RedisFiveDataUtils
redisDataUtils
;
@Override
public
ResponseDto
<
PageInfo
<
SweetManualNotifyFive
>>
getList
(
Integer
page
,
Integer
size
,
String
title
,
String
manualId
)
{
PageInfo
<
SweetManualNotifyFive
>
pageInfo
=
null
;
try
{
PageHelper
.
startPage
(
page
,
size
);
List
<
SweetManualNotifyFive
>
data
;
if
(
title
!=
null
)
{
data
=
sweetManualNotifyFiveMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
SweetManualNotifyFive
.
class
).
like
(
SweetManualNotifyFive:
:
getTitle
,
title
).
eq
(
SweetManualNotifyFive:
:
getManualId
,
manualId
).
eq
(
SweetManualNotifyFive:
:
getStatus
,
1
));
}
else
{
data
=
sweetManualNotifyFiveMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
SweetManualNotifyFive
.
class
).
eq
(
SweetManualNotifyFive:
:
getManualId
,
manualId
).
eq
(
SweetManualNotifyFive:
:
getStatus
,
1
));
}
pageInfo
=
new
PageInfo
(
data
);
return
ResponseDto
.
success
(
pageInfo
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
success
(
pageInfo
);
}
}
@Override
public
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
content
)
{
try
{
SweetManualNotifyFive
sweetManualNotify
=
SweetManualNotifyFive
.
getNew
();
sweetManualNotify
.
setManualNotifyId
(
IDGenerator
.
nextSnowId
());
sweetManualNotify
.
setManualId
(
manualId
);
sweetManualNotify
.
setTitle
(
title
);
sweetManualNotify
.
setContent
(
content
);
sweetManualNotify
.
setCreatedAt
(
LocalDateTime
.
now
());
sweetManualNotifyFiveMapper
.
insert
(
sweetManualNotify
);
List
<
SweetManualNotifyFive
>
oldData
=
redisDataUtils
.
getNotifyRedisData
(
manualId
);
oldData
.
add
(
sweetManualNotify
);
redisDataUtils
.
setNotifyRedisData
(
manualId
,
oldData
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
SweetManualNotifyFive
>
details
(
String
manualNotifyId
)
{
try
{
return
ResponseDto
.
success
(
sweetManualNotifyFiveMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
SweetManualNotifyFive
.
class
).
eq
(
SweetManualNotifyFive:
:
getManualNotifyId
,
manualNotifyId
).
eq
(
SweetManualNotifyFive:
:
getStatus
,
1
)));
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
change
(
String
manualId
,
String
manualNotifyId
,
String
title
,
String
content
)
{
try
{
SweetManualNotifyFive
sweetManualNotify
=
SweetManualNotifyFive
.
getNew
();
sweetManualNotify
.
setTitle
(
title
);
sweetManualNotify
.
setContent
(
content
);
sweetManualNotify
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualNotifyFiveMapper
.
update
(
sweetManualNotify
,
Wrappers
.
lambdaUpdate
(
SweetManualNotifyFive
.
class
).
eq
(
SweetManualNotifyFive:
:
getManualNotifyId
,
manualNotifyId
));
List
<
SweetManualNotifyFive
>
oldData
=
redisDataUtils
.
getNotifyRedisData
(
manualId
);
for
(
SweetManualNotifyFive
item
:
oldData
)
{
if
(
item
.
getManualNotifyId
().
equalsIgnoreCase
(
manualNotifyId
))
{
item
.
setTitle
(
title
);
item
.
setContent
(
content
);
item
.
setUpdatedAt
(
LocalDateTime
.
now
());
}
}
redisDataUtils
.
setNotifyRedisData
(
manualId
,
oldData
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
delete
(
String
manualNotifyId
)
{
try
{
SweetManualNotifyFive
sweetManualNotify
=
SweetManualNotifyFive
.
getNew
();
sweetManualNotify
.
setStatus
(
0
);
sweetManualNotify
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualNotifyFiveMapper
.
update
(
sweetManualNotify
,
Wrappers
.
lambdaUpdate
(
SweetManualNotifyFive
.
class
).
eq
(
SweetManualNotifyFive:
:
getManualNotifyId
,
manualNotifyId
));
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetManualShopFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualShopFive
;
import
com.liquidnet.service.sweet.mapper.SweetManualShopFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetManualShopFiveService
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 电子宣传手册商铺表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetManualShopFiveServiceImpl
extends
ServiceImpl
<
SweetManualShopFiveMapper
,
SweetManualShopFive
>
implements
ISweetManualShopFiveService
{
@Autowired
private
SweetManualShopFiveMapper
sweetManualShopFiveMapper
;
@Autowired
private
RedisFiveDataUtils
redisDataUtils
;
@Override
public
ResponseDto
<
List
<
SweetManualShopFive
>>
getList
(
String
manualId
,
Integer
type
)
{
try
{
List
<
SweetManualShopFive
>
data
=
sweetManualShopFiveMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
SweetManualShopFive
.
class
).
eq
(
SweetManualShopFive:
:
getManualId
,
manualId
).
eq
(
SweetManualShopFive:
:
getType
,
type
).
eq
(
SweetManualShopFive:
:
getStatus
,
1
));
return
ResponseDto
.
success
(
data
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
SweetManualShopFive
>
details
(
String
manualShopId
)
{
try
{
SweetManualShopFive
data
=
sweetManualShopFiveMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
SweetManualShopFive
.
class
).
eq
(
SweetManualShopFive:
:
getManualShopId
,
manualShopId
).
eq
(
SweetManualShopFive:
:
getStatus
,
1
));
return
ResponseDto
.
success
(
data
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
title
,
String
picUrl
,
String
describe
,
Integer
type
,
Integer
isRecommend
,
Integer
sort
)
{
try
{
SweetManualShopFive
sweetManualShop
=
SweetManualShopFive
.
getNew
();
sweetManualShop
.
setManualShopId
(
IDGenerator
.
nextSnowId
());
sweetManualShop
.
setManualId
(
manualId
);
sweetManualShop
.
setTitle
(
title
);
sweetManualShop
.
setPicUrl
(
picUrl
);
sweetManualShop
.
setDescribes
(
describe
);
sweetManualShop
.
setType
(
type
);
sweetManualShop
.
setIsRecommend
(
isRecommend
);
sweetManualShop
.
setSort
(
sort
);
sweetManualShop
.
setStatus
(
1
);
sweetManualShopFiveMapper
.
insert
(
sweetManualShop
);
redisDataUtils
.
setManualShopRedisData
(
manualId
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
change
(
String
manualShopId
,
String
manualId
,
String
title
,
String
picUrl
,
String
describe
,
Integer
type
,
Integer
isRecommend
,
Integer
sort
)
{
try
{
SweetManualShopFive
sweetManualShop
=
SweetManualShopFive
.
getNew
();
sweetManualShop
.
setTitle
(
title
);
sweetManualShop
.
setPicUrl
(
picUrl
);
sweetManualShop
.
setDescribes
(
describe
);
sweetManualShop
.
setType
(
type
);
sweetManualShop
.
setIsRecommend
(
isRecommend
);
sweetManualShop
.
setSort
(
sort
);
sweetManualShopFiveMapper
.
update
(
sweetManualShop
,
Wrappers
.
lambdaUpdate
(
SweetManualShopFive
.
class
).
eq
(
SweetManualShopFive:
:
getManualShopId
,
manualShopId
));
redisDataUtils
.
setManualShopRedisData
(
manualId
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
delete
(
String
manualShopId
,
String
manualId
)
{
try
{
SweetManualShopFive
sweetManualShop
=
SweetManualShopFive
.
getNew
();
sweetManualShop
.
setStatus
(
0
);
sweetManualShopFiveMapper
.
update
(
sweetManualShop
,
Wrappers
.
lambdaUpdate
(
SweetManualShopFive
.
class
).
eq
(
SweetManualShopFive:
:
getManualShopId
,
manualShopId
));
redisDataUtils
.
setManualShopRedisData
(
manualId
);
return
ResponseDto
.
success
();
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetManualSortFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetManualSortFive
;
import
com.liquidnet.service.sweet.mapper.SweetManualSortFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetManualSortFiveService
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
/**
* <p>
* 电子宣传手册显示内容表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetManualSortFiveServiceImpl
extends
ServiceImpl
<
SweetManualSortFiveMapper
,
SweetManualSortFive
>
implements
ISweetManualSortFiveService
{
@Autowired
private
SweetManualSortFiveMapper
sweetManualSortFiveMapper
;
@Autowired
private
RedisFiveDataUtils
redisDataUtils
;
@Override
public
ResponseDto
<
SweetManualSortFive
>
get
(
String
manualId
)
{
try
{
return
ResponseDto
.
success
(
sweetManualSortFiveMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
SweetManualSortFive
.
class
).
eq
(
SweetManualSortFive:
:
getManualId
,
manualId
)));
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
content
)
{
try
{
int
count
=
sweetManualSortFiveMapper
.
selectCount
(
Wrappers
.
lambdaUpdate
(
SweetManualSortFive
.
class
).
eq
(
SweetManualSortFive:
:
getManualId
,
manualId
));
if
(
count
>
0
)
{
SweetManualSortFive
sweetManualSort
=
SweetManualSortFive
.
getNew
();
sweetManualSort
.
setManualId
(
manualId
);
sweetManualSort
.
setShowPosition
(
content
);
sweetManualSort
.
setUpdatedAt
(
LocalDateTime
.
now
());
sweetManualSortFiveMapper
.
update
(
sweetManualSort
,
Wrappers
.
lambdaUpdate
(
SweetManualSortFive
.
class
).
eq
(
SweetManualSortFive:
:
getManualId
,
manualId
));
}
else
{
SweetManualSortFive
sweetManualSort
=
SweetManualSortFive
.
getNew
();
sweetManualSort
.
setManualId
(
manualId
);
sweetManualSort
.
setShowPosition
(
content
);
sweetManualSort
.
setCreatedAt
(
LocalDateTime
.
now
());
sweetManualSortFiveMapper
.
insert
(
sweetManualSort
);
}
redisDataUtils
.
deleteSortRedisData
(
manualId
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
return
ResponseDto
.
success
();
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetRichtextFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.sweet.entity.SweetRichtextFive
;
import
com.liquidnet.service.sweet.mapper.SweetRichtextFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetRichtextFiveService
;
import
com.liquidnet.service.sweet.utils.RedisFiveDataUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
/**
* <p>
* 电子宣传手册富文本表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetRichtextFiveServiceImpl
extends
ServiceImpl
<
SweetRichtextFiveMapper
,
SweetRichtextFive
>
implements
ISweetRichtextFiveService
{
@Autowired
private
SweetRichtextFiveMapper
sweetRichtextFiveMapper
;
@Autowired
private
RedisFiveDataUtils
redisDataUtils
;
@Override
public
ResponseDto
<
SweetRichtextFive
>
get
(
String
manualId
,
Integer
type
)
{
try
{
return
ResponseDto
.
success
(
sweetRichtextFiveMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
SweetRichtextFive
.
class
).
eq
(
SweetRichtextFive:
:
getManualId
,
manualId
).
eq
(
SweetRichtextFive:
:
getType
,
type
)));
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
}
@Override
public
ResponseDto
<
Boolean
>
add
(
String
manualId
,
String
details
,
String
local
,
String
pirUrl
,
Integer
type
)
{
try
{
int
count
=
sweetRichtextFiveMapper
.
selectCount
(
Wrappers
.
lambdaQuery
(
SweetRichtextFive
.
class
).
eq
(
SweetRichtextFive:
:
getManualId
,
manualId
).
eq
(
SweetRichtextFive:
:
getType
,
type
));
if
(
count
>
0
){
return
ResponseDto
.
failure
(
"不能重复添加"
);
}
SweetRichtextFive
sweetRichtext
=
SweetRichtextFive
.
getNew
();
sweetRichtext
.
setRichtextId
(
IDGenerator
.
nextSnowId
());
sweetRichtext
.
setManualId
(
manualId
);
if
(
type
==
5
)
{
sweetRichtext
.
setLocal
(
local
);
sweetRichtext
.
setDetails
(
details
);
}
else
if
(
type
==
2
)
{
sweetRichtext
.
setPicUrl
(
pirUrl
);
}
else
{
sweetRichtext
.
setDetails
(
details
);
}
sweetRichtext
.
setType
(
type
);
sweetRichtext
.
setCreatedAt
(
LocalDateTime
.
now
());
sweetRichtextFiveMapper
.
insert
(
sweetRichtext
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
return
ResponseDto
.
success
();
}
@Override
public
ResponseDto
<
Boolean
>
change
(
String
manualId
,
String
details
,
String
local
,
String
pirUrl
,
Integer
type
)
{
try
{
SweetRichtextFive
sweetRichtext
=
SweetRichtextFive
.
getNew
();
sweetRichtext
.
setRichtextId
(
IDGenerator
.
nextSnowId
());
sweetRichtext
.
setManualId
(
manualId
);
sweetRichtext
.
setDetails
(
details
);
if
(
type
==
5
)
{
sweetRichtext
.
setLocal
(
local
);
}
else
if
(
type
==
2
)
{
sweetRichtext
.
setPicUrl
(
pirUrl
);
}
sweetRichtext
.
setType
(
type
);
sweetRichtext
.
setCreatedAt
(
LocalDateTime
.
now
());
sweetRichtextFiveMapper
.
update
(
sweetRichtext
,
Wrappers
.
lambdaUpdate
(
SweetRichtextFive
.
class
).
eq
(
SweetRichtextFive:
:
getManualId
,
manualId
).
eq
(
SweetRichtextFive:
:
getType
,
type
));
redisDataUtils
.
setRichTextRedisData
(
manualId
,
type
.
toString
(),
sweetRichtext
);
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
}
return
ResponseDto
.
success
();
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/five/SweetUserRelationFiveServiceImpl.java
0 → 100644
View file @
7f34a48c
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
.
five
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.liquidnet.service.sweet.entity.SweetUserRelationFive
;
import
com.liquidnet.service.sweet.mapper.SweetUserRelationFiveMapper
;
import
com.liquidnet.service.sweet.service.five.ISweetUserRelationFiveService
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 用户 收藏/喜欢等状态 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-08-09
*/
@Service
public
class
SweetUserRelationFiveServiceImpl
extends
ServiceImpl
<
SweetUserRelationFiveMapper
,
SweetUserRelationFive
>
implements
ISweetUserRelationFiveService
{
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/utils/ObjectUtil.java
View file @
7f34a48c
...
@@ -4,6 +4,7 @@ import com.liquidnet.service.sweet.dto.*;
...
@@ -4,6 +4,7 @@ import com.liquidnet.service.sweet.dto.*;
import
com.liquidnet.service.sweet.dto.vo.IntegralActivityDrawVo
;
import
com.liquidnet.service.sweet.dto.vo.IntegralActivityDrawVo
;
import
com.liquidnet.service.sweet.dto.vo.IntegralActivityVo
;
import
com.liquidnet.service.sweet.dto.vo.IntegralActivityVo
;
import
com.liquidnet.service.sweet.entity.SweetManualShop
;
import
com.liquidnet.service.sweet.entity.SweetManualShop
;
import
com.liquidnet.service.sweet.entity.SweetManualShopFive
;
import
com.liquidnet.service.sweet.entity.SweetManualShopMdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualShopMdsk
;
import
com.liquidnet.service.sweet.entity.SweetManualShopTfc
;
import
com.liquidnet.service.sweet.entity.SweetManualShopTfc
;
import
com.liquidnet.service.sweet.vo.SweetCItyVoteStatVo
;
import
com.liquidnet.service.sweet.vo.SweetCItyVoteStatVo
;
...
@@ -19,6 +20,10 @@ public class ObjectUtil {
...
@@ -19,6 +20,10 @@ public class ObjectUtil {
private
static
final
ArrayList
<
SweetManualArtistListMDSKDto
>
sweetManualArtistListMDSKDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualArtistListMDSKDto
>
sweetManualArtistListMDSKDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualShopMdsk
>
sweetManualShopMDSKList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualShopMdsk
>
sweetManualShopMDSKList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualAppletFiveDto
>
sweetManualAppletFiveDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualArtistListFiveDto
>
sweetManualArtistListFiveDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualShopFive
>
sweetManualShopFiveList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualAppletTFCDto
>
sweetManualAppletTFCDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualAppletTFCDto
>
sweetManualAppletTFCDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualArtistListTFCDto
>
sweetManualArtistListTFCDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualArtistListTFCDto
>
sweetManualArtistListTFCDtoList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualShopTfc
>
sweetManualShopTFCList
=
new
ArrayList
<>();
private
static
final
ArrayList
<
SweetManualShopTfc
>
sweetManualShopTFCList
=
new
ArrayList
<>();
...
@@ -44,6 +49,10 @@ public class ObjectUtil {
...
@@ -44,6 +49,10 @@ public class ObjectUtil {
return
(
ArrayList
<
SweetManualAppletMDSKDto
>)
sweetManualAppletMDSKDtoList
.
clone
();
return
(
ArrayList
<
SweetManualAppletMDSKDto
>)
sweetManualAppletMDSKDtoList
.
clone
();
}
}
public
static
ArrayList
<
SweetManualAppletFiveDto
>
getSweetManualAppletFiveDtoList
()
{
return
(
ArrayList
<
SweetManualAppletFiveDto
>)
sweetManualAppletFiveDtoList
.
clone
();
}
public
static
ArrayList
<
SweetManualAppletTFCDto
>
getSweetManualAppletTFCDtoList
()
{
public
static
ArrayList
<
SweetManualAppletTFCDto
>
getSweetManualAppletTFCDtoList
()
{
return
(
ArrayList
<
SweetManualAppletTFCDto
>)
sweetManualAppletTFCDtoList
.
clone
();
return
(
ArrayList
<
SweetManualAppletTFCDto
>)
sweetManualAppletTFCDtoList
.
clone
();
}
}
...
@@ -64,6 +73,14 @@ public class ObjectUtil {
...
@@ -64,6 +73,14 @@ public class ObjectUtil {
return
(
ArrayList
<
SweetManualShopMdsk
>)
sweetManualShopMDSKList
.
clone
();
return
(
ArrayList
<
SweetManualShopMdsk
>)
sweetManualShopMDSKList
.
clone
();
}
}
public
static
ArrayList
<
SweetManualArtistListFiveDto
>
getSweetManualArtistListFiveDtoList
()
{
return
(
ArrayList
<
SweetManualArtistListFiveDto
>)
sweetManualArtistListFiveDtoList
.
clone
();
}
public
static
ArrayList
<
SweetManualShopFive
>
getSweetManualShopFiveList
()
{
return
(
ArrayList
<
SweetManualShopFive
>)
sweetManualShopFiveList
.
clone
();
}
public
static
ArrayList
<
SweetCItyVoteStatVo
>
getSweetCItyVoteStatVoList
()
{
public
static
ArrayList
<
SweetCItyVoteStatVo
>
getSweetCItyVoteStatVoList
()
{
return
(
ArrayList
<
SweetCItyVoteStatVo
>)
sweetCItyVoteStatVoList
.
clone
();
return
(
ArrayList
<
SweetCItyVoteStatVo
>)
sweetCItyVoteStatVoList
.
clone
();
}
}
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/utils/RedisFiveDataUtils.java
0 → 100644
View file @
7f34a48c
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-sweet/src/main/resources/sqlmap.properties
View file @
7f34a48c
This diff is collapsed.
Click to expand it.
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