Commit 1d0fb6f8 by ping.wu

redis 依赖报错

parent a518333b
...@@ -119,8 +119,10 @@ public class SellCouponOrderServiceImpl { ...@@ -119,8 +119,10 @@ public class SellCouponOrderServiceImpl {
private OrderAdapter orderAdapter; private OrderAdapter orderAdapter;
@Autowired @Autowired
private OrderSdkAdapter orderSdkAdapter; private OrderSdkAdapter orderSdkAdapter;
// @Autowired
// private RedisCache redisCache;
@Autowired @Autowired
private RedisCache redisCache; protected RedisTemplate redisTemplate;
@Autowired @Autowired
private CouponService couponService; private CouponService couponService;
@Autowired @Autowired
...@@ -419,7 +421,7 @@ public class SellCouponOrderServiceImpl { ...@@ -419,7 +421,7 @@ public class SellCouponOrderServiceImpl {
String key = this.getFolwNo(requestVo.getAppId(), date); String key = this.getFolwNo(requestVo.getAppId(), date);
int flowno = 0; int flowno = 0;
RedisTemplate redisTemplate = redisCache.getRedisTemplate(); // 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