| | |
| | | } |
| | | AppUser appUser = appUserClient.getAppUserById(userid); |
| | | Integer shopId = confirmOrder.getShopId(); |
| | | Shop shop = shopClient.getShopById(shopId).getData(); |
| | | String goodsJson = confirmOrder.getGoodsJson(); |
| | | List<Long> ids = new ArrayList<>(); |
| | | JSONArray objects = JSON.parseArray(goodsJson); |
| | |
| | | //构建商品明细列表 |
| | | List<MyShoppingCartVo> goodsList = buildDetail(appUser, shopId, list, objects); |
| | | confirmOrderVo.setGoodsList(goodsList); |
| | | confirmOrderVo.setShopId(confirmOrder.getShopId()); |
| | | confirmOrderVo.setShopName(shop.getName()); |
| | | if(null != confirmOrder.getShopId()){ |
| | | Shop shop = shopClient.getShopById(shopId).getData(); |
| | | confirmOrderVo.setShopId(confirmOrder.getShopId()); |
| | | confirmOrderVo.setShopName(null == shop ? "" : shop.getName()); |
| | | } |
| | | //现金支付 |
| | | if(confirmOrder.getPaymentType() == 1){ |
| | | BigDecimal bigDecimal = BigDecimal.ZERO; |