Commit 465f4ea5 by xiaoer.li@freemud.com

Merge remote-tracking branch 'origin/qa' into qa

parents 1936c03c 4004974e
......@@ -577,7 +577,7 @@ public class EncircleOrderServiceImpl implements EncircleOrderService {
}finally {
//释放锁
RedisLock.getInstance(redisTemplate).unlock(orderCommonService.redisLockInfo(assortmentCustomerInfoVo,RedisCacheEnum.CREATE_PRE_PAYMENTORDER_LOCKKEY_PREFIX));
if((orderResponseVo != null && Objects.equals(orderResponseVo.getPaySuccess(), false)) || updateDiscountApportion) {
if(orderResponseVo != null && Objects.equals(orderResponseVo.getPaySuccess(), false) && updateDiscountApportion) {
//记录订单支付状态,防止用户在唤起支付后继续下单,同时也防止重复进行促销计算
mealCacheManager.setOrderCreatePreParmentLock(assortmentCustomerInfoVo.getPartnerId(),assortmentCustomerInfoVo.getStoreId(),assortmentCustomerInfoVo.getTableNumber());
}
......
......@@ -171,7 +171,7 @@ public class OrderCommonService {
if (!ObjectUtils.equals(ResponseCodeConstant.RESPONSE_SUCCESS, baseOrderResponse.getErrcode())) {
throw new ServiceException(ResponseResult.ORDER_EDIT_ERROR,baseOrderResponse.getErrmsg());
}
if (orderBean.getAmount() > 0) {
if (orderBean.getAmount() > 0 && StringUtils.isBlank(cardCode)) {
createOrderResponseVo.setPaySuccess(false);
} else {
createOrderResponseVo.setPaySuccess(true);
......
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