diff --git a/hai-service/src/main/java/com/hai/service/impl/HighQzOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighQzOrderServiceImpl.java index 42fad488..2ce5d23c 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighQzOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighQzOrderServiceImpl.java @@ -91,8 +91,9 @@ public class HighQzOrderServiceImpl implements HighQzOrderService { highChildOrder.setChildOrdeStatus(1); highChildOrder.setPraiseStatus(0); - // 计算原始价格 - highOrder.setTotalPrice(highChildOrder.getGoodsPrice().multiply(new BigDecimal(highChildOrder.getSaleCount().toString()))); + /* // 计算原始价格 + highChildOrder.getGoodsPrice().multiply(new BigDecimal(highChildOrder.getSaleCount().toString())); + highOrder.setTotalPrice();*/ // 1:堂食 2:外带 3:外卖 highChildOrder.setExt1(kfcPlaceOrder.getString("eatType")); @@ -155,6 +156,7 @@ public class HighQzOrderServiceImpl implements HighQzOrderService { highOrder.setTotalPrice(highChildOrder.getGoodsPrice().multiply(new BigDecimal(highChildOrder.getSaleCount().toString()))); highOrder.getHighChildOrderList().add(highChildOrder); } + highOrderService.insertOrder(highOrder); } return highOrder;