fix updateShopCode接口增加修改门店name功能
This commit is contained in:
@@ -18,7 +18,11 @@ public class UpdateShopCodeRequest {
|
||||
@NotNull
|
||||
private Long shopId;
|
||||
|
||||
@NotBlank
|
||||
|
||||
@ApiModelProperty("门店代码")
|
||||
private String shopCode;
|
||||
|
||||
|
||||
@ApiModelProperty("门店名称")
|
||||
private String shopName;
|
||||
}
|
||||
|
||||
@@ -183,6 +183,7 @@ public class ShopServiceImpl implements ShopService {
|
||||
throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST);
|
||||
}
|
||||
shopInfo.setShopCode(request.getShopCode());
|
||||
shopInfo.setShopName(request.getShopName());
|
||||
shopInfo.setUpdateTime(new Date());
|
||||
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