订单支付修改
This commit is contained in:
@@ -389,7 +389,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
couponRecordMap.forEach((type, record) -> {
|
||||
//1-满减券,2-商品兑换券,3-折扣券,4-第二件半价券, 6-买一送一券,
|
||||
// 7-固定价格券,8-免配送费券 暂时没有
|
||||
if (type == 2) {//商品券
|
||||
if (type == 2) {//商品券z
|
||||
ShopCoupon coupon = checkCoupon(record, param.isVipPrice());
|
||||
if (coupon.getOtherCouponShare() != 1) {
|
||||
otherCouponShare.set(false);
|
||||
|
||||
@@ -259,9 +259,9 @@ public class PayServiceImpl implements PayService {
|
||||
OrderInfo orderInfo = checkPay(payParam.getCheckOrderPay());
|
||||
ShopInfo shopInfo = shopInfoService.getById(payParam.getShopId());
|
||||
AssertUtil.isNull(shopInfo, "店铺不存在");
|
||||
if (!shopInfo.getIsAccountPay().equals(1)) {
|
||||
return CzgResult.failure("支付失败,店铺暂未开启会员余额支付。");
|
||||
}
|
||||
// if (!shopInfo.getIsAccountPay().equals(1)) {
|
||||
// return CzgResult.failure("支付失败,店铺暂未开启会员余额支付。");
|
||||
// }
|
||||
AssertUtil.isNull(payParam.getShopUserId(), "请选择付款人后重试");
|
||||
ShopUser shopUser = shopUserService.getById(payParam.getShopUserId());
|
||||
AssertUtil.isNull(shopUser, "支付失败 该店铺用户不存在");
|
||||
|
||||
Reference in New Issue
Block a user