huliguo
2025-07-04 968e374ed1c2ef0595b277fc44067fb61e063a41
ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/goods/GoodsServiceImpl.java
@@ -187,14 +187,16 @@
            throw new ServiceException(AppErrorConstant.GOODS_DELETED);
        }
        BeanUtils.copyProperties(goods, appGoodsInfoVo);
        //商户定制价格
        //商户是否定制价格
        ShopGoods shopGoods = shopGoodsService.getByShopIdAndGoodsId(appGoodsInfoGetDto.getShopId(),goods.getGoodsId());
        if (shopGoods != null) {
            appGoodsInfoVo.setSalesPrice(shopGoods.getSalesPrice());
            appGoodsInfoVo.setServiceNum(shopGoods.getServiceNum());
        } else {
            //经销商定制价格
        }
        //是否绑定经销商
            Shop shop = remoteShopService.getShop(appGoodsInfoGetDto.getShopId()).getData();
        if(shop.getBelongShopId()!=null &&shop.getShopType()==2){
            //经销商定制价格
            Shop belongShop = remoteShopService.getShop(shop.getBelongShopId()).getData();
            shopGoods = shopGoodsService.getByShopIdAndGoodsId(belongShop.getShopId(), goods.getGoodsId());
            if (1 == belongShop.getModifyPricePermission() && null != shopGoods) {