fix 增加修改门店区域
This commit is contained in:
@@ -25,4 +25,7 @@ public class UpdateShopCodeRequest {
|
||||
|
||||
@ApiModelProperty("门店名称")
|
||||
private String shopName;
|
||||
|
||||
@ApiModelProperty("门店所属区域")
|
||||
private Long regionId;
|
||||
}
|
||||
|
||||
@@ -185,6 +185,7 @@ public class ShopServiceImpl implements ShopService {
|
||||
shopInfo.setShopCode(request.getShopCode());
|
||||
shopInfo.setShopName(request.getShopName());
|
||||
shopInfo.setUpdateTime(new Date());
|
||||
shopInfo.setRegionId(request.getRegionId());
|
||||
return shopInfoDAO.updateShopInfo(shopInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public class PCShopController {
|
||||
return ResponseResult.success(shopService.addShop(request));
|
||||
}
|
||||
|
||||
@ApiOperation("修改门店编号和门店名称")
|
||||
@ApiOperation("修改门店编号和门店名称和门店所属区域")
|
||||
@PostMapping("/updateShopCode")
|
||||
public ResponseResult<Integer> updateShopCode(@RequestBody @Validated UpdateShopCodeRequest request) {
|
||||
return ResponseResult.success(shopService.updateShopCode(request));
|
||||
|
||||
Reference in New Issue
Block a user