Commit 5b971842 authored by unset's avatar unset

添加意见反馈添加信息

parent ac66c25b
...@@ -45,6 +45,8 @@ public class ResultCode { ...@@ -45,6 +45,8 @@ public class ResultCode {
public static int ORDER_NOT_EXIST = Integer.valueOf(SystemProperty.getResultConfig("ORDER_NOT_EXIST")); public static int ORDER_NOT_EXIST = Integer.valueOf(SystemProperty.getResultConfig("ORDER_NOT_EXIST"));
public static int ORDER_STATUS_ERROR = Integer.valueOf(SystemProperty.getResultConfig("ORDER_STATUS_ERROR"));
public static int ORDER_GOODS_EXIST = Integer.valueOf(SystemProperty.getResultConfig("ORDER_GOODS_EXIST")); public static int ORDER_GOODS_EXIST = Integer.valueOf(SystemProperty.getResultConfig("ORDER_GOODS_EXIST"));
......
...@@ -332,7 +332,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> { ...@@ -332,7 +332,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
ShoppingCartInfo shoppingCartInfo = shoppingCartInfoBiz.selectById(itemInfoDto.getId()); ShoppingCartInfo shoppingCartInfo = shoppingCartInfoBiz.selectById(itemInfoDto.getId());
if (shoppingCartInfo != null) { if (shoppingCartInfo != null) {
OrderItem orderItem = new OrderItem(); OrderItem orderItem = new OrderItem();
orderItem.setType(itemInfoDto.getType()); orderItem.setType(shoppingCartInfo.getType());
orderItem.setTotalAmount(shoppingCartInfo.getPrice().multiply(new BigDecimal(itemInfoDto.getNumber()))); orderItem.setTotalAmount(shoppingCartInfo.getPrice().multiply(new BigDecimal(itemInfoDto.getNumber())));
orderItem.setPrice(shoppingCartInfo.getPrice()); orderItem.setPrice(shoppingCartInfo.getPrice());
orderItem.setNumber(itemInfoDto.getNumber()); orderItem.setNumber(itemInfoDto.getNumber());
......
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