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