'提交diam'

dev-discount
= 3 years ago
parent 04d2c1272a
commit 7eac5d5fe2
  1. 6
      hai-service/src/main/java/com/hai/service/impl/HighQzOrderServiceImpl.java

@ -91,8 +91,9 @@ public class HighQzOrderServiceImpl implements HighQzOrderService {
highChildOrder.setChildOrdeStatus(1); highChildOrder.setChildOrdeStatus(1);
highChildOrder.setPraiseStatus(0); 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:外卖 // 1:堂食 2:外带 3:外卖
highChildOrder.setExt1(kfcPlaceOrder.getString("eatType")); 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.setTotalPrice(highChildOrder.getGoodsPrice().multiply(new BigDecimal(highChildOrder.getSaleCount().toString())));
highOrder.getHighChildOrderList().add(highChildOrder); highOrder.getHighChildOrderList().add(highChildOrder);
} }
highOrderService.insertOrder(highOrder); highOrderService.insertOrder(highOrder);
} }
return highOrder; return highOrder;

Loading…
Cancel
Save