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