Commit 0979a9a0798049da7a7859758cd5afdae866011f
1 parent
a2b94be6
feature(*): 修复bug
- 修复bug
Showing
1 changed file
with
3 additions
and
0 deletions
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerBizService.java
... | ... | @@ -4,6 +4,7 @@ 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; | |
7 | 8 | import cn.fw.valhalla.common.constant.RoleCode; |
8 | 9 | import cn.fw.valhalla.common.utils.BeanUtils; |
9 | 10 | import cn.fw.valhalla.common.utils.DateUtil; |
... | ... | @@ -53,6 +54,7 @@ import lombok.Getter; |
53 | 54 | import lombok.RequiredArgsConstructor; |
54 | 55 | import lombok.extern.slf4j.Slf4j; |
55 | 56 | import org.springframework.beans.factory.annotation.Value; |
57 | +import org.springframework.cache.annotation.CacheEvict; | |
56 | 58 | import org.springframework.context.ApplicationEventPublisher; |
57 | 59 | import org.springframework.stereotype.Service; |
58 | 60 | import org.springframework.transaction.annotation.Transactional; |
... | ... | @@ -501,6 +503,7 @@ public class CustomerBizService extends AbstractCustomerService { |
501 | 503 | * |
502 | 504 | * @param task |
503 | 505 | */ |
506 | + @CacheEvict(cacheNames = RedisKey.TODO_COUNT, key = "#task.followUser", beforeInvocation = true) | |
504 | 507 | @Transactional(rollbackFor = Exception.class) |
505 | 508 | public void abandon(final ClueTask task) { |
506 | 509 | List<FollowTypeEnum> typeList = Arrays.asList(FollowTypeEnum.AC, FollowTypeEnum.IR); | ... | ... |