Commit 98fd3953 authored by unset's avatar unset

修改支付信息

parent 3471d76d
...@@ -18,4 +18,6 @@ public class ItemInfoVo { ...@@ -18,4 +18,6 @@ public class ItemInfoVo {
private BigDecimal price; private BigDecimal price;
private Integer type; private Integer type;
private String img; private String img;
private String name;
} }
...@@ -243,6 +243,9 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> { ...@@ -243,6 +243,9 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
number.updateAndGet(v -> v + itemInfoDto.getNumber()); number.updateAndGet(v -> v + itemInfoDto.getNumber());
BigDecimal totalAmount = shoppingCartInfo.getTotalAmount(); BigDecimal totalAmount = shoppingCartInfo.getTotalAmount();
amount.updateAndGet(v -> new Double((double) (v + totalAmount.doubleValue()))); amount.updateAndGet(v -> new Double((double) (v + totalAmount.doubleValue())));
//下单后删除购物车
shoppingCartInfo.setIsDel(1);
shoppingCartInfoBiz.updateSelectiveByIdRe(shoppingCartInfo);
} }
break; break;
default: default:
......
...@@ -79,6 +79,7 @@ public class ConfirmOrderService { ...@@ -79,6 +79,7 @@ public class ConfirmOrderService {
itemInfoVo.setNumber(itemInfoDto.getNumber()); itemInfoVo.setNumber(itemInfoDto.getNumber());
itemInfoVo.setType(itemInfoDto.getType()); itemInfoVo.setType(itemInfoDto.getType());
itemInfoVo.setPrice(industryApplicationInfo.getPrice()); itemInfoVo.setPrice(industryApplicationInfo.getPrice());
itemInfoVo.setName(industryApplicationInfo.getTitle());
itemInfoVoList.add(itemInfoVo); itemInfoVoList.add(itemInfoVo);
//总数量 //总数量
number.updateAndGet(v -> v + itemInfoDto.getNumber()); number.updateAndGet(v -> v + itemInfoDto.getNumber());
...@@ -102,6 +103,7 @@ public class ConfirmOrderService { ...@@ -102,6 +103,7 @@ public class ConfirmOrderService {
itemInfoVo.setNumber(itemInfoDto.getNumber()); itemInfoVo.setNumber(itemInfoDto.getNumber());
itemInfoVo.setImg(imageImgStorage.getCoverImg()); itemInfoVo.setImg(imageImgStorage.getCoverImg());
itemInfoVo.setDetailJson(JSONObject.toJSONString(imageImgStorage)); itemInfoVo.setDetailJson(JSONObject.toJSONString(imageImgStorage));
itemInfoVo.setName(imageImgStorage.getName());
itemInfoVoList.add(itemInfoVo); itemInfoVoList.add(itemInfoVo);
//总数量 //总数量
number.updateAndGet(v -> v + itemInfoDto.getNumber()); number.updateAndGet(v -> v + itemInfoDto.getNumber());
...@@ -121,6 +123,7 @@ public class ConfirmOrderService { ...@@ -121,6 +123,7 @@ public class ConfirmOrderService {
itemInfoVo.setNumber(itemInfoDto.getNumber()); itemInfoVo.setNumber(itemInfoDto.getNumber());
itemInfoVo.setImg(shoppingCartInfo.getItemPic()); itemInfoVo.setImg(shoppingCartInfo.getItemPic());
itemInfoVo.setDetailJson(shoppingCartInfo.getDetailJson()); itemInfoVo.setDetailJson(shoppingCartInfo.getDetailJson());
itemInfoVo.setName(shoppingCartInfo.getName());
itemInfoVoList.add(itemInfoVo); itemInfoVoList.add(itemInfoVo);
number.updateAndGet(v -> v + itemInfoDto.getNumber()); number.updateAndGet(v -> v + itemInfoDto.getNumber());
BigDecimal totalAmount = shoppingCartInfo.getTotalAmount(); BigDecimal totalAmount = shoppingCartInfo.getTotalAmount();
......
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