Procházet zdrojové kódy

update gift

release_toaliyun_real
xhxu před 4 roky
rodič
revize
b81c20397b
1 změnil soubory, kde provedl 16 přidání a 2 odebrání
  1. +16
    -2
      mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java

+ 16
- 2
mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java Zobrazit soubor

@@ -80,7 +80,14 @@ public class WxCouponController extends BaseController {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId转换失败" + couponChannelId); return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId转换失败" + couponChannelId);
} }


String key = "cc:" + couponChannelId;
String key = "cc:";
if(couponChannelIdL > 0){
key = key + couponChannelIdL;
}else if(couponIdL > 0){
key = key + couponIdL;
}else{
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId/couponId为空");
}


ValueOperations<String, WxCouponCVo> operations = cdRedisTemplate.opsForValue(); ValueOperations<String, WxCouponCVo> operations = cdRedisTemplate.opsForValue();
// 缓存 // 缓存
@@ -160,7 +167,14 @@ public class WxCouponController extends BaseController {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId转换失败" + couponChannelId); return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId转换失败" + couponChannelId);
} }


String key = "ch:" + couponChannelId;
String key = "ch:";
if(couponChannelIdL > 0){
key = key + couponChannelIdL;
}else if(couponIdL > 0){
key = key + couponIdL;
}else{
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannelId/couponId为空");
}


ValueOperations<String, WxCouponCVo> operations = cdRedisTemplate.opsForValue(); ValueOperations<String, WxCouponCVo> operations = cdRedisTemplate.opsForValue();
// 缓存 // 缓存


Načítá se…
Zrušit
Uložit