提交 46ff7f38 作者: 沈振路

刷新人群包人数的测试类接口

上级 6f324ef7
...@@ -3,6 +3,7 @@ package com.yaoyaozw.customer.controller; ...@@ -3,6 +3,7 @@ package com.yaoyaozw.customer.controller;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yaoyaozw.customer.components.CustomerServiceCommonAsyncComponent;
import com.yaoyaozw.customer.constants.CustomerMaterialConstant; import com.yaoyaozw.customer.constants.CustomerMaterialConstant;
import com.yaoyaozw.customer.dto.integration.IntegrationRequestDTO; import com.yaoyaozw.customer.dto.integration.IntegrationRequestDTO;
import com.yaoyaozw.customer.entity.CustomerFollowReply; import com.yaoyaozw.customer.entity.CustomerFollowReply;
...@@ -19,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -19,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
...@@ -152,5 +154,12 @@ public class TestController { ...@@ -152,5 +154,12 @@ public class TestController {
weChatService.sendCustomerMessage(userList.get(0).getAppId(), entity, userList, referralEntityVos); weChatService.sendCustomerMessage(userList.get(0).getAppId(), entity, userList, referralEntityVos);
} }
@Autowired
private CustomerServiceCommonAsyncComponent asyncComponent;
@GetMapping("/refreshCrowdPackageUserCount")
public void refreshCrowdPackageUserCount(@RequestParam Long id) {
asyncComponent.addMatchUserIntoPackage(id, true);
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论