Commit 43d41dd0a8771d6bc168b5369bebcc4bfe17886b
1 parent
6f3ea603
feature(*): 修复开始续保跟进的一个bug
- 修复开始续保跟进的一个bug
Showing
1 changed file
with
7 additions
and
4 deletions
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,6 +12,7 @@ import cn.fw.valhalla.rpc.erp.dto.PostUserDTO; | ||
12 | import cn.fw.valhalla.rpc.oop.dto.ShopDTO; | 12 | import cn.fw.valhalla.rpc.oop.dto.ShopDTO; |
13 | import cn.fw.valhalla.rpc.shirasawa.dto.FollowInitDTO; | 13 | import cn.fw.valhalla.rpc.shirasawa.dto.FollowInitDTO; |
14 | import cn.fw.valhalla.service.bus.follow.strategy.AbstractFollowStrategy; | 14 | import cn.fw.valhalla.service.bus.follow.strategy.AbstractFollowStrategy; |
15 | +import cn.hutool.core.collection.ListUtil; | ||
15 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 16 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
16 | import lombok.extern.slf4j.Slf4j; | 17 | import lombok.extern.slf4j.Slf4j; |
17 | import org.springframework.beans.BeanUtils; | 18 | import org.springframework.beans.BeanUtils; |
@@ -21,10 +22,7 @@ import org.springframework.util.CollectionUtils; | @@ -21,10 +22,7 @@ import org.springframework.util.CollectionUtils; | ||
21 | 22 | ||
22 | import java.time.LocalDate; | 23 | import java.time.LocalDate; |
23 | import java.time.LocalDateTime; | 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 | import java.util.stream.Collectors; | 26 | import java.util.stream.Collectors; |
29 | 27 | ||
30 | import static cn.fw.common.businessvalidator.Validator.BV; | 28 | import static cn.fw.common.businessvalidator.Validator.BV; |
@@ -210,6 +208,11 @@ public class IRFollowStrategy extends AbstractFollowStrategy { | @@ -210,6 +208,11 @@ public class IRFollowStrategy extends AbstractFollowStrategy { | ||
210 | if (Objects.isNull(shopId)) { | 208 | if (Objects.isNull(shopId)) { |
211 | shopId = followClue.getSuggestShopId(); | 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 | clueTask.setFollowShop(shopId); | 216 | clueTask.setFollowShop(shopId); |
214 | clueTask.setFollowUser(userId); | 217 | clueTask.setFollowUser(userId); |
215 | return clueTask; | 218 | return clueTask; |