Commit 45f73735 by yu.sun

sunyu::new function about material

parent ef624b0e
......@@ -467,6 +467,10 @@ public class CartGoods {
*/
private String spuId;
/**
* 加料组id(对应入机键位)
*/
private String groupId;
/**
* 加料名称
*/
private String spuName;
......
......@@ -20,4 +20,12 @@ public class MaterialRequestVo {
* 加料商品ID
*/
private String spuId;
/**
* 加料组ID(对应入机键位)
*/
private String groupId;
/**
* 加料数量
*/
private int qty;
}
......@@ -76,6 +76,8 @@ public class CalculationServiceImpl {
private SetMealCalculation setMealCalculation;
@Autowired
private MaterialCalculation materialCalculation;
@Autowired
private ShoppingCartConvertAdapter shoppingCartConvertAdapter;
/**
......@@ -105,6 +107,8 @@ public class CalculationServiceImpl {
//套餐
setMealCalculation.updateShoppingCartGoodsDiscount(calculationDiscount,cartGoodsList,shoppingCartGoodsResponseVo);
//加料
materialCalculation.updateShoppingCartGoodsApportion(calculationDiscount,cartGoodsList);
return calculationDiscount;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment