| | |
| | | @Override |
| | | public Goods getManageGoodsDetail(Long goodsId) { |
| | | Goods goods = getById(goodsId); |
| | | if (goods == null){ |
| | | return null; |
| | | } |
| | | // 指定门店 |
| | | List<GoodsShop> goodsShops = goodsShopService.list(new LambdaQueryWrapper<GoodsShop>() |
| | | .eq(GoodsShop::getGoodsId, goodsId)); |
| | |
| | | // 指定用户 |
| | | List<GoodsAppUser> goodsAppUserList = goodsAppUserService.list(new LambdaQueryWrapper<GoodsAppUser>() |
| | | .eq(GoodsAppUser::getGoodsId, goodsId)); |
| | | for (GoodsAppUser goodsAppUser : goodsAppUserList) { |
| | | AppUser appUser = appUserClient.getAppUserById(goodsAppUser.getAppUserId()); |
| | | goodsAppUser.setUserName(appUser.getName()); |
| | | goodsAppUser.setPhone(appUser.getPhone()); |
| | | VipSetting vipSetting = vipSettingService.getById(appUser.getVipId()); |
| | | goodsAppUser.setVipName(vipSetting.getVipName()); |
| | | } |
| | | |
| | | goods.setGoodsAppUserList(goodsAppUserList); |
| | | |
| | | // 会员价格 |