|
|
|
@ -17,6 +17,7 @@ import com.hfkj.service.coupon.channel.PetroConfig; |
|
|
|
|
import com.hfkj.service.goods.BsOrderGoodsService; |
|
|
|
|
import com.hfkj.service.goods.GoodsMsgService; |
|
|
|
|
import com.hfkj.service.goods.GoodsVpdService; |
|
|
|
|
import com.hfkj.service.goods.impl.GoodsSpecsServiceImpl; |
|
|
|
|
import com.hfkj.service.hlt.HuiLianTongUnionCardService; |
|
|
|
|
import com.hfkj.sysenum.GoodsVpdSourceEnum; |
|
|
|
|
import com.hfkj.sysenum.order.OrderChildProductTypeEnum; |
|
|
|
@ -48,6 +49,7 @@ public class OrderPaySuccessService { |
|
|
|
|
private GoodsMsgService goodsMsgService; |
|
|
|
|
@Resource |
|
|
|
|
private GoodsVpdService goodsVpdService; |
|
|
|
|
private GoodsSpecsServiceImpl goodsSpecsService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 订单业务处理 |
|
|
|
@ -186,6 +188,9 @@ public class OrderPaySuccessService { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System , ErrorCode.COMMON_ERROR , "未查询到相关内容"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
goodsMsgService.editSaleNum(goodsOrder.getGoodsId() , goodsOrder.getGoodsCount() , 1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
goodsOrder.setUpdateTime(new Date()); |
|
|
|
|
goodsOrder.setStatus(1); |
|
|
|
|
bsOrderGoodsService.update(goodsOrder); |
|
|
|
|