| | |
| | | } |
| | | |
| | | //获取订单归属门店 |
| | | order.setCompanyId(bizUser.getCompanyId()); |
| | | order.setShopId(Long.parseLong(orderDto.getStoreId()+"")); |
| | | //同步的订单订单编号保持一致 |
| | | order.setOrderNo(orderDto.getOrderNo()); |
| | |
| | | orderItem.setPrice(orderItemDto.getPrice().doubleValue()); |
| | | orderItem.setZkPrice(orderItemDto.getPrice().doubleValue()); |
| | | orderItem.setGoodsId(shoppingGoods.getId()); |
| | | if (shoppingGoods.getGoodType().equals(Dictionary.SHOPPING_GOODS_TYPE_JJCP)) { |
| | | orderItem.setAssembleId(shoppingGoods.getAssembleGoods().get(0).getId()); |
| | | } else if (shoppingGoods.getGoodType().equals(Dictionary.SHOPPING_GOODS_TYPE_XM)) { |
| | | orderItem.setAssembleId(shoppingGoods.getAssembleProj().get(0).getId()); |
| | | } |
| | | |
| | | // 设置对应产品的id |
| | | switch (shoppingGoods.getGoodType()) { |