| | |
| | | } |
| | | |
| | | BeanUtil.copyProperties(mallGoodsUpdateDto, mallGoods); |
| | | if (mallGoods.getHasCarriage() == 2) { |
| | | if (mallGoodsUpdateDto.getHasCarriage() == 2) { |
| | | mallGoods.setCarriage(BigDecimal.ZERO); |
| | | } |
| | | |
| | |
| | | BigDecimal total = BigDecimal.ZERO; |
| | | for (AddOrderItemDto item : addOrderDto.getItems()) { |
| | | MallGoodsSku sku = mallGoodsSkuMapper.selectSkuInfoById(item.getSkuId()); |
| | | if(ObjectUtil.isEmpty(sku)){ |
| | | throw new FebsException("商品已更新,请重新下单"); |
| | | } |
| | | MallGoods mallGoods = mallGoodsMapper.selectById(sku.getGoodsId()); |
| | | if(ObjectUtil.isEmpty(mallGoods)){ |
| | | throw new FebsException("商品已更新,请重新下单"); |
| | | } |
| | | /** |
| | | * 贡献点判断 |
| | | */ |
| | |
| | | "presentPrice": goodsInfo.presentPrice, |
| | | "costPrice": goodsInfo.costPrice, |
| | | "isSku": goodsInfo.isSku, |
| | | "hasCarriage": goodsInfo.hasCarriage, |
| | | "carriage": goodsInfo.carriage, |
| | | "thumb": goodsInfo.thumb, |
| | | "star": goodsInfo.star, |
| | | "sortCnt": goodsInfo.sortCnt, |