| | |
| | | area.setProvinceCode(goodsArea.getProvinceCode()); |
| | | area.setCityCode(goodsArea.getCityCode()); |
| | | area.setDistrictsCode(goodsArea.getDistrictsCode()); |
| | | goodsAreaList1.add(area); |
| | | } |
| | | goodsAreaService.saveBatch(goodsAreaList1); |
| | | } |
| | |
| | | // 指定门店 |
| | | List<GoodsShop> goodsShops = goodsShopService.list(new LambdaQueryWrapper<GoodsShop>() |
| | | .eq(GoodsShop::getGoodsId, goodsId)); |
| | | |
| | | for (GoodsShop goodsShop : goodsShops) { |
| | | Shop shop = shopMapper.selectById(goodsShop.getShopId()); |
| | | goodsShop.setShopName(shop.getName()); |
| | | goodsShop.setOwnerName(shop.getShopManager()); |
| | | goodsShop.setPhone(shop.getPhone()); |
| | | goodsShop.setAddress(shop.getAddress()); |
| | | } |
| | | goods.setGoodsShopList(goodsShops); |
| | | |
| | | // 指定用户 |