Commit 704d3484 by chongfu.liang

Merge branch 'feature/2.0.6-农工商商品兑换券' into develop

parents 59f922c2 e8322e4e
...@@ -57,6 +57,7 @@ import com.freemud.sdk.api.assortment.order.request.order.ProductBindingCouponTy ...@@ -57,6 +57,7 @@ import com.freemud.sdk.api.assortment.order.request.order.ProductBindingCouponTy
import com.freemud.sdk.api.assortment.order.response.order.CreateOrderResponse; import com.freemud.sdk.api.assortment.order.response.order.CreateOrderResponse;
import com.freemud.sdk.api.assortment.order.response.order.PayAccessResponse; import com.freemud.sdk.api.assortment.order.response.order.PayAccessResponse;
import com.freemud.sdk.api.assortment.order.service.OrderCenterSdkService; import com.freemud.sdk.api.assortment.order.service.OrderCenterSdkService;
import com.freemud.sdk.api.assortment.order.util.LockUtils;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -108,7 +109,7 @@ public class SellCouponOrderServiceImpl { ...@@ -108,7 +109,7 @@ public class SellCouponOrderServiceImpl {
@Autowired @Autowired
private OrderSdkAdapter orderSdkAdapter; private OrderSdkAdapter orderSdkAdapter;
@Autowired @Autowired
private static RedisTemplate redisTemplate; private RedisCache redisCache;
@Autowired @Autowired
private CouponService couponService; private CouponService couponService;
...@@ -286,6 +287,7 @@ public class SellCouponOrderServiceImpl { ...@@ -286,6 +287,7 @@ public class SellCouponOrderServiceImpl {
String key = this.getFolwNo(partnerId, date); String key = this.getFolwNo(partnerId, date);
/* /*
int flowno = 0; int flowno = 0;
RedisTemplate redisTemplate = redisCache.getRedisTemplate();
if (redisTemplate.opsForValue().setIfAbsent(key, 0)) { if (redisTemplate.opsForValue().setIfAbsent(key, 0)) {
redisTemplate.expire(key, 24, TimeUnit.HOURS); redisTemplate.expire(key, 24, TimeUnit.HOURS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment