Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
36db6d37
提交
36db6d37
authored
10月 13, 2022
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
延时客服
上级
6fb99879
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
386 行增加
和
35 行删除
+386
-35
CustomerDelayGraphicsController.java
.../customer/controller/CustomerDelayGraphicsController.java
+30
-9
CustomerMessageTextController.java
...zw/customer/controller/CustomerMessageTextController.java
+4
-4
CustomerDelayQueryDTO.java
...yaoyaozw/customer/dto/customer/CustomerDelayQueryDTO.java
+7
-5
CustomerDelaySaveDTO.java
.../yaoyaozw/customer/dto/customer/CustomerDelaySaveDTO.java
+23
-3
CustomerGraphicsDelay.java
...a/com/yaoyaozw/customer/entity/CustomerGraphicsDelay.java
+55
-0
CustomerGraphicsDelayMapper.java
...yaoyaozw/customer/mapper/CustomerGraphicsDelayMapper.java
+11
-0
CustomerGraphicsDelayService.java
...oyaozw/customer/service/CustomerGraphicsDelayService.java
+54
-0
CustomerGraphicsTextService.java
...aoyaozw/customer/service/CustomerGraphicsTextService.java
+7
-7
CustomerTextDelayService.java
...m/yaoyaozw/customer/service/CustomerTextDelayService.java
+19
-0
CustomerGraphicsDelayServiceImpl.java
...stomer/service/impl/CustomerGraphicsDelayServiceImpl.java
+80
-0
CustomerGraphicsTextServiceImpl.java
...ustomer/service/impl/CustomerGraphicsTextServiceImpl.java
+5
-5
CustomerTextDelayServiceImpl.java
...w/customer/service/impl/CustomerTextDelayServiceImpl.java
+43
-0
CustomerDelayDetailVO.java
.../yaoyaozw/customer/vo/customer/CustomerDelayDetailVO.java
+43
-0
CustomerDelayListVO.java
...om/yaoyaozw/customer/vo/customer/CustomerDelayListVO.java
+0
-1
CustomerMessageTextDetailVO.java
...ozw/customer/vo/customer/CustomerMessageTextDetailVO.java
+1
-1
CustomerGraphicsDelayMapper.xml
src/main/resources/mapper/CustomerGraphicsDelayMapper.xml
+4
-0
没有找到文件。
src/main/java/com/yaoyaozw/customer/controller/CustomerDelayController.java
→
src/main/java/com/yaoyaozw/customer/controller/CustomerDelay
Graphics
Controller.java
浏览文件 @
36db6d37
package
com
.
yaoyaozw
.
customer
.
controller
;
package
com
.
yaoyaozw
.
customer
.
controller
;
import
com.github.pagehelper.PageInfo
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelaySaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelaySaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelaySaveDTO
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayDetailVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -19,33 +27,46 @@ import java.util.List;
...
@@ -19,33 +27,46 @@ import java.util.List;
@Api
(
tags
=
"延时客服接口"
)
@Api
(
tags
=
"延时客服接口"
)
@RestController
@RestController
@RequestMapping
(
"/customer-service/delay"
)
@RequestMapping
(
"/customer-service/delay"
)
public
class
CustomerDelayController
{
public
class
CustomerDelay
Graphics
Controller
{
@Autowired
private
CustomerGraphicsDelayService
customerGraphicsDelayService
;
@ApiOperation
(
"新增"
)
@ApiOperation
(
"新增"
)
@PostMapping
(
"/insert"
)
@PostMapping
(
"/insert"
)
public
BaseResult
insertCustomerDelay
(
@RequestBody
CustomerDelaySaveDTO
saveDto
)
{
public
BaseResult
insertCustomerDelay
(
@RequestBody
CustomerDelaySaveDTO
saveDto
)
{
return
new
BaseResult
().
success
(
);
return
customerGraphicsDelayService
.
insertCustomerDelay
(
saveDto
);
}
}
@ApiOperation
(
"
编辑
"
)
@ApiOperation
(
"
获取详情
"
)
@
PostMapping
(
"/edit
"
)
@
GetMapping
(
"/detail/{id}
"
)
public
BaseResult
updateCustomerDelay
(
@RequestBody
CustomerDelaySaveDTO
saveDto
)
{
public
GenericsResult
<
CustomerDelayDetailVO
>
getCustomerDelayDetail
(
@PathVariable
(
"id"
)
Long
id
)
{
return
new
BaseResult
().
success
(
);
return
customerGraphicsDelayService
.
getCustomerDelayDetail
(
id
);
}
}
@ApiOperation
(
"查询"
)
@ApiOperation
(
"查询"
)
@PostMapping
(
"/pageList"
)
@PostMapping
(
"/pageList"
)
public
GenericsResult
<
List
<
CustomerDelayListVO
>>
pageList
(
@RequestBody
CustomerDelayQueryDTO
queryDto
)
{
public
GenericsResult
<
PageInfo
<
CustomerDelayListVO
>>
pageList
(
@RequestBody
CustomerDelayQueryDTO
queryDto
)
{
return
new
GenericsResult
<>(
new
ArrayList
<>()
);
return
customerGraphicsDelayService
.
pageList
(
queryDto
);
}
}
@ApiOperation
(
"删除"
)
@ApiOperation
(
"删除"
)
@GetMapping
(
"/remove/{id}"
)
@GetMapping
(
"/remove/{id}"
)
public
BaseResult
removeCustomerDelay
(
@PathVariable
(
"id"
)
Long
id
)
{
public
BaseResult
removeCustomerDelay
(
@PathVariable
(
"id"
)
Long
id
)
{
return
new
BaseResult
().
success
(
);
return
customerGraphicsDelayService
.
removeCustomerDelay
(
id
);
}
}
@ApiOperation
(
"获取已生成客服的公众号列表"
)
@GetMapping
(
"/getExistCustomerAccount"
)
public
GenericsResult
<
List
<
AuthInfoVO
>>
getExistCustomerAccount
()
{
return
customerGraphicsDelayService
.
getExistCustomerAccount
();
}
@ApiOperation
(
"批量删除"
)
@PostMapping
(
"/removeBatch"
)
public
BaseResult
removeBatch
(
@RequestBody
List
<
Long
>
idList
)
{
return
customerGraphicsDelayService
.
removeBatch
(
idList
);
}
}
}
src/main/java/com/yaoyaozw/customer/controller/CustomerMessageTextController.java
浏览文件 @
36db6d37
...
@@ -4,7 +4,7 @@ import com.yaoyaozw.customer.common.GenericsResult;
...
@@ -4,7 +4,7 @@ import com.yaoyaozw.customer.common.GenericsResult;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.service.CustomerGraphicsTextService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsTextService
;
import
com.yaoyaozw.customer.vo.customer.Customer
Graphic
TextDetailVO
;
import
com.yaoyaozw.customer.vo.customer.Customer
Message
TextDetailVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -30,19 +30,19 @@ public class CustomerMessageTextController {
...
@@ -30,19 +30,19 @@ public class CustomerMessageTextController {
@ApiOperation
(
"新增客服内容"
)
@ApiOperation
(
"新增客服内容"
)
@PostMapping
(
"/insertCustomerContent"
)
@PostMapping
(
"/insertCustomerContent"
)
public
GenericsResult
<
Customer
Graphic
TextDetailVO
>
insertCustomerContent
(
@RequestBody
CustomerReferralDTO
referralDto
)
{
public
GenericsResult
<
Customer
Message
TextDetailVO
>
insertCustomerContent
(
@RequestBody
CustomerReferralDTO
referralDto
)
{
return
textService
.
insertCustomerContent
(
referralDto
);
return
textService
.
insertCustomerContent
(
referralDto
);
}
}
@ApiOperation
(
"获取文本客服详情"
)
@ApiOperation
(
"获取文本客服详情"
)
@GetMapping
(
"/detail/{id}"
)
@GetMapping
(
"/detail/{id}"
)
public
GenericsResult
<
Customer
Graphic
TextDetailVO
>
getCustomerTextDetail
(
@PathVariable
(
"id"
)
Long
id
)
{
public
GenericsResult
<
Customer
Message
TextDetailVO
>
getCustomerTextDetail
(
@PathVariable
(
"id"
)
Long
id
)
{
return
textService
.
getCustomerTextDetail
(
id
);
return
textService
.
getCustomerTextDetail
(
id
);
}
}
@ApiOperation
(
"删除单条文本内容"
)
@ApiOperation
(
"删除单条文本内容"
)
@GetMapping
(
"/removeCustomerContent/{contentId}"
)
@GetMapping
(
"/removeCustomerContent/{contentId}"
)
public
GenericsResult
<
Customer
Graphic
TextDetailVO
>
removeCustomerContent
(
@PathVariable
(
"contentId"
)
Long
contentId
)
{
public
GenericsResult
<
Customer
Message
TextDetailVO
>
removeCustomerContent
(
@PathVariable
(
"contentId"
)
Long
contentId
)
{
return
textService
.
removeCustomerContent
(
contentId
);
return
textService
.
removeCustomerContent
(
contentId
);
}
}
...
...
src/main/java/com/yaoyaozw/customer/dto/customer/CustomerDelayQueryDTO.java
浏览文件 @
36db6d37
...
@@ -12,17 +12,19 @@ import java.io.Serializable;
...
@@ -12,17 +12,19 @@ import java.io.Serializable;
* @author darker
* @author darker
* @date 2022/9/15 11:20
* @date 2022/9/15 11:20
*/
*/
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
@Data
@ApiModel
(
"延时客服列表查询实体"
)
@ApiModel
(
"延时客服列表查询实体"
)
public
class
CustomerDelayQueryDTO
implements
Serializable
{
public
class
CustomerDelayQueryDTO
extends
PageParams
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3580731044930990755L
;
@ApiModelProperty
(
"消息名称关键词"
)
@ApiModelProperty
(
"消息名称关键词"
)
private
String
messageK
eyword
;
private
String
k
eyword
;
@ApiModelProperty
(
"客服消息类型"
)
@ApiModelProperty
(
"客服消息类型"
)
private
Integer
messageType
;
private
String
type
;
@ApiModelProperty
(
"公众号AppID"
)
private
String
appId
;
}
}
src/main/java/com/yaoyaozw/customer/dto/customer/CustomerDelaySaveDTO.java
浏览文件 @
36db6d37
...
@@ -13,13 +13,33 @@ import java.io.Serializable;
...
@@ -13,13 +13,33 @@ import java.io.Serializable;
@Data
@Data
@ApiModel
(
"延时客服保存实体"
)
@ApiModel
(
"延时客服保存实体"
)
public
class
CustomerDelaySaveDTO
implements
Serializable
{
public
class
CustomerDelaySaveDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3396784031787662255L
;
private
Long
id
;
private
String
appId
;
@ApiModelProperty
(
"客服消息名称"
)
@ApiModelProperty
(
"客服消息名称"
)
private
String
messageName
;
private
String
name
;
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
private
String
type
;
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
private
String
extendTitle
;
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
private
Integer
messageType
;
private
String
coverUrl
;
@ApiModelProperty
(
"文本内容"
)
private
String
content
;
@ApiModelProperty
(
"发文序号"
)
private
Integer
postSort
;
@ApiModelProperty
(
"发文间隔时间"
)
private
Long
timeInterval
;
@ApiModelProperty
(
"消息内容实体"
)
private
CustomerReferralDTO
customerReferralDto
;
}
}
src/main/java/com/yaoyaozw/customer/entity/CustomerGraphicsDelay.java
浏览文件 @
36db6d37
...
@@ -9,6 +9,12 @@ import java.util.Date;
...
@@ -9,6 +9,12 @@ import java.util.Date;
import
lombok.Data
;
import
lombok.Data
;
/**
* 客户图形延迟
*
* @author Admin
* @date 2022/10/13
*/
@Data
@Data
@TableName
(
value
=
"customer_graphics_delay"
)
@TableName
(
value
=
"customer_graphics_delay"
)
public
class
CustomerGraphicsDelay
implements
Serializable
{
public
class
CustomerGraphicsDelay
implements
Serializable
{
...
@@ -22,6 +28,43 @@ public class CustomerGraphicsDelay implements Serializable {
...
@@ -22,6 +28,43 @@ public class CustomerGraphicsDelay implements Serializable {
private
String
appId
;
private
String
appId
;
/**
/**
* 标题
*/
@TableField
(
value
=
"name"
)
private
String
name
;
/**
* 类型
*/
@TableField
(
value
=
"type"
)
private
String
type
;
/**
* 推广标题
*/
@TableField
(
value
=
"extend_title"
)
private
String
extendTitle
;
/**
* 文本内容
*/
@TableField
(
value
=
"content"
)
private
String
content
;
/**
* 状态
*/
@TableField
(
value
=
"send_status"
)
private
Integer
sendStatus
;
/**
* 是否是历史遗留
*/
@TableField
(
value
=
"is_history"
)
private
Integer
isHistory
;
/**
* 发送序列
* 发送序列
*/
*/
@TableField
(
value
=
"post_sort"
)
@TableField
(
value
=
"post_sort"
)
...
@@ -82,4 +125,15 @@ public class CustomerGraphicsDelay implements Serializable {
...
@@ -82,4 +125,15 @@ public class CustomerGraphicsDelay implements Serializable {
public
static
final
String
COL_GMT_MODIFIED
=
"gmt_modified"
;
public
static
final
String
COL_GMT_MODIFIED
=
"gmt_modified"
;
public
static
final
String
COL_IS_DELETED
=
"is_deleted"
;
public
static
final
String
COL_IS_DELETED
=
"is_deleted"
;
public
void
initOperateInfo
(
Long
userId
,
Boolean
isCreate
)
{
Date
now
=
new
Date
();
if
(
isCreate
)
{
this
.
createUser
=
userId
;
this
.
gmtCreate
=
now
;
}
this
.
gmtModified
=
now
;
this
.
modifiedUser
=
userId
;
}
}
}
\ No newline at end of file
src/main/java/com/yaoyaozw/customer/mapper/CustomerGraphicsDelayMapper.java
浏览文件 @
36db6d37
...
@@ -2,8 +2,10 @@ package com.yaoyaozw.customer.mapper;
...
@@ -2,8 +2,10 @@ package com.yaoyaozw.customer.mapper;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -23,4 +25,12 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
...
@@ -23,4 +25,12 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
List
<
CustomerDelayItemVO
>
findAllDelayCustomerMessage
(
@Param
(
"appidList"
)
Set
<
String
>
appidList
);
List
<
CustomerDelayItemVO
>
findAllDelayCustomerMessage
(
@Param
(
"appidList"
)
Set
<
String
>
appidList
);
List
<
CustomerDelayItemVO
>
findDelayCustomerMessageByRange
(
@Param
(
"appidList"
)
Set
<
String
>
appidList
,
@Param
(
"maxSort"
)
Integer
maxSort
);
List
<
CustomerDelayItemVO
>
findDelayCustomerMessageByRange
(
@Param
(
"appidList"
)
Set
<
String
>
appidList
,
@Param
(
"maxSort"
)
Integer
maxSort
);
/**
* 页面列表
*
* @param queryDto 查询dto
* @return {@link List}<{@link CustomerDelayListVO}>
*/
List
<
CustomerDelayListVO
>
pageList
(
CustomerDelayQueryDTO
queryDto
);
}
}
\ No newline at end of file
src/main/java/com/yaoyaozw/customer/service/CustomerGraphicsDelayService.java
浏览文件 @
36db6d37
package
com
.
yaoyaozw
.
customer
.
service
;
package
com
.
yaoyaozw
.
customer
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.github.pagehelper.PageInfo
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelaySaveDTO
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayDetailVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -15,5 +23,51 @@ public interface CustomerGraphicsDelayService extends IService<CustomerGraphicsD
...
@@ -15,5 +23,51 @@ public interface CustomerGraphicsDelayService extends IService<CustomerGraphicsD
List
<
CustomerDelayItemVO
>
findAllDelayCustomerMessage
(
Set
<
String
>
appidList
,
Integer
maxSortRage
);
List
<
CustomerDelayItemVO
>
findAllDelayCustomerMessage
(
Set
<
String
>
appidList
,
Integer
maxSortRage
);
/**
* 插入客户延迟
*
* @param saveDto 保存dto
* @return {@link BaseResult}
*/
BaseResult
insertCustomerDelay
(
CustomerDelaySaveDTO
saveDto
);
/**
* 得到客户延迟细节
*
* @param id id
* @return {@link GenericsResult}<{@link CustomerDelayDetailVO}>
*/
GenericsResult
<
CustomerDelayDetailVO
>
getCustomerDelayDetail
(
Long
id
);
/**
* 页面列表
*
* @param queryDto 查询dto
* @return {@link GenericsResult}<{@link PageInfo}<{@link CustomerDelayListVO}>>
*/
GenericsResult
<
PageInfo
<
CustomerDelayListVO
>>
pageList
(
CustomerDelayQueryDTO
queryDto
);
/**
* 删除客户延迟
*
* @param id id
* @return {@link BaseResult}
*/
BaseResult
removeCustomerDelay
(
Long
id
);
/**
* 得到客户账户存在
*
* @return {@link GenericsResult}<{@link List}<{@link AuthInfoVO}>>
*/
GenericsResult
<
List
<
AuthInfoVO
>>
getExistCustomerAccount
();
/**
* 删除批处理
*
* @param idList id列表
* @return {@link BaseResult}
*/
BaseResult
removeBatch
(
List
<
Long
>
idList
);
}
}
src/main/java/com/yaoyaozw/customer/service/CustomerGraphicsTextService.java
浏览文件 @
36db6d37
...
@@ -5,7 +5,7 @@ import com.yaoyaozw.customer.common.GenericsResult;
...
@@ -5,7 +5,7 @@ import com.yaoyaozw.customer.common.GenericsResult;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.entity.CustomerGraphics
;
import
com.yaoyaozw.customer.entity.CustomerGraphics
;
import
com.yaoyaozw.customer.vo.customer.Customer
Graphic
TextDetailVO
;
import
com.yaoyaozw.customer.vo.customer.Customer
Message
TextDetailVO
;
/**
/**
...
@@ -26,24 +26,24 @@ public interface CustomerGraphicsTextService extends IService<CustomerGraphics>
...
@@ -26,24 +26,24 @@ public interface CustomerGraphicsTextService extends IService<CustomerGraphics>
* 新增客户内容
* 新增客户内容
*
*
* @param referralDto 推荐dto
* @param referralDto 推荐dto
* @return {@link GenericsResult}<{@link Customer
Graphic
TextDetailVO}>
* @return {@link GenericsResult}<{@link Customer
Message
TextDetailVO}>
*/
*/
GenericsResult
<
Customer
Graphic
TextDetailVO
>
insertCustomerContent
(
CustomerReferralDTO
referralDto
);
GenericsResult
<
Customer
Message
TextDetailVO
>
insertCustomerContent
(
CustomerReferralDTO
referralDto
);
/**
/**
* 获取文本客服详情
* 获取文本客服详情
*
*
* @param id 主键id
* @param id 主键id
* @return {@link GenericsResult}<{@link Customer
Graphic
TextDetailVO}>
* @return {@link GenericsResult}<{@link Customer
Message
TextDetailVO}>
*/
*/
GenericsResult
<
Customer
Graphic
TextDetailVO
>
getCustomerTextDetail
(
Long
id
);
GenericsResult
<
Customer
Message
TextDetailVO
>
getCustomerTextDetail
(
Long
id
);
/**
/**
* 删除客户内容
* 删除客户内容
*
*
* @param contentId 文本内容id
* @param contentId 文本内容id
* @return {@link GenericsResult}<{@link Customer
Graphic
TextDetailVO}>
* @return {@link GenericsResult}<{@link Customer
Message
TextDetailVO}>
*/
*/
GenericsResult
<
Customer
Graphic
TextDetailVO
>
removeCustomerContent
(
Long
contentId
);
GenericsResult
<
Customer
Message
TextDetailVO
>
removeCustomerContent
(
Long
contentId
);
}
}
src/main/java/com/yaoyaozw/customer/service/CustomerTextDelayService.java
0 → 100644
浏览文件 @
36db6d37
package
com
.
yaoyaozw
.
customer
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
java.util.List
;
import
java.util.Set
;
/**
* @author darker
* @date 2022/9/15 11:13
*/
public
interface
CustomerTextDelayService
extends
IService
<
CustomerGraphicsDelay
>
{
}
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsDelayServiceImpl.java
浏览文件 @
36db6d37
package
com
.
yaoyaozw
.
customer
.
service
.
impl
;
package
com
.
yaoyaozw
.
customer
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.components.SnowflakeComponent
;
import
com.yaoyaozw.customer.components.TokenManager
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelaySaveDTO
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.CustomerTextDelayService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayDetailVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.List
;
...
@@ -17,6 +36,14 @@ import java.util.Set;
...
@@ -17,6 +36,14 @@ import java.util.Set;
@Service
@Service
public
class
CustomerGraphicsDelayServiceImpl
extends
ServiceImpl
<
CustomerGraphicsDelayMapper
,
CustomerGraphicsDelay
>
implements
CustomerGraphicsDelayService
{
public
class
CustomerGraphicsDelayServiceImpl
extends
ServiceImpl
<
CustomerGraphicsDelayMapper
,
CustomerGraphicsDelay
>
implements
CustomerGraphicsDelayService
{
private
final
static
Logger
localLog
=
LoggerFactory
.
getLogger
(
CustomerGraphicsDelayServiceImpl
.
class
);
@Autowired
private
TokenManager
tokenManager
;
@Autowired
private
SnowflakeComponent
snowflakeComponent
;
@Autowired
private
ReferralEntityService
referralEntityService
;
@Override
@Override
...
@@ -30,5 +57,58 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
...
@@ -30,5 +57,58 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
return
baseMapper
.
findAllDelayCustomerMessage
(
appidList
);
return
baseMapper
.
findAllDelayCustomerMessage
(
appidList
);
}
}
}
}
@Override
public
BaseResult
insertCustomerDelay
(
CustomerDelaySaveDTO
saveDto
)
{
CustomerGraphicsDelay
customerGraphicsDelay
=
new
CustomerGraphicsDelay
();
BeanUtil
.
copyProperties
(
saveDto
,
customerGraphicsDelay
);
// 初始化操作信息
customerGraphicsDelay
.
initOperateInfo
(
tokenManager
.
getUserIdFromToken
(),
ObjectUtil
.
isNull
(
saveDto
.
getId
()));
if
(
ObjectUtil
.
isNull
(
customerGraphicsDelay
.
getId
()))
{
long
id
=
snowflakeComponent
.
snowflakeId
();
localLog
.
info
(
"是新增, 新生成ID: {}"
,
id
);
customerGraphicsDelay
.
setId
(
id
);
}
super
.
saveOrUpdate
(
customerGraphicsDelay
);
localLog
.
info
(
"生成referral数据"
);
ReferralEntity
referralEntity
=
new
ReferralEntity
();
referralEntity
.
setMaterialGraphicsId
(
customerGraphicsDelay
.
getId
());
BeanUtil
.
copyProperties
(
referralEntity
,
saveDto
.
getCustomerReferralDto
());
referralEntityService
.
saveOrUpdate
(
referralEntity
);
return
new
BaseResult
().
success
();
}
@Override
public
GenericsResult
<
CustomerDelayDetailVO
>
getCustomerDelayDetail
(
Long
id
)
{
return
null
;
}
@Override
public
GenericsResult
<
PageInfo
<
CustomerDelayListVO
>>
pageList
(
CustomerDelayQueryDTO
queryDto
)
{
PageHelper
.
startPage
(
queryDto
.
getPageSize
(),
queryDto
.
getCurrentPage
());
List
<
CustomerDelayListVO
>
customerDelayList
=
super
.
baseMapper
.
pageList
(
queryDto
);
PageInfo
<
CustomerDelayListVO
>
pageResult
=
new
PageInfo
<>(
customerDelayList
);
return
new
GenericsResult
<>(
pageResult
);
}
@Override
public
BaseResult
removeCustomerDelay
(
Long
id
)
{
return
null
;
}
@Override
public
GenericsResult
<
List
<
AuthInfoVO
>>
getExistCustomerAccount
()
{
return
null
;
}
@Override
public
BaseResult
removeBatch
(
List
<
Long
>
idList
)
{
return
null
;
}
}
}
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsTextServiceImpl.java
浏览文件 @
36db6d37
...
@@ -17,7 +17,7 @@ import com.yaoyaozw.customer.mapper.CustomerGraphicsMapper;
...
@@ -17,7 +17,7 @@ import com.yaoyaozw.customer.mapper.CustomerGraphicsMapper;
import
com.yaoyaozw.customer.service.CustomerGraphicsTextService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsTextService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.vo.customer.CustomerContentVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerContentVO
;
import
com.yaoyaozw.customer.vo.customer.Customer
Graphic
TextDetailVO
;
import
com.yaoyaozw.customer.vo.customer.Customer
Message
TextDetailVO
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -63,7 +63,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
...
@@ -63,7 +63,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
GenericsResult
<
Customer
Graphic
TextDetailVO
>
insertCustomerContent
(
CustomerReferralDTO
referralDto
)
{
public
GenericsResult
<
Customer
Message
TextDetailVO
>
insertCustomerContent
(
CustomerReferralDTO
referralDto
)
{
System
.
out
.
println
(
referralDto
);
System
.
out
.
println
(
referralDto
);
...
@@ -83,7 +83,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
...
@@ -83,7 +83,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
}
}
@Override
@Override
public
GenericsResult
<
Customer
Graphic
TextDetailVO
>
getCustomerTextDetail
(
Long
id
)
{
public
GenericsResult
<
Customer
Message
TextDetailVO
>
getCustomerTextDetail
(
Long
id
)
{
// 查询主体数据
// 查询主体数据
CustomerGraphics
customerGraphics
=
super
.
getById
(
id
);
CustomerGraphics
customerGraphics
=
super
.
getById
(
id
);
if
(
ObjectUtil
.
isNull
(
customerGraphics
))
{
if
(
ObjectUtil
.
isNull
(
customerGraphics
))
{
...
@@ -91,7 +91,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
...
@@ -91,7 +91,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
return
new
GenericsResult
<>(
false
,
"找不到主体数据"
);
return
new
GenericsResult
<>(
false
,
"找不到主体数据"
);
}
}
// 赋值主体数据
// 赋值主体数据
Customer
GraphicTextDetailVO
detailVO
=
new
CustomerGraphic
TextDetailVO
();
Customer
MessageTextDetailVO
detailVO
=
new
CustomerMessage
TextDetailVO
();
BeanUtil
.
copyProperties
(
customerGraphics
,
detailVO
);
BeanUtil
.
copyProperties
(
customerGraphics
,
detailVO
);
detailVO
.
setPostTime
(
customerGraphics
.
getPostTimeStr
());
detailVO
.
setPostTime
(
customerGraphics
.
getPostTimeStr
());
...
@@ -157,7 +157,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
...
@@ -157,7 +157,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
}
}
@Override
@Override
public
GenericsResult
<
Customer
Graphic
TextDetailVO
>
removeCustomerContent
(
Long
contentId
)
{
public
GenericsResult
<
Customer
Message
TextDetailVO
>
removeCustomerContent
(
Long
contentId
)
{
ReferralEntity
referralEntity
=
referralEntityService
.
getById
(
contentId
);
ReferralEntity
referralEntity
=
referralEntityService
.
getById
(
contentId
);
if
(
ObjectUtil
.
isNull
(
referralEntity
))
{
if
(
ObjectUtil
.
isNull
(
referralEntity
))
{
return
new
GenericsResult
<>(
false
,
"找不到主体数据"
);
return
new
GenericsResult
<>(
false
,
"找不到主体数据"
);
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerTextDelayServiceImpl.java
0 → 100644
浏览文件 @
36db6d37
package
com
.
yaoyaozw
.
customer
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageInfo
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.components.SnowflakeComponent
;
import
com.yaoyaozw.customer.components.TokenManager
;
import
com.yaoyaozw.customer.constants.CustomerCommonConstant
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayQueryDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelaySaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.CustomerTextDelayService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayDetailVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayItemVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayListVO
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Set
;
/**
* @author darker
* @date 2022/9/15 11:13
*/
@Service
public
class
CustomerTextDelayServiceImpl
extends
ServiceImpl
<
CustomerGraphicsDelayMapper
,
CustomerGraphicsDelay
>
implements
CustomerTextDelayService
{
private
final
static
Logger
localLog
=
LoggerFactory
.
getLogger
(
CustomerTextDelayServiceImpl
.
class
);
}
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerDelayDetailVO.java
0 → 100644
浏览文件 @
36db6d37
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author darker
* @date 2022/10/8 17:13
*/
@Data
public
class
CustomerDelayDetailVO
implements
Serializable
{
@ApiModelProperty
(
"客服消息id"
)
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
@ApiModelProperty
(
"标题"
)
private
String
name
;
@ApiModelProperty
(
"是否支付 0-否 1-是"
)
private
Integer
isPay
;
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
private
String
type
;
@ApiModelProperty
(
"推广标题"
)
private
String
extendTitle
;
@ApiModelProperty
(
"素材图片路径"
)
private
String
coverUrl
;
@ApiModelProperty
(
"素材文本内容"
)
private
String
content
;
@ApiModelProperty
(
"链接相关内容"
)
private
CustomerReferralDTO
customerReferralDto
;
}
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerDelayListVO.java
浏览文件 @
36db6d37
...
@@ -10,7 +10,6 @@ import java.io.Serializable;
...
@@ -10,7 +10,6 @@ import java.io.Serializable;
*/
*/
@Data
@Data
public
class
CustomerDelayListVO
implements
Serializable
{
public
class
CustomerDelayListVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
7050943048581039251L
;
...
...
src/main/java/com/yaoyaozw/customer/vo/customer/Customer
Graphic
TextDetailVO.java
→
src/main/java/com/yaoyaozw/customer/vo/customer/Customer
Message
TextDetailVO.java
浏览文件 @
36db6d37
...
@@ -15,7 +15,7 @@ import java.util.List;
...
@@ -15,7 +15,7 @@ import java.util.List;
*/
*/
@Data
@Data
@ApiModel
(
"文本客服详情实体"
)
@ApiModel
(
"文本客服详情实体"
)
public
class
Customer
Graphic
TextDetailVO
implements
Serializable
{
public
class
Customer
Message
TextDetailVO
implements
Serializable
{
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
@ApiModelProperty
(
"主键id"
)
@ApiModelProperty
(
"主键id"
)
...
...
src/main/resources/mapper/CustomerGraphicsDelayMapper.xml
浏览文件 @
36db6d37
...
@@ -34,4 +34,7 @@
...
@@ -34,4 +34,7 @@
</select>
</select>
<select
id=
"pageList"
resultType=
"com.yaoyaozw.customer.vo.customer.CustomerDelayListVO"
>
</select>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论