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; /** * 间隔,单位秒