From 6cd27fd0454b9a68a735a7301f80839ecc8ce178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Fri, 10 Apr 2026 14:18:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(advertisement):=20=E5=B0=86=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E7=9B=B8=E5=85=B3ID=E7=B1=BB=E5=9E=8B=E7=94=B1Integer?= =?UTF-8?q?=E6=94=B9=E4=B8=BALong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改实体类Advertisement中id、type和position字段类型为Long - 同步更新AdvertisementController中删除接口参数类型为List - 调整AdvertisementListVO中id、type和position字段类型为Long - 更新AdvertisementSaveRequest中id、type和position字段类型为Long --- .../nflg/wms/admin/controller/AdvertisementController.java | 2 +- .../nflg/wms/common/pojo/qo/AdvertisementSaveRequest.java | 6 +++--- .../com/nflg/wms/common/pojo/vo/AdvertisementListVO.java | 6 +++--- .../java/com/nflg/wms/repository/entity/Advertisement.java | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/nflg-wms-admin/src/main/java/com/nflg/wms/admin/controller/AdvertisementController.java b/nflg-wms-admin/src/main/java/com/nflg/wms/admin/controller/AdvertisementController.java index 3cc1db24..f2be1b47 100644 --- a/nflg-wms-admin/src/main/java/com/nflg/wms/admin/controller/AdvertisementController.java +++ b/nflg-wms-admin/src/main/java/com/nflg/wms/admin/controller/AdvertisementController.java @@ -82,7 +82,7 @@ public class AdvertisementController extends BaseController{ * @return 无 */ @PostMapping("delete") - public ApiResult deleteAdvertisement(@Valid @RequestBody @NotEmpty List ids){ + public ApiResult deleteAdvertisement(@Valid @RequestBody @NotEmpty List ids){ advertisementService.removeByIds(ids); return ApiResult.success(); } diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/AdvertisementSaveRequest.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/AdvertisementSaveRequest.java index d40ce1f6..c45f0627 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/AdvertisementSaveRequest.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/AdvertisementSaveRequest.java @@ -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; /** * 轮播间隔 diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/AdvertisementListVO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/AdvertisementListVO.java index a9d0ef06..4bcc0932 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/AdvertisementListVO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/AdvertisementListVO.java @@ -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; /** * 广告位置名称 diff --git a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/Advertisement.java b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/Advertisement.java index 16cfbe82..d5f60077 100644 --- a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/Advertisement.java +++ b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/Advertisement.java @@ -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; /** * 间隔,单位秒