diff --git a/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/IRFollowStrategy.java b/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/IRFollowStrategy.java index 427fe92..ecbf259 100644 --- a/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/IRFollowStrategy.java +++ b/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; import cn.fw.valhalla.rpc.oop.dto.ShopDTO; import cn.fw.valhalla.rpc.shirasawa.dto.FollowInitDTO; import cn.fw.valhalla.service.bus.follow.strategy.AbstractFollowStrategy; +import cn.hutool.core.collection.ListUtil; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; @@ -21,10 +22,7 @@ import org.springframework.util.CollectionUtils; import java.time.LocalDate; import java.time.LocalDateTime; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.Random; +import java.util.*; import java.util.stream.Collectors; import static cn.fw.common.businessvalidator.Validator.BV; @@ -210,6 +208,11 @@ public class IRFollowStrategy extends AbstractFollowStrategy { if (Objects.isNull(shopId)) { shopId = followClue.getSuggestShopId(); } + if (shopId == 146L) { + ArrayList arrayList = ListUtil.toList(67L, 65L, 66L); + int randomIndex = new Random().nextInt(arrayList.size()); + shopId = arrayList.get(randomIndex); + } clueTask.setFollowShop(shopId); clueTask.setFollowUser(userId); return clueTask;