Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
b1cda11f
提交
b1cda11f
authored
3月 25, 2023
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
是否允许批量操作判断接口
上级
89ca5ab4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
44 行增加
和
1 行删除
+44
-1
CustomerDelayGraphicsController.java
.../customer/controller/CustomerDelayGraphicsController.java
+9
-0
CustomerGraphicsDelayMapper.java
...yaoyaozw/customer/mapper/CustomerGraphicsDelayMapper.java
+12
-1
CustomerGraphicsDelayService.java
...oyaozw/customer/service/CustomerGraphicsDelayService.java
+8
-0
CustomerGraphicsDelayMapper.xml
src/main/resources/mapper/CustomerGraphicsDelayMapper.xml
+15
-0
没有找到文件。
src/main/java/com/yaoyaozw/customer/controller/CustomerDelayGraphicsController.java
浏览文件 @
b1cda11f
...
@@ -16,6 +16,7 @@ import com.yaoyaozw.customer.vo.customer.CustomerDelayListVO;
...
@@ -16,6 +16,7 @@ import com.yaoyaozw.customer.vo.customer.CustomerDelayListVO;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayGraphicsDetailVO
;
import
com.yaoyaozw.customer.vo.customer.CustomerDelayGraphicsDetailVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
jodd.util.StringUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -98,4 +99,12 @@ public class CustomerDelayGraphicsController {
...
@@ -98,4 +99,12 @@ public class CustomerDelayGraphicsController {
return
customerGraphicsDelayService
.
getTimeIntervalList
();
return
customerGraphicsDelayService
.
getTimeIntervalList
();
}
}
@GetMapping
(
"/canBatchOperate"
)
public
GenericsResult
<
Boolean
>
canBatchOperate
(
@RequestParam
String
appid
)
{
if
(
StringUtil
.
isEmpty
(
appid
))
{
return
new
GenericsResult
<>(
false
);
}
return
customerGraphicsDelayService
.
canBatchOperate
(
appid
);
}
}
}
src/main/java/com/yaoyaozw/customer/mapper/CustomerGraphicsDelayMapper.java
浏览文件 @
b1cda11f
...
@@ -21,13 +21,14 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
...
@@ -21,13 +21,14 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
/**
/**
* 根据appid找有限序列的延时客服
* 根据appid找有限序列的延时客服
*
* @param appidList
* @param appidList
* @param maxSort
* @param maxSort
* @return
* @return
*/
*/
List
<
CustomerDelayItemVO
>
findDelayCustomerMessageByRange
(
@Param
(
"appidList"
)
Set
<
String
>
appidList
,
@Param
(
"maxSort"
)
Integer
maxSort
);
List
<
CustomerDelayItemVO
>
findDelayCustomerMessageByRange
(
@Param
(
"appidList"
)
Set
<
String
>
appidList
,
@Param
(
"maxSort"
)
Integer
maxSort
);
void
updateSendNumByVo
(
@Param
(
"CustomerDelayItems"
)
Set
<
CustomerDelayItemVO
>
voList
);
void
updateSendNumByVo
(
@Param
(
"CustomerDelayItems"
)
Set
<
CustomerDelayItemVO
>
voList
);
/**
/**
* 页面列表
* 页面列表
...
@@ -65,9 +66,18 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
...
@@ -65,9 +66,18 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
/**
/**
* 获取延时客服主体的公众号
* 获取延时客服主体的公众号
*
* @param customerId 延时客服主键
* @param customerId 延时客服主键
* @return 公众号
* @return 公众号
*/
*/
AuthInfoVO
getCustomerDelayAuthInfo
(
@Param
(
"customerId"
)
Long
customerId
);
AuthInfoVO
getCustomerDelayAuthInfo
(
@Param
(
"customerId"
)
Long
customerId
);
/**
* 帐户名和物质
*
* @param appidList appid列表
* @return {@link List}<{@link String}>
*/
List
<
String
>
getAccountNameWithMaterial
(
@Param
(
"appidList"
)
List
<
String
>
appidList
);
}
}
\ No newline at end of file
src/main/java/com/yaoyaozw/customer/service/CustomerGraphicsDelayService.java
浏览文件 @
b1cda11f
...
@@ -118,5 +118,13 @@ public interface CustomerGraphicsDelayService extends IService<CustomerGraphicsD
...
@@ -118,5 +118,13 @@ public interface CustomerGraphicsDelayService extends IService<CustomerGraphicsD
* @param appId 应用程序id
* @param appId 应用程序id
*/
*/
void
reSortCustomer
(
String
appId
);
void
reSortCustomer
(
String
appId
);
/**
* 可以批量操作
*
* @param appid appId
* @return {@link GenericsResult}<{@link Boolean}>
*/
GenericsResult
<
Boolean
>
canBatchOperate
(
String
appid
);
}
}
src/main/resources/mapper/CustomerGraphicsDelayMapper.xml
浏览文件 @
b1cda11f
...
@@ -140,4 +140,18 @@
...
@@ -140,4 +140,18 @@
where cgd.id = #{customerId}
where cgd.id = #{customerId}
</select>
</select>
<select
id=
"getAccountNameWithMaterial"
resultType=
"java.lang.String"
>
select
distinct ai.nick_name
from yyzwoperate.customer_graphics_delay delay
left join authorizer_info ai
on delay.app_id = ai.appid
where delay.is_deleted = 0
and ai.appid in
<foreach
collection=
"appidList"
item=
"appid"
open=
"("
close=
")"
separator=
","
>
#{appid}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论