From 7eac5d5fe2dca85797dc7cd306c1883238384d7f Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 28 Jul 2021 00:55:00 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=8F=90=E4=BA=A4diam'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hai/service/impl/HighQzOrderServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;