|
|
@@ -105,6 +105,7 @@ public class OrderService {
|
|
|
private CollectionPrivilegeRepo collectionPrivilegeRepo;
|
|
|
private UserBankCardRepo userBankCardRepo;
|
|
|
private IdentityAuthRepo identityAuthRepo;
|
|
|
+ private CacheService cacheService;
|
|
|
|
|
|
public Page<Order> all(PageQuery pageQuery) {
|
|
|
return orderRepo.findAll(JpaUtils.toSpecification(pageQuery, Order.class), JpaUtils.toPageRequest(pageQuery));
|
|
|
@@ -828,6 +829,7 @@ public class OrderService {
|
|
|
//加上积分
|
|
|
if (ObjectUtils.isNotEmpty(order.getVipPoint()) && order.getVipPoint() > 0) {
|
|
|
userRepo.updateVipPoint(order.getUserId(), order.getVipPoint());
|
|
|
+ cacheService.clearUserMy(order.getUserId());
|
|
|
log.info("取消加积分用户ID:{},订单ID:{},积分:{}", order.getUserId(), order.getId(), order.getVipPoint());
|
|
|
}
|
|
|
if (order.isVip()) {
|