|
|
@@ -33,6 +33,7 @@ import org.springframework.data.redis.core.ValueOperations; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("/api/couponOrder") |
|
|
@RequestMapping("/api/couponOrder") |
|
|
@@ -128,6 +129,8 @@ public class WxCouponOrderController extends BaseController { |
|
|
if (wxCouponCVo == null) { |
|
|
if (wxCouponCVo == null) { |
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY); |
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY); |
|
|
} |
|
|
} |
|
|
|
|
|
// 插入缓存 |
|
|
|
|
|
operations.set(key, wxCouponCVo, 3600, TimeUnit.SECONDS); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
wxCouponOrderCVo.setType(wxCouponCVo.getType()); |
|
|
wxCouponOrderCVo.setType(wxCouponCVo.getType()); |
|
|
|