winter 4 лет назад
Родитель
Сommit
5071f47a01
2 измененных файлов: 17 добавлений и 1 удалений
  1. +2
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java
  2. +15
    -0
      mallinkService/src/main/java/com/iformall/service/util/CouponCacheUtils.java

+ 2
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java Просмотреть файл

@@ -251,7 +251,8 @@ public class WxCouponController extends BaseController {
if (null == coupon) {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId查询不到coupon");
}
sb.append("{\"salePrice\":");
sb.append("{\"id\":").append(cc.getId());
sb.append(",\"salePrice\":");
if (null != cc.getChannelPrice()) {
sb.append(cc.getChannelPrice());
}else {


+ 15
- 0
mallinkService/src/main/java/com/iformall/service/util/CouponCacheUtils.java Просмотреть файл

@@ -57,4 +57,19 @@ public class CouponCacheUtils {
return RedisCacheUtils.getCacheListObject(template, key,WxMerchantVo.class);
}
// public static void removeDouyinLivePageCache(RedisTemplate<String, Object> template,String tenantId,Integer targetAd,Integer bussiness) {
// String key = "couponMerchant:"+couponId;
// RedisCacheUtils.removeCache(template, key);
// }
//
// public static void setDouyinLivePageCache(RedisTemplate<String, Object> template,Long couponId,List<WxMerchantVo> merchantList) {
// String key = "couponMerchant:"+couponId;
// RedisCacheUtils.cache(template, key, merchantList, 24*3600);
// }
//
// public static List<WxMerchantVo> getDouyinLivePageCache(RedisTemplate<String, Object> template,Long couponId) {
// String key = "couponMerchant:"+couponId;
// return RedisCacheUtils.getCacheListObject(template, key,WxMerchantVo.class);
// }
}

Загрузка…
Отмена
Сохранить