|
|
|
@ -8,6 +8,7 @@ import com.hfkj.model.order.OrderChildModel; |
|
|
|
|
import com.hfkj.model.order.OrderModel; |
|
|
|
|
import com.hfkj.service.coupon.BsOrderCouponService; |
|
|
|
|
import com.hfkj.service.goods.GoodsMsgService; |
|
|
|
|
import com.hfkj.service.goods.GoodsSpecsService; |
|
|
|
|
import com.hfkj.sysenum.order.OrderChildProductTypeEnum; |
|
|
|
|
import com.hfkj.sysenum.order.OrderChildStatusEnum; |
|
|
|
|
import org.slf4j.Logger; |
|
|
|
@ -41,7 +42,8 @@ public class OrderCancelService { |
|
|
|
|
private BsOrderCouponService orderCouponService; |
|
|
|
|
@Resource |
|
|
|
|
private GoodsMsgService goodsMsgService; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private GoodsSpecsService goodsSpecsService; |
|
|
|
|
/** |
|
|
|
|
* 订单业务处理 |
|
|
|
|
* @param order |
|
|
|
@ -66,6 +68,9 @@ public class OrderCancelService { |
|
|
|
|
if (goodsMsg.getType() == 1) { |
|
|
|
|
// 实物
|
|
|
|
|
} else if (goodsMsg.getType() == 2) { |
|
|
|
|
// 归库
|
|
|
|
|
goodsSpecsService.editStockNum(orderChild.getProductSpecId(), orderChild.getProductCount(), 1); |
|
|
|
|
|
|
|
|
|
// 虚拟
|
|
|
|
|
BsOrderCoupon orderCoupon = orderCouponService.getDetailByChildOrderNo(orderChild.getChildOrderNo()); |
|
|
|
|
orderCoupon.setCancelTime(new Date()); |
|
|
|
|