| | |
| | | } |
| | | }else{ |
| | | Shop shop1 = remoteShopService.getShop(shop.getBelongShopId()).getData(); |
| | | ShopGoods shopGoods1 = shopGoodsService.getByShopIdAndGoodsId(shop1.getShopId(), merGoodsPageVo.getGoodsId()); |
| | | //经销商设置了统一售价 |
| | | if(null != shopGoods1){ |
| | | merGoodsPageVo.setModifyPricePermission(0); |
| | | merGoodsPageVo.setIsUnifiedPrice(1); |
| | | merGoodsPageVo.setUnifiedPrice(shopGoods1.getSalesPrice()); |
| | | merGoodsPageVo.setUnifiedServerNum(shopGoods1.getServiceNum()); |
| | | }else{ |
| | | if(null == shop1){ |
| | | merGoodsPageVo.setModifyPricePermission(1); |
| | | merGoodsPageVo.setIsUnifiedPrice(0); |
| | | if(null != shopGoods){ |
| | | merGoodsPageVo.setUnifiedPrice(shopGoods.getSalesPrice()); |
| | | merGoodsPageVo.setUnifiedServerNum(shopGoods.getServiceNum()); |
| | | } |
| | | }else{ |
| | | ShopGoods shopGoods1 = shopGoodsService.getByShopIdAndGoodsId(shop1.getShopId(), merGoodsPageVo.getGoodsId()); |
| | | //经销商设置了统一售价 |
| | | if(null != shopGoods1){ |
| | | merGoodsPageVo.setModifyPricePermission(0); |
| | | merGoodsPageVo.setIsUnifiedPrice(1); |
| | | merGoodsPageVo.setUnifiedPrice(shopGoods1.getSalesPrice()); |
| | | merGoodsPageVo.setUnifiedServerNum(shopGoods1.getServiceNum()); |
| | | }else{ |
| | | merGoodsPageVo.setModifyPricePermission(1); |
| | | merGoodsPageVo.setIsUnifiedPrice(0); |
| | | if(null != shopGoods){ |
| | | merGoodsPageVo.setUnifiedPrice(shopGoods.getSalesPrice()); |
| | | merGoodsPageVo.setUnifiedServerNum(shopGoods.getServiceNum()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |