Commit 319dfd58dd45a8218f249580ae1101165cfb21e5
1 parent
0979a9a0
feature(*): 修复bug
- 修复bug
Showing
6 changed files
with
5 additions
and
16 deletions
fw-valhalla-common/src/main/java/cn/fw/valhalla/common/constant/RedisKey.java
fw-valhalla-rpc/src/main/java/cn/fw/valhalla/rpc/shirasawa/ShirasawaRpcService.java
... | ... | @@ -7,14 +7,12 @@ import cn.fw.shirasawa.sdk.param.FollowChangeUserDTO; |
7 | 7 | import cn.fw.shirasawa.sdk.param.FollowGenerateDTO; |
8 | 8 | import cn.fw.shirasawa.sdk.param.TaskCompleteDTO; |
9 | 9 | import cn.fw.shirasawa.sdk.param.TerminationDTO; |
10 | -import cn.fw.valhalla.common.constant.RedisKey; | |
11 | 10 | import cn.fw.valhalla.common.utils.DateUtil; |
12 | 11 | import cn.fw.valhalla.rpc.shirasawa.dto.ClueStopDTO; |
13 | 12 | import cn.fw.valhalla.rpc.shirasawa.dto.FollowInitDTO; |
14 | 13 | import lombok.RequiredArgsConstructor; |
15 | 14 | import lombok.extern.slf4j.Slf4j; |
16 | 15 | import org.springframework.beans.BeanUtils; |
17 | -import org.springframework.cache.annotation.Cacheable; | |
18 | 16 | import org.springframework.stereotype.Service; |
19 | 17 | |
20 | 18 | import java.time.LocalDate; |
... | ... | @@ -126,7 +124,6 @@ public class ShirasawaRpcService { |
126 | 124 | * @param userId |
127 | 125 | * @return |
128 | 126 | */ |
129 | - @Cacheable(cacheNames = RedisKey.TODO_COUNT, key = "#userId", condition = "#result!=null && #result==true") | |
130 | 127 | public Boolean hasOngoingFollow(Long userId) { |
131 | 128 | try { |
132 | 129 | if (Objects.isNull(userId)) { | ... | ... |
fw-valhalla-server/src/main/resources/application.yml
fw-valhalla-service/src/main/java/cn/fw/valhalla/component/consumer/FollowResultConsumer.java
... | ... | @@ -2,7 +2,6 @@ package cn.fw.valhalla.component.consumer; |
2 | 2 | |
3 | 3 | import cn.fw.shirasawa.sdk.enums.DataTypeEnum; |
4 | 4 | import cn.fw.shirasawa.sdk.mq.FollowResultDTO; |
5 | -import cn.fw.valhalla.common.constant.RedisKey; | |
6 | 5 | import cn.fw.valhalla.domain.db.follow.FollowClue; |
7 | 6 | import cn.fw.valhalla.domain.enums.FollowTypeEnum; |
8 | 7 | import cn.fw.valhalla.service.bus.follow.FollowBizService; |
... | ... | @@ -14,7 +13,6 @@ import lombok.extern.slf4j.Slf4j; |
14 | 13 | import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; |
15 | 14 | import org.apache.rocketmq.spring.core.RocketMQListener; |
16 | 15 | import org.springframework.beans.factory.annotation.Autowired; |
17 | -import org.springframework.cache.annotation.CacheEvict; | |
18 | 16 | import org.springframework.stereotype.Component; |
19 | 17 | |
20 | 18 | import java.util.HashSet; |
... | ... | @@ -48,7 +46,6 @@ public class FollowResultConsumer implements RocketMQListener<FollowResultDTO> { |
48 | 46 | } |
49 | 47 | |
50 | 48 | @Override |
51 | - @CacheEvict(cacheNames = RedisKey.TODO_COUNT, key = "#dto.userId", beforeInvocation = true) | |
52 | 49 | public void onMessage(FollowResultDTO dto) { |
53 | 50 | log.info("处理跟进结果MQ消息:{}", JSONObject.toJSONString(dto)); |
54 | 51 | try { | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerBizService.java
... | ... | @@ -4,7 +4,6 @@ import cn.fw.common.exception.BusinessException; |
4 | 4 | import cn.fw.common.page.AppPage; |
5 | 5 | import cn.fw.common.web.annotation.DisLock; |
6 | 6 | import cn.fw.common.web.auth.LoginAuthBean; |
7 | -import cn.fw.valhalla.common.constant.RedisKey; | |
8 | 7 | import cn.fw.valhalla.common.constant.RoleCode; |
9 | 8 | import cn.fw.valhalla.common.utils.BeanUtils; |
10 | 9 | import cn.fw.valhalla.common.utils.DateUtil; |
... | ... | @@ -54,7 +53,6 @@ import lombok.Getter; |
54 | 53 | import lombok.RequiredArgsConstructor; |
55 | 54 | import lombok.extern.slf4j.Slf4j; |
56 | 55 | import org.springframework.beans.factory.annotation.Value; |
57 | -import org.springframework.cache.annotation.CacheEvict; | |
58 | 56 | import org.springframework.context.ApplicationEventPublisher; |
59 | 57 | import org.springframework.stereotype.Service; |
60 | 58 | import org.springframework.transaction.annotation.Transactional; |
... | ... | @@ -503,7 +501,6 @@ public class CustomerBizService extends AbstractCustomerService { |
503 | 501 | * |
504 | 502 | * @param task |
505 | 503 | */ |
506 | - @CacheEvict(cacheNames = RedisKey.TODO_COUNT, key = "#task.followUser", beforeInvocation = true) | |
507 | 504 | @Transactional(rollbackFor = Exception.class) |
508 | 505 | public void abandon(final ClueTask task) { |
509 | 506 | List<FollowTypeEnum> typeList = Arrays.asList(FollowTypeEnum.AC, FollowTypeEnum.IR); | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/pub/PubStandBizService.java
... | ... | @@ -323,7 +323,11 @@ public class PubStandBizService { |
323 | 323 | .ifPresent(r -> standVO.setIncreaseCount(r.getDetailValue())); |
324 | 324 | }); |
325 | 325 | |
326 | - CompletableFuture.allOf(future1, future2, future3); | |
326 | + try { | |
327 | + CompletableFuture.allOf(future1, future2, future3).get(); | |
328 | + } catch (Exception e) { | |
329 | + log.error("查询配置失败:", e); | |
330 | + } | |
327 | 331 | } |
328 | 332 | |
329 | 333 | private void fillPubStandVO(final PubStandVO vo, final PubStandStaffInfo staffInfo) { | ... | ... |