|
|
@@ -80,7 +80,7 @@ public class TtOrderServiceImpl implements TtOrderService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public ResultData saveOrder(Long couponId,Long cUserId,EnumPayWay payWay) { |
|
|
|
|
|
|
|
|
public ResultData saveOrder(TenantEntity tenantEntity,Long couponId,Long cUserId,EnumPayWay payWay) { |
|
|
TtCoupon coupon = ttcouponMapper.selectById(couponId); |
|
|
TtCoupon coupon = ttcouponMapper.selectById(couponId); |
|
|
if (null == coupon) { |
|
|
if (null == coupon) { |
|
|
return new ResultData(ErrorCode.TTCOUPON_IS_EMPTY); |
|
|
return new ResultData(ErrorCode.TTCOUPON_IS_EMPTY); |
|
|
@@ -93,7 +93,7 @@ public class TtOrderServiceImpl implements TtOrderService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
logger.info("OrderSave: couponId:" + couponId + "---cUserId:"+cUserId); |
|
|
logger.info("OrderSave: couponId:" + couponId + "---cUserId:"+cUserId); |
|
|
TtCUser byId = ttCUserService.getById(cUserId, coupon.getTenantId()); |
|
|
|
|
|
|
|
|
TtCUser byId = ttCUserService.getById(cUserId, tenantEntity.getTenantId()); |
|
|
// WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoService.getById(cUserId,tenantEntity.getFinalTenantId()); |
|
|
// WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoService.getById(cUserId,tenantEntity.getFinalTenantId()); |
|
|
// if(wxCUserBasicInfo == null){ |
|
|
// if(wxCUserBasicInfo == null){ |
|
|
if(byId == null){ |
|
|
if(byId == null){ |
|
|
|