diff --git a/mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java b/mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java index 4e692d2c5..0be1a6aa1 100644 --- a/mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java +++ b/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 { diff --git a/mallinkService/src/main/java/com/iformall/service/util/CouponCacheUtils.java b/mallinkService/src/main/java/com/iformall/service/util/CouponCacheUtils.java index 18290a6d2..f7995d1c5 100644 --- a/mallinkService/src/main/java/com/iformall/service/util/CouponCacheUtils.java +++ b/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 template,String tenantId,Integer targetAd,Integer bussiness) { +// String key = "couponMerchant:"+couponId; +// RedisCacheUtils.removeCache(template, key); +// } +// +// public static void setDouyinLivePageCache(RedisTemplate template,Long couponId,List merchantList) { +// String key = "couponMerchant:"+couponId; +// RedisCacheUtils.cache(template, key, merchantList, 24*3600); +// } +// +// public static List getDouyinLivePageCache(RedisTemplate template,Long couponId) { +// String key = "couponMerchant:"+couponId; +// return RedisCacheUtils.getCacheListObject(template, key,WxMerchantVo.class); +// } + }