Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
41f75ade
提交
41f75ade
authored
3月 13, 2023
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
客服链接参数实体更名
上级
09af1d22
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
31 行增加
和
38 行删除
+31
-38
CustomerDelayTextController.java
...aozw/customer/controller/CustomerDelayTextController.java
+2
-2
CustomerMessageTextController.java
...zw/customer/controller/CustomerMessageTextController.java
+2
-2
CustomerDelaySaveDTO.java
.../yaoyaozw/customer/dto/customer/CustomerDelaySaveDTO.java
+2
-1
CustomerMessageSaveDTO.java
...aoyaozw/customer/dto/customer/CustomerMessageSaveDTO.java
+2
-1
CommonReferralBody.java
...java/com/yaoyaozw/customer/entity/CommonReferralBody.java
+2
-2
CustomerDelayTextService.java
...m/yaoyaozw/customer/service/CustomerDelayTextService.java
+2
-2
CustomerGraphicsTextService.java
...aoyaozw/customer/service/CustomerGraphicsTextService.java
+2
-2
CustomerDelayTextServiceImpl.java
...w/customer/service/impl/CustomerDelayTextServiceImpl.java
+3
-9
CustomerGraphicsDelayServiceImpl.java
...stomer/service/impl/CustomerGraphicsDelayServiceImpl.java
+3
-5
CustomerGraphicsServiceImpl.java
...zw/customer/service/impl/CustomerGraphicsServiceImpl.java
+2
-3
CustomerGraphicsTextServiceImpl.java
...ustomer/service/impl/CustomerGraphicsTextServiceImpl.java
+3
-3
CustomerContentVO.java
.../com/yaoyaozw/customer/vo/customer/CustomerContentVO.java
+2
-2
CustomerDelayGraphicsDetailVO.java
...w/customer/vo/customer/CustomerDelayGraphicsDetailVO.java
+2
-2
CustomerMessageDetailVO.java
...aoyaozw/customer/vo/customer/CustomerMessageDetailVO.java
+2
-2
没有找到文件。
src/main/java/com/yaoyaozw/customer/controller/CustomerDelayTextController.java
浏览文件 @
41f75ade
...
...
@@ -4,7 +4,7 @@ import com.yaoyaozw.customer.annotations.AccountOperateControl;
import
com.yaoyaozw.customer.annotations.OperateLog
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayTextSaveDTO
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.enums.AccountParamType
;
import
com.yaoyaozw.customer.enums.AccountTableColumnType
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
...
...
@@ -37,7 +37,7 @@ public class CustomerDelayTextController {
@ApiOperation
(
"新增客服内容"
)
@PostMapping
(
"/insertCustomerContent"
)
@OperateLog
(
module
=
"延时客服-文本"
,
desc
=
"新增文本延时客服子素材"
)
public
GenericsResult
<
CustomerDelayTextDetailVO
>
insertCustomerContent
(
@RequestBody
C
ustomerReferralDTO
referralDto
)
{
public
GenericsResult
<
CustomerDelayTextDetailVO
>
insertCustomerContent
(
@RequestBody
C
ommonReferralBody
referralDto
)
{
return
textService
.
insertCustomerContent
(
referralDto
);
}
...
...
src/main/java/com/yaoyaozw/customer/controller/CustomerMessageTextController.java
浏览文件 @
41f75ade
...
...
@@ -3,7 +3,7 @@ package com.yaoyaozw.customer.controller;
import
com.yaoyaozw.customer.annotations.OperateLog
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.service.CustomerGraphicsTextService
;
import
com.yaoyaozw.customer.vo.customer.CustomerMessageTextDetailVO
;
import
io.swagger.annotations.Api
;
...
...
@@ -33,7 +33,7 @@ public class CustomerMessageTextController {
@ApiOperation
(
"新增客服内容"
)
@PostMapping
(
"/insertCustomerContent"
)
@OperateLog
(
module
=
"客服消息-文本"
,
desc
=
"新增文本客服消息子素材"
)
public
GenericsResult
<
CustomerMessageTextDetailVO
>
insertCustomerContent
(
@RequestBody
C
ustomerReferralDTO
referralDto
)
{
public
GenericsResult
<
CustomerMessageTextDetailVO
>
insertCustomerContent
(
@RequestBody
C
ommonReferralBody
referralDto
)
{
return
textService
.
insertCustomerContent
(
referralDto
);
}
...
...
src/main/java/com/yaoyaozw/customer/dto/customer/CustomerDelaySaveDTO.java
浏览文件 @
41f75ade
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.yaoyaozw.customer.entity.CommonReferralBody
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -46,7 +47,7 @@ public class CustomerDelaySaveDTO implements Serializable {
private
Integer
isPay
;
@ApiModelProperty
(
"消息内容实体"
)
private
C
ustomerReferralDTO
customerReferralDto
;
private
C
ommonReferralBody
customerReferralDto
;
private
Integer
hour
;
...
...
src/main/java/com/yaoyaozw/customer/dto/customer/CustomerMessageSaveDTO.java
浏览文件 @
41f75ade
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
import
com.yaoyaozw.customer.entity.CommonReferralBody
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -37,6 +38,6 @@ public class CustomerMessageSaveDTO implements Serializable {
private
String
content
;
@ApiModelProperty
(
"链接相关内容"
)
private
C
ustomerReferralDTO
customerReferralDto
;
private
C
ommonReferralBody
customerReferralDto
;
}
src/main/java/com/yaoyaozw/customer/
dto/customer/CustomerReferralDTO
.java
→
src/main/java/com/yaoyaozw/customer/
entity/CommonReferralBody
.java
浏览文件 @
41f75ade
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
package
com
.
yaoyaozw
.
customer
.
entity
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.util.ObjectUtil
;
...
...
@@ -20,7 +20,7 @@ import java.util.List;
* @date 2022/10/8 12:00
*/
@Data
public
class
C
ustomerReferralDTO
implements
Serializable
{
public
class
C
ommonReferralBody
implements
Serializable
{
@ApiModelProperty
(
"客服素材主体id"
)
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
...
...
src/main/java/com/yaoyaozw/customer/service/CustomerDelayTextService.java
浏览文件 @
41f75ade
...
...
@@ -3,7 +3,7 @@ package com.yaoyaozw.customer.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayTextSaveDTO
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayTextDetailVO
;
...
...
@@ -28,7 +28,7 @@ public interface CustomerDelayTextService extends IService<CustomerGraphicsDelay
* @param referralDto 推荐dto
* @return {@link GenericsResult}<{@link CustomerDelayTextDetailVO}>
*/
GenericsResult
<
CustomerDelayTextDetailVO
>
insertCustomerContent
(
C
ustomerReferralDTO
referralDto
);
GenericsResult
<
CustomerDelayTextDetailVO
>
insertCustomerContent
(
C
ommonReferralBody
referralDto
);
/**
* 得到客户文本细节
...
...
src/main/java/com/yaoyaozw/customer/service/CustomerGraphicsTextService.java
浏览文件 @
41f75ade
...
...
@@ -3,7 +3,7 @@ package com.yaoyaozw.customer.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.entity.CustomerGraphics
;
import
com.yaoyaozw.customer.vo.customer.CustomerMessageTextDetailVO
;
...
...
@@ -28,7 +28,7 @@ public interface CustomerGraphicsTextService extends IService<CustomerGraphics>
* @param referralDto 推荐dto
* @return {@link GenericsResult}<{@link CustomerMessageTextDetailVO}>
*/
GenericsResult
<
CustomerMessageTextDetailVO
>
insertCustomerContent
(
C
ustomerReferralDTO
referralDto
);
GenericsResult
<
CustomerMessageTextDetailVO
>
insertCustomerContent
(
C
ommonReferralBody
referralDto
);
/**
* 获取文本客服详情
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerDelayTextServiceImpl.java
浏览文件 @
41f75ade
...
...
@@ -5,21 +5,17 @@ import cn.hutool.core.collection.CollectionUtil;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.components.CustomerServiceCommonAsyncComponent
;
import
com.yaoyaozw.customer.components.SnowflakeComponent
;
import
com.yaoyaozw.customer.components.TokenManager
;
import
com.yaoyaozw.customer.constants.CustomerCommonConstant
;
import
com.yaoyaozw.customer.dto.customer.CustomerDelayTextSaveDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.entity.AuthorizerInfo
;
import
com.yaoyaozw.customer.entity.CommonReferralBody
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.mapper.KanbanCommonMapper
;
import
com.yaoyaozw.customer.mapper.MaterialCommonMapper
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
...
...
@@ -30,9 +26,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
...
...
@@ -102,7 +96,7 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
}
@Override
public
GenericsResult
<
CustomerDelayTextDetailVO
>
insertCustomerContent
(
C
ustomerReferralDTO
referralDto
)
{
public
GenericsResult
<
CustomerDelayTextDetailVO
>
insertCustomerContent
(
C
ommonReferralBody
referralDto
)
{
// 处理活动数据
ReferralEntity
referralEntity
=
new
ReferralEntity
();
...
...
@@ -174,7 +168,7 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
}
// 赋值链接信息
C
ustomerReferralDTO
customerReferralDto
=
new
CustomerReferralDTO
();
C
ommonReferralBody
customerReferralDto
=
new
CommonReferralBody
();
BeanUtil
.
copyProperties
(
item
,
customerReferralDto
);
customerContentVO
.
setCustomerReferralDto
(
customerReferralDto
);
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsDelayServiceImpl.java
浏览文件 @
41f75ade
...
...
@@ -15,7 +15,7 @@ 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.CommonReferralBody
;
import
com.yaoyaozw.customer.entity.AuthorizerInfo
;
import
com.yaoyaozw.customer.entity.CustomerGraphicsDelay
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
...
...
@@ -23,7 +23,6 @@ import com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper;
import
com.yaoyaozw.customer.mapper.KanbanCommonMapper
;
import
com.yaoyaozw.customer.mapper.MaterialCommonMapper
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
...
...
@@ -38,7 +37,6 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
...
...
@@ -177,12 +175,12 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
ReferralEntity
referralEntity
=
referralEntityService
.
getOne
(
new
QueryWrapper
<
ReferralEntity
>().
eq
(
"material_graphics_id"
,
id
));
if
(
ObjectUtil
.
isNotNull
(
referralEntity
))
{
C
ustomerReferralDTO
customerReferralDto
=
new
CustomerReferralDTO
();
C
ommonReferralBody
customerReferralDto
=
new
CommonReferralBody
();
BeanUtil
.
copyProperties
(
referralEntity
,
customerReferralDto
);
customerDelayGraphicsDetailVO
.
setCustomerReferralDto
(
customerReferralDto
);
}
else
{
customerDelayGraphicsDetailVO
.
setCustomerReferralDto
(
new
C
ustomerReferralDTO
());
customerDelayGraphicsDetailVO
.
setCustomerReferralDto
(
new
C
ommonReferralBody
());
}
AuthInfoVO
authInfoVO
=
super
.
baseMapper
.
getCustomerDelayAuthInfo
(
id
);
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsServiceImpl.java
浏览文件 @
41f75ade
...
...
@@ -16,7 +16,7 @@ import com.yaoyaozw.customer.dto.customer.CustomerMessageQueryDTO;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageSaveDTO
;
import
com.yaoyaozw.customer.dto.integration.IntegrationRequestDTO
;
import
com.yaoyaozw.customer.entity.AuthorizerToken
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.entity.CrowdPackageCondition
;
import
com.yaoyaozw.customer.entity.CrowdPackageConditionMatch
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
...
...
@@ -47,7 +47,6 @@ import com.yaoyaozw.customer.service.CustomerGraphicsService;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
static
java
.
util
.
stream
.
Collectors
.
collectingAndThen
;
import
static
java
.
util
.
stream
.
Collectors
.
toCollection
;
/**
...
...
@@ -131,7 +130,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
// 获取链接数据
ReferralEntity
referralEntity
=
referralEntityService
.
getOne
(
new
QueryWrapper
<
ReferralEntity
>().
eq
(
"material_graphics_id"
,
id
).
isNull
(
"account_id"
));
C
ustomerReferralDTO
customerReferralDto
=
new
CustomerReferralDTO
();
C
ommonReferralBody
customerReferralDto
=
new
CommonReferralBody
();
if
(
ObjectUtil
.
isNull
(
referralEntity
))
{
return
new
GenericsResult
<>(
false
,
"找不到链接数据"
);
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsTextServiceImpl.java
浏览文件 @
41f75ade
...
...
@@ -10,7 +10,7 @@ import com.yaoyaozw.customer.components.SnowflakeComponent;
import
com.yaoyaozw.customer.components.TokenManager
;
import
com.yaoyaozw.customer.constants.CustomerCommonConstant
;
import
com.yaoyaozw.customer.dto.customer.CustomerMessageTextSaveDTO
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.entity.CustomerGraphics
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsMapper
;
...
...
@@ -73,7 +73,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
GenericsResult
<
CustomerMessageTextDetailVO
>
insertCustomerContent
(
C
ustomerReferralDTO
referralDto
)
{
public
GenericsResult
<
CustomerMessageTextDetailVO
>
insertCustomerContent
(
C
ommonReferralBody
referralDto
)
{
// 处理活动数据
ReferralEntity
referralEntity
=
new
ReferralEntity
();
...
...
@@ -136,7 +136,7 @@ public class CustomerGraphicsTextServiceImpl extends ServiceImpl<CustomerGraphic
}
// 赋值链接信息
C
ustomerReferralDTO
customerReferralDto
=
new
CustomerReferralDTO
();
C
ommonReferralBody
customerReferralDto
=
new
CommonReferralBody
();
BeanUtil
.
copyProperties
(
item
,
customerReferralDto
);
customerContentVO
.
setCustomerReferralDto
(
customerReferralDto
);
...
...
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerContentVO.java
浏览文件 @
41f75ade
...
...
@@ -4,7 +4,7 @@ import cn.hutool.core.util.ObjectUtil;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.yaoyaozw.customer.constants.CustomerCommonConstant
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -26,7 +26,7 @@ public class CustomerContentVO implements Serializable {
private
String
content
;
@ApiModelProperty
(
"链接相关内容"
)
private
C
ustomerReferralDTO
customerReferralDto
;
private
C
ommonReferralBody
customerReferralDto
;
@ApiModelProperty
(
"是否可编辑"
)
private
Boolean
editable
;
...
...
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerDelayGraphicsDetailVO.java
浏览文件 @
41f75ade
...
...
@@ -3,7 +3,7 @@ package com.yaoyaozw.customer.vo.customer;
import
cn.hutool.core.util.ObjectUtil
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.yaoyaozw.customer.
dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -51,7 +51,7 @@ public class CustomerDelayGraphicsDetailVO implements Serializable {
private
Long
timeInterval
;
@ApiModelProperty
(
"链接相关内容"
)
private
C
ustomerReferralDTO
customerReferralDto
;
private
C
ommonReferralBody
customerReferralDto
;
private
AuthInfoVO
authInfoVo
;
...
...
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerMessageDetailVO.java
浏览文件 @
41f75ade
...
...
@@ -2,7 +2,7 @@ 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
com.yaoyaozw.customer.
entity.CommonReferralBody
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -41,6 +41,6 @@ public class CustomerMessageDetailVO implements Serializable {
private
String
content
;
@ApiModelProperty
(
"链接相关内容"
)
private
C
ustomerReferralDTO
customerReferralDto
;
private
C
ommonReferralBody
customerReferralDto
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论