puzhibing
2024-12-17 8aa510ea43af4f4e36f226900ff653e78731688f
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsServiceImpl.java
@@ -205,7 +205,6 @@
                    area.setProvinceCode(goodsArea.getProvinceCode());
                    area.setCityCode(goodsArea.getCityCode());
                    area.setDistrictsCode(goodsArea.getDistrictsCode());
                    goodsAreaList1.add(area);
                }
                goodsAreaService.saveBatch(goodsAreaList1);
            }
@@ -251,6 +250,9 @@
    @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));
@@ -267,6 +269,14 @@
        // 指定用户
        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);
        // 会员价格