refactor(advertisement): 将广告相关ID类型由Integer改为Long

- 修改实体类Advertisement中id、type和position字段类型为Long
- 同步更新AdvertisementController中删除接口参数类型为List<Long>
- 调整AdvertisementListVO中id、type和position字段类型为Long
- 更新AdvertisementSaveRequest中id、type和position字段类型为Long
This commit is contained in:
曹鹏飞 2026-04-10 14:18:34 +08:00
parent bc44a74dcc
commit 6cd27fd045
4 changed files with 10 additions and 10 deletions

View File

@ -82,7 +82,7 @@ public class AdvertisementController extends BaseController{
* @return
*/
@PostMapping("delete")
public ApiResult<Void> deleteAdvertisement(@Valid @RequestBody @NotEmpty List<Integer> ids){
public ApiResult<Void> deleteAdvertisement(@Valid @RequestBody @NotEmpty List<Long> ids){
advertisementService.removeByIds(ids);
return ApiResult.success();
}

View File

@ -14,19 +14,19 @@ public class AdvertisementSaveRequest {
/**
* 广告id新增时为空
*/
private Integer id;
private Long id;
/**
* 广告类型
*/
@NotNull
private Integer type;
private Long type;
/**
* 广告位置
*/
@NotNull
private Integer position;
private Long position;
/**
* 轮播间隔

View File

@ -14,12 +14,12 @@ public class AdvertisementListVO {
/**
* 广告id
*/
private Integer id;
private Long id;
/**
* 广告类型
*/
private Integer type;
private Long type;
/**
* 广告类型名称
@ -29,7 +29,7 @@ public class AdvertisementListVO {
/**
* 广告位置
*/
private Integer position;
private Long position;
/**
* 广告位置名称

View File

@ -26,17 +26,17 @@ public class Advertisement implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Long id;
/**
* 类别字典值id
*/
private Integer type;
private Long type;
/**
* 位置字典值id
*/
private Integer position;
private Long position;
/**
* 间隔单位秒