Commit d4aa48b8 by ping.wu

恢复灰度压测前代码

parent 11208477
......@@ -149,10 +149,10 @@ public class OrderAdapterServiceImpl implements OrderAdapterService {
// 锁定秒数从apollo获取,如果apollo没有设置,默认5秒
String createOrderKey = CREATE_ORDER_KEY + assortmentCustomerInfoVo.getMemberId();
try {
// Long expire = Long.valueOf(createOrderKeyExpire);
// if (!LockUtils.lock(redisCache.getRedisTemplate(), createOrderKey, expire)) {
// return ResponseUtil.error(ResponseResult.ORDER_NOT_CREATE_ERROR);
// }
Long expire = Long.valueOf(createOrderKeyExpire);
if (!LockUtils.lock(redisCache.getRedisTemplate(), createOrderKey, expire)) {
return ResponseUtil.error(ResponseResult.ORDER_NOT_CREATE_ERROR);
}
return orderService.createOrderNew(createOrderVo);
} catch (Exception e) {
throw e;
......
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