| | |
| | | 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) { |