Commit e27d8b69 by 张富康

feat(order): 添加客户建档分组查询和企微群功能

- 新增 CustomerProfileInfoGroupDTO 数据传输对象
- 添加 @RestController 注解支持 REST 接口
- 为所有方法添加 @PostMapping 映射注解
- 实现客户建档分页查询-月按天分组新功能
- 更新企微机器人 ID 配置值
- 添加 main 方法用于调试群成员信息获取
- 优化群成员和客户群信息获取逻辑
1 parent 0eb2fbd2
...@@ -184,6 +184,17 @@ public class GoodsOrderController { ...@@ -184,6 +184,17 @@ public class GoodsOrderController {
} }
/** /**
* 客户建档分页查询-月按天分组
*/
@ServiceMethod(method = "dj.api.smartcarlife.order.pageCustomerProfileGroupInfo", needInSession = NeedInSessionType.YES)
@ApiOperation("客户建档分页查询-月按天分组")
public RopResponse<List<CustomerProfileInfoGroupDTO>> pageCustomerProfileGroupInfo(CustomerProfileInfoRequest request) {
CustomerProfileInfoDTO dto = CommonUtil.convertRequest(CustomerProfileInfoDTO.class);
RpcResponse<List<CustomerProfileInfoGroupDTO>> res = goodsOrderRemote.pageCustomerProfileGroupInfo(dto);
return CommonUtil.convertRopResponse(res);
}
/**
* 获取客户群信息 * 获取客户群信息
*/ */
@ServiceMethod(method = "dj.api.smartcarlife.order.getCustomerGroupInfo", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.smartcarlife.order.getCustomerGroupInfo", needInSession = NeedInSessionType.YES)
...@@ -191,7 +202,7 @@ public class GoodsOrderController { ...@@ -191,7 +202,7 @@ public class GoodsOrderController {
public RopResponse<ContactDTO> getCustomerGroupInfo(CustomerProfileInfoRequest request) { public RopResponse<ContactDTO> getCustomerGroupInfo(CustomerProfileInfoRequest request) {
// 1、先用 机器人id + 类型为企微外部群 + 名称:客户姓名 查询对应的群 存个多个怎么处理? // 1、先用 机器人id + 类型为企微外部群 + 名称:客户姓名 查询对应的群 存个多个怎么处理?
// 2、在通过 机器人id + 群id 搜索类型:群成员 通许录ID = "contact_id": "R:10976960540246131" 获取群成员列表 // 2、在通过 机器人id + 群id 搜索类型:群成员 通许录ID = "contact_id": "R:10976960540246131" 获取群成员列表
String botId = OrePropertyConfigurer.getProperty("dj.customer.botId", String.class,""); String botId = OrePropertyConfigurer.getProperty("dj.customer.botId", String.class,"ee79dee25ce24003b5d14d8235240bc2");
String baseUrl = OrePropertyConfigurer.getProperty("dj.customer.groupUrl", String.class,"http://yjy.dev.glsx.com.cn/imhub/api/core/contacts"); String baseUrl = OrePropertyConfigurer.getProperty("dj.customer.groupUrl", String.class,"http://yjy.dev.glsx.com.cn/imhub/api/core/contacts");
String channel = OrePropertyConfigurer.getProperty("dj.customer.channel", String.class,"yjy_ww"); String channel = OrePropertyConfigurer.getProperty("dj.customer.channel", String.class,"yjy_ww");
String url = baseUrl + String url = baseUrl +
...@@ -226,7 +237,7 @@ public class GoodsOrderController { ...@@ -226,7 +237,7 @@ public class GoodsOrderController {
public RopResponse<List<ContactDTO>> getCustomerGroupMemberInfo(CustomerProfileInfoRequest request) { public RopResponse<List<ContactDTO>> getCustomerGroupMemberInfo(CustomerProfileInfoRequest request) {
// 1、先用 机器人id + 类型为企微外部群 + 名称:客户姓名 查询对应的群 存个多个怎么处理? // 1、先用 机器人id + 类型为企微外部群 + 名称:客户姓名 查询对应的群 存个多个怎么处理?
// 2、在通过 机器人id + 群id 搜索类型:群成员 通许录ID = "contact_id": "R:10976960540246131" 获取群成员列表 // 2、在通过 机器人id + 群id 搜索类型:群成员 通许录ID = "contact_id": "R:10976960540246131" 获取群成员列表
String botId = OrePropertyConfigurer.getProperty("dj.customer.botId", String.class,""); String botId = OrePropertyConfigurer.getProperty("dj.customer.botId", String.class,"ee79dee25ce24003b5d14d8235240bc2");
String baseUrl = OrePropertyConfigurer.getProperty("dj.customer.groupUrl", String.class,"http://yjy.dev.glsx.com.cn/imhub/api/core/contacts"); String baseUrl = OrePropertyConfigurer.getProperty("dj.customer.groupUrl", String.class,"http://yjy.dev.glsx.com.cn/imhub/api/core/contacts");
String channel = OrePropertyConfigurer.getProperty("dj.customer.channel", String.class,"yjy_ww"); String channel = OrePropertyConfigurer.getProperty("dj.customer.channel", String.class,"yjy_ww");
String url = baseUrl + String url = baseUrl +
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!