提交代码

master
胡锐 6 months ago
parent 2ef3d7dd67
commit 16fd4bd238
  1. 2
      service/src/main/java/com/hfkj/service/order/OrderCreateService.java
  2. 4
      service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java

@ -112,7 +112,7 @@ public class OrderCreateService {
orderCoupon.setStatus(OrderChildStatusEnum.status1.getCode()); orderCoupon.setStatus(OrderChildStatusEnum.status1.getCode());
orderCouponService.editData(orderCoupon); orderCouponService.editData(orderCoupon);
for (int i = 0; i < orderCoupon.getGoodsCount(); i++) { for (int i = 0; i <= orderCoupon.getGoodsCount(); i++) {
// 卡券订单卡密 // 卡券订单卡密
BsOrderCouponNo orderCouponNo = new BsOrderCouponNo(); BsOrderCouponNo orderCouponNo = new BsOrderCouponNo();
orderCouponNo.setCouponOrderId(orderCoupon.getId()); orderCouponNo.setCouponOrderId(orderCoupon.getId());

@ -131,10 +131,6 @@ public class BsOrderServiceImpl implements BsOrderService {
// 提交订单虚拟商品处理 // 提交订单虚拟商品处理
child = orderCreateService.product(order, child); child = orderCreateService.product(order, child);
} }
// 提交订单前产品处理
if (child.getProductType().equals(OrderChildProductTypeEnum.type2.getCode())) {
child = orderCreateService.product(order, child);
}
child.setProductTotalPrice(child.getProductPrice().multiply(new BigDecimal(child.getProductCount().toString()))); child.setProductTotalPrice(child.getProductPrice().multiply(new BigDecimal(child.getProductCount().toString())));
child.setStatus(OrderChildStatusEnum.status1.getCode()); child.setStatus(OrderChildStatusEnum.status1.getCode());

Loading…
Cancel
Save