fix 增加修改门店区域

This commit is contained in:
shuo.wang
2024-11-12 18:08:24 +08:00
parent a483ac86ad
commit 6eda5bdba4
3 changed files with 5 additions and 1 deletions

View File

@@ -25,4 +25,7 @@ public class UpdateShopCodeRequest {
@ApiModelProperty("门店名称") @ApiModelProperty("门店名称")
private String shopName; private String shopName;
@ApiModelProperty("门店所属区域")
private Long regionId;
} }

View File

@@ -185,6 +185,7 @@ public class ShopServiceImpl implements ShopService {
shopInfo.setShopCode(request.getShopCode()); shopInfo.setShopCode(request.getShopCode());
shopInfo.setShopName(request.getShopName()); shopInfo.setShopName(request.getShopName());
shopInfo.setUpdateTime(new Date()); shopInfo.setUpdateTime(new Date());
shopInfo.setRegionId(request.getRegionId());
return shopInfoDAO.updateShopInfo(shopInfo); return shopInfoDAO.updateShopInfo(shopInfo);
} }
} }

View File

@@ -60,7 +60,7 @@ public class PCShopController {
return ResponseResult.success(shopService.addShop(request)); return ResponseResult.success(shopService.addShop(request));
} }
@ApiOperation("修改门店编号和门店名称") @ApiOperation("修改门店编号和门店名称和门店所属区域")
@PostMapping("/updateShopCode") @PostMapping("/updateShopCode")
public ResponseResult<Integer> updateShopCode(@RequestBody @Validated UpdateShopCodeRequest request) { public ResponseResult<Integer> updateShopCode(@RequestBody @Validated UpdateShopCodeRequest request) {
return ResponseResult.success(shopService.updateShopCode(request)); return ResponseResult.success(shopService.updateShopCode(request));