|
|
|
|
@ -20,6 +20,7 @@ import com.hfkj.service.BsProductConfigService; |
|
|
|
|
import com.hfkj.service.discount.CouponDiscountService; |
|
|
|
|
import com.hfkj.service.discount.CouponDiscountUserRelService; |
|
|
|
|
import com.hfkj.service.goods.BsOrderCinemaService; |
|
|
|
|
import com.hfkj.service.goods.GoodsMsgService; |
|
|
|
|
import com.hfkj.service.goods.GoodsSpecsService; |
|
|
|
|
import com.hfkj.service.goods.GoodsUserAddressService; |
|
|
|
|
import com.hfkj.service.order.*; |
|
|
|
|
@ -104,6 +105,8 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
|
private BsMerPayConfigService bsMerPayConfigService; |
|
|
|
|
@Resource |
|
|
|
|
private BsOrderMapper bsOrderMapper; |
|
|
|
|
@Resource |
|
|
|
|
private GoodsMsgService goodsMsgService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public BsOrder editData(BsOrder order) { |
|
|
|
|
@ -196,6 +199,15 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
|
skuInfo.setSkuNum(child.getProductCount()); |
|
|
|
|
skuInfoList.add(skuInfo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 查询商品
|
|
|
|
|
GoodsMsg goodsMsg = goodsMsgService.queryDetail(specs.getGoodsId()); |
|
|
|
|
if (goodsMsg == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商品不可购买!"); |
|
|
|
|
} |
|
|
|
|
if (goodsMsg.getStatus() != 1) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商品不可购买!"); |
|
|
|
|
} |
|
|
|
|
// todo 1.0阶段暂时需要返回收货地址使用
|
|
|
|
|
order.setBusiness(child.getBusiness()); |
|
|
|
|
} else if (child.getProductType().equals(OrderChildProductTypeEnum.type2.getCode())) { |
|
|
|
|
|