Commit 43d41dd0a8771d6bc168b5369bebcc4bfe17886b

Authored by 张志伟
1 parent 6f3ea603

:sparkles: feature(*): 修复开始续保跟进的一个bug

- 修复开始续保跟进的一个bug
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/IRFollowStrategy.java
... ... @@ -12,6 +12,7 @@ import cn.fw.valhalla.rpc.erp.dto.PostUserDTO;
12 12 import cn.fw.valhalla.rpc.oop.dto.ShopDTO;
13 13 import cn.fw.valhalla.rpc.shirasawa.dto.FollowInitDTO;
14 14 import cn.fw.valhalla.service.bus.follow.strategy.AbstractFollowStrategy;
  15 +import cn.hutool.core.collection.ListUtil;
15 16 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
16 17 import lombok.extern.slf4j.Slf4j;
17 18 import org.springframework.beans.BeanUtils;
... ... @@ -21,10 +22,7 @@ import org.springframework.util.CollectionUtils;
21 22  
22 23 import java.time.LocalDate;
23 24 import java.time.LocalDateTime;
24   -import java.util.List;
25   -import java.util.Objects;
26   -import java.util.Optional;
27   -import java.util.Random;
  25 +import java.util.*;
28 26 import java.util.stream.Collectors;
29 27  
30 28 import static cn.fw.common.businessvalidator.Validator.BV;
... ... @@ -210,6 +208,11 @@ public class IRFollowStrategy extends AbstractFollowStrategy {
210 208 if (Objects.isNull(shopId)) {
211 209 shopId = followClue.getSuggestShopId();
212 210 }
  211 + if (shopId == 146L) {
  212 + ArrayList<Long> arrayList = ListUtil.toList(67L, 65L, 66L);
  213 + int randomIndex = new Random().nextInt(arrayList.size());
  214 + shopId = arrayList.get(randomIndex);
  215 + }
213 216 clueTask.setFollowShop(shopId);
214 217 clueTask.setFollowUser(userId);
215 218 return clueTask;
... ...