xiaoyong931011
2023-03-21 286f1b16d0b16e117b7aea4bd230c5a0ace92267
后台修改
3 files modified
10 ■■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java 2 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java 6 ●●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html 2 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/AdminMallGoodsService.java
@@ -341,7 +341,7 @@
        }
        BeanUtil.copyProperties(mallGoodsUpdateDto, mallGoods);
        if (mallGoods.getHasCarriage() == 2) {
        if (mallGoodsUpdateDto.getHasCarriage() == 2) {
            mallGoods.setCarriage(BigDecimal.ZERO);
        }
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
@@ -861,7 +861,13 @@
        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("商品已更新,请重新下单");
            }
            /**
             * 贡献点判断
             */
src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
@@ -682,6 +682,8 @@
                "presentPrice": goodsInfo.presentPrice,
                "costPrice": goodsInfo.costPrice,
                "isSku": goodsInfo.isSku,
                "hasCarriage": goodsInfo.hasCarriage,
                "carriage": goodsInfo.carriage,
                "thumb": goodsInfo.thumb,
                "star": goodsInfo.star,
                "sortCnt": goodsInfo.sortCnt,