Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
e179d0b5
提交
e179d0b5
authored
10月 20, 2022
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
延时客服时间选择
上级
a5d6c16f
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
106 行增加
和
5 行删除
+106
-5
CustomerDelaySaveDTO.java
.../yaoyaozw/customer/dto/customer/CustomerDelaySaveDTO.java
+15
-0
CustomerDelayTextSaveDTO.java
...yaozw/customer/dto/customer/CustomerDelayTextSaveDTO.java
+15
-0
CustomerDelayTextServiceImpl.java
...w/customer/service/impl/CustomerDelayTextServiceImpl.java
+11
-0
CustomerDelayGraphicsDetailVO.java
...w/customer/vo/customer/CustomerDelayGraphicsDetailVO.java
+21
-0
CustomerDelayListVO.java
...om/yaoyaozw/customer/vo/customer/CustomerDelayListVO.java
+21
-0
CustomerDelayTextDetailVO.java
...yaozw/customer/vo/customer/CustomerDelayTextDetailVO.java
+22
-0
CustomerGraphicsDelayMapper.xml
src/main/resources/mapper/CustomerGraphicsDelayMapper.xml
+1
-5
没有找到文件。
src/main/java/com/yaoyaozw/customer/dto/customer/CustomerDelaySaveDTO.java
浏览文件 @
e179d0b5
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
import
cn.hutool.core.util.ObjectUtil
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -47,4 +48,18 @@ public class CustomerDelaySaveDTO implements Serializable {
...
@@ -47,4 +48,18 @@ public class CustomerDelaySaveDTO implements Serializable {
@ApiModelProperty
(
"消息内容实体"
)
@ApiModelProperty
(
"消息内容实体"
)
private
CustomerReferralDTO
customerReferralDto
;
private
CustomerReferralDTO
customerReferralDto
;
private
Integer
hour
;
private
Integer
minute
;
public
Long
getTimeInterval
()
{
long
stamp
=
0L
;
if
(
ObjectUtil
.
isNotNull
(
this
.
hour
))
{
stamp
+=
this
.
hour
*
1000
*
60
*
60
;
}
if
(
ObjectUtil
.
isNotNull
(
this
.
minute
))
{
stamp
+=
this
.
minute
*
1000
*
60
;
}
return
stamp
==
0
?
null
:
stamp
;
}
}
}
src/main/java/com/yaoyaozw/customer/dto/customer/CustomerDelayTextSaveDTO.java
浏览文件 @
e179d0b5
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
package
com
.
yaoyaozw
.
customer
.
dto
.
customer
;
import
cn.hutool.core.util.ObjectUtil
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -35,5 +36,19 @@ public class CustomerDelayTextSaveDTO implements Serializable {
...
@@ -35,5 +36,19 @@ public class CustomerDelayTextSaveDTO implements Serializable {
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
@ApiModelProperty
(
"客服消息类型(图文、文本)"
)
private
String
type
;
private
String
type
;
private
Integer
hour
;
private
Integer
minute
;
public
Long
getTimeInterval
()
{
long
stamp
=
0L
;
if
(
ObjectUtil
.
isNotNull
(
this
.
hour
))
{
stamp
+=
this
.
hour
*
1000
*
60
*
60
;
}
if
(
ObjectUtil
.
isNotNull
(
this
.
minute
))
{
stamp
+=
this
.
minute
*
1000
*
60
;
}
return
stamp
==
0
?
null
:
stamp
;
}
}
}
src/main/java/com/yaoyaozw/customer/service/impl/CustomerDelayTextServiceImpl.java
浏览文件 @
e179d0b5
...
@@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollectionUtil;
...
@@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollectionUtil;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yaoyaozw.customer.common.BaseResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.common.GenericsResult
;
import
com.yaoyaozw.customer.components.CustomerServiceCommonAsyncComponent
;
import
com.yaoyaozw.customer.components.CustomerServiceCommonAsyncComponent
;
import
com.yaoyaozw.customer.components.SnowflakeComponent
;
import
com.yaoyaozw.customer.components.SnowflakeComponent
;
...
@@ -61,6 +62,16 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
...
@@ -61,6 +62,16 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
@Override
@Override
public
GenericsResult
<
String
>
insertCustomerDelay
(
CustomerDelayTextSaveDTO
saveDto
)
{
public
GenericsResult
<
String
>
insertCustomerDelay
(
CustomerDelayTextSaveDTO
saveDto
)
{
StringBuilder
builder
=
new
StringBuilder
();
if
(
StringUtils
.
isBlank
(
saveDto
.
getName
()))
{
builder
.
append
(
"请填写标题"
);
}
if
(
ObjectUtil
.
isNull
(
saveDto
.
getTimeInterval
()))
{
builder
.
append
(
StringUtils
.
isBlank
(
builder
)
?
"请填写时间"
:
"、时间"
);
}
if
(
StringUtils
.
isNotBlank
(
builder
))
{
return
new
GenericsResult
<>(
false
,
builder
.
toString
());
}
// 主体数据
// 主体数据
localLog
.
info
(
"处理主体数据"
);
localLog
.
info
(
"处理主体数据"
);
CustomerGraphicsDelay
customerGraphicsDelay
=
new
CustomerGraphicsDelay
();
CustomerGraphicsDelay
customerGraphicsDelay
=
new
CustomerGraphicsDelay
();
...
...
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerDelayGraphicsDetailVO.java
浏览文件 @
e179d0b5
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
import
com.yaoyaozw.customer.dto.customer.CustomerReferralDTO
;
...
@@ -54,4 +55,24 @@ public class CustomerDelayGraphicsDetailVO implements Serializable {
...
@@ -54,4 +55,24 @@ public class CustomerDelayGraphicsDetailVO implements Serializable {
private
AuthInfoVO
authInfoVo
;
private
AuthInfoVO
authInfoVo
;
private
Integer
hour
;
private
Integer
minute
;
public
Integer
getHour
()
{
if
(
ObjectUtil
.
isNull
(
this
.
timeInterval
))
{
return
null
;
}
long
hourNum
=
this
.
timeInterval
/
(
1000
*
60
*
60
);
return
Integer
.
parseInt
(
String
.
valueOf
(
hourNum
));
}
public
Integer
getMinute
()
{
// 除去小时,取余
long
minuteRest
=
this
.
timeInterval
%
(
1000
*
60
*
60
);
// 转换成分钟
long
minuteNum
=
minuteRest
/
(
1000
*
60
);
return
Integer
.
parseInt
(
String
.
valueOf
(
minuteNum
));
}
}
}
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerDelayListVO.java
浏览文件 @
e179d0b5
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.yaoyaozw.customer.constants.CustomerCommonConstant
;
import
com.yaoyaozw.customer.constants.CustomerCommonConstant
;
...
@@ -37,6 +38,8 @@ public class CustomerDelayListVO implements Serializable {
...
@@ -37,6 +38,8 @@ public class CustomerDelayListVO implements Serializable {
@ApiModelProperty
(
"时间间隔"
)
@ApiModelProperty
(
"时间间隔"
)
private
String
timeInterval
;
private
String
timeInterval
;
private
Long
timeStamp
;
@ApiModelProperty
(
"发送状态值"
)
@ApiModelProperty
(
"发送状态值"
)
private
String
sendStatus
;
private
String
sendStatus
;
...
@@ -47,5 +50,23 @@ public class CustomerDelayListVO implements Serializable {
...
@@ -47,5 +50,23 @@ public class CustomerDelayListVO implements Serializable {
return
CustomerCommonConstant
.
getCustomerType
(
this
.
type
);
return
CustomerCommonConstant
.
getCustomerType
(
this
.
type
);
}
}
public
String
getTimeInterval
()
{
if
(
ObjectUtil
.
isNull
(
this
.
timeStamp
))
{
return
null
;
}
// 小时
long
hour
=
this
.
timeStamp
/
(
1000
*
60
*
60
);
// 去除小时
long
minuteRest
=
this
.
timeStamp
%
(
1000
*
60
*
60
);
long
minute
=
minuteRest
/
(
1000
*
60
);
if
(
hour
==
0
)
{
return
minute
+
"分钟"
;
}
if
(
minute
==
0
)
{
return
hour
+
"小时"
;
}
return
hour
+
"小时"
+
minute
+
"分钟"
;
}
}
}
src/main/java/com/yaoyaozw/customer/vo/customer/CustomerDelayTextDetailVO.java
浏览文件 @
e179d0b5
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
package
com
.
yaoyaozw
.
customer
.
vo
.
customer
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
...
@@ -48,4 +49,25 @@ public class CustomerDelayTextDetailVO implements Serializable {
...
@@ -48,4 +49,25 @@ public class CustomerDelayTextDetailVO implements Serializable {
private
AuthInfoVO
authInfoVo
;
private
AuthInfoVO
authInfoVo
;
private
Integer
hour
;
private
Integer
minute
;
public
Integer
getHour
()
{
if
(
ObjectUtil
.
isNull
(
this
.
timeInterval
))
{
return
null
;
}
long
hourNum
=
this
.
timeInterval
/
(
1000
*
60
*
60
);
return
Integer
.
parseInt
(
String
.
valueOf
(
hourNum
));
}
public
Integer
getMinute
()
{
// 除去小时,取余
long
minuteRest
=
this
.
timeInterval
%
(
1000
*
60
*
60
);
// 转换成分钟
long
minuteNum
=
minuteRest
/
(
1000
*
60
);
return
Integer
.
parseInt
(
String
.
valueOf
(
minuteNum
));
}
}
}
src/main/resources/mapper/CustomerGraphicsDelayMapper.xml
浏览文件 @
e179d0b5
...
@@ -48,17 +48,13 @@
...
@@ -48,17 +48,13 @@
cgd.type,
cgd.type,
ai.nick_name as accountName,
ai.nick_name as accountName,
cgd.post_sort as postSort,
cgd.post_sort as postSort,
t_dic.dic_value as timeInterval
,
cgd.time_interval as `timestamp`
,
s_dic.dic_value as sendStatus
s_dic.dic_value as sendStatus
from customer_graphics_delay cgd
from customer_graphics_delay cgd
left join authorizer_info ai
left join authorizer_info ai
on cgd.app_id = ai.appid
on cgd.app_id = ai.appid
left join sys_dictionary t_dic
on t_dic.group_id = 'CUSTOMER_TIME_INTERVAL'
and t_dic.dic_key = cgd.time_interval
left join sys_dictionary s_dic
left join sys_dictionary s_dic
on s_dic.group_id = 'CUSTOMER_SEND_STATUS'
on s_dic.group_id = 'CUSTOMER_SEND_STATUS'
and s_dic.dic_key = cgd.send_status
and s_dic.dic_key = cgd.send_status
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论