From d5ac7ea8a7c53389a31e516038cc1775119e10da Mon Sep 17 00:00:00 2001
From: YunaiV <>
Date: Sat, 6 Apr 2019 20:54:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=EF=BC=9A=E5=8E=BB=E9=99=A4?=
=?UTF-8?q?=20promotion=20=E6=A8=A1=E5=9D=97=E7=9A=84=20setting=20getting?=
=?UTF-8?q?=20=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 47 ++++
promotion/promotion-application/pom.xml | 6 -
.../vo/admins/AdminsBannerPageVO.java | 24 +-
.../vo/admins/AdminsCouponTemplatePageVO.java | 22 +-
.../vo/admins/AdminsCouponTemplateVO.java | 201 +----------------
.../admins/AdminsProductRecommendPageVO.java | 24 +-
.../vo/admins/AdminsProductRecommendVO.java | 68 +-----
.../vo/users/UsersProductRecommendVO.java | 51 +----
promotion/promotion-service-api/pom.xml | 3 +-
.../mall/promotion/api/bo/BannerPageBO.java | 28 +--
.../mall/promotion/api/bo/CouponCardBO.java | 8 +
.../promotion/api/bo/CouponTemplateBO.java | 206 +-----------------
.../api/bo/CouponTemplatePageBO.java | 25 +--
.../promotion/api/bo/ProductRecommendBO.java | 67 +-----
.../api/bo/ProductRecommendPageBO.java | 28 +--
.../mall/promotion/api/dto/BannerAddDTO.java | 48 +---
.../mall/promotion/api/dto/BannerPageDTO.java | 37 +---
.../promotion/api/dto/BannerUpdateDTO.java | 60 +----
.../api/dto/CouponCardTemplateAddDTO.java | 152 +------------
.../api/dto/CouponCardTemplateUpdateDTO.java | 9 +-
.../api/dto/CouponCodeTemplateAddDTO.java | 8 +
.../api/dto/CouponCodeTemplateUpdateDTO.java | 8 +
.../api/dto/CouponTemplatePageDTO.java | 58 +----
.../api/dto/ProductRecommendAddDTO.java | 42 +---
.../api/dto/ProductRecommendPageDTO.java | 37 +---
.../api/dto/ProductRecommendUpdateDTO.java | 51 +----
promotion/promotion-service-impl/pom.xml | 30 +--
.../biz/dataobject/CouponCardDO.java | 4 +
.../biz/dataobject/CouponCodeDO.java | 59 +----
.../biz/dataobject/CouponTemplateDO.java | 193 +---------------
.../biz/dataobject/ProductRecommendDO.java | 58 +----
.../convert/CouponTemplateConvertImpl.java | 6 +-
32 files changed, 222 insertions(+), 1446 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6d85749ea..04e606e1b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,6 +30,12 @@
5.1.47
0.2.1.RELEASE
1.3.0.Final
+ 2.12.0
+ 2.9.2
+ 2.0.0
+ 2.0.1
+ 27.0.1-jre
+ 2.0.1
3.8.0
1.16.14
@@ -73,6 +79,47 @@
${org.projectlombok.version}
+
+ org.apache.curator
+ curator-framework
+ ${curator.version}
+
+
+
+ io.springfox
+ springfox-swagger2
+ ${springfox-swagger.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+ ${springfox-swagger.version}
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ ${mybatis-spring-boot-starter.version}
+
+
+
+ com.google.guava
+ guava
+ ${guava.version}
+
+
+
+ com.xuxueli
+ xxl-job-core
+ ${xxl-job.version}
+
+
+
+ org.apache.rocketmq
+ rocketmq-spring-boot-starter
+ ${rocketmq-spring-boot-starter.version}
+
+
diff --git a/promotion/promotion-application/pom.xml b/promotion/promotion-application/pom.xml
index 7cc29f10a..e1a169a40 100644
--- a/promotion/promotion-application/pom.xml
+++ b/promotion/promotion-application/pom.xml
@@ -33,13 +33,11 @@
cn.iocoder.mall
user-service-api
1.0-SNAPSHOT
- compile
cn.iocoder.mall
user-sdk
1.0-SNAPSHOT
- compile
@@ -65,24 +63,20 @@
com.alibaba.boot
dubbo-spring-boot-starter
- 0.2.1.RELEASE
org.apache.curator
curator-framework
- 2.12.0
io.springfox
springfox-swagger2
- 2.9.2
io.springfox
springfox-swagger-ui
- 2.9.2
diff --git a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsBannerPageVO.java b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsBannerPageVO.java
index 7f5595e7f..94711cfd1 100644
--- a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsBannerPageVO.java
+++ b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsBannerPageVO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("Banner 分页 VO")
+@Data
+@Accessors(chain = true)
public class AdminsBannerPageVO {
@ApiModelProperty(value = "Banner 数组")
@@ -13,22 +17,4 @@ public class AdminsBannerPageVO {
@ApiModelProperty(value = "Banner 总数")
private Integer total;
- public List getList() {
- return list;
- }
-
- public AdminsBannerPageVO setList(List list) {
- this.list = list;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public AdminsBannerPageVO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplatePageVO.java b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplatePageVO.java
index 4d6568b78..89495b1f7 100644
--- a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplatePageVO.java
+++ b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplatePageVO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("优惠劵(码)分页 VO")
+@Data
+@Accessors(chain = true)
public class AdminsCouponTemplatePageVO {
@ApiModelProperty(value = "优惠劵(码)数组")
@@ -13,22 +17,4 @@ public class AdminsCouponTemplatePageVO {
@ApiModelProperty(value = "优惠劵(码)总数")
private Integer total;
- public List getList() {
- return list;
- }
-
- public AdminsCouponTemplatePageVO setList(List list) {
- this.list = list;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public AdminsCouponTemplatePageVO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
}
diff --git a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplateVO.java b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplateVO.java
index 34e98d5cc..e956506cd 100644
--- a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplateVO.java
+++ b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsCouponTemplateVO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.Date;
@ApiModel("CouponTemplate VO")
+@Data
+@Accessors(chain = true)
public class AdminsCouponTemplateVO {
// ========== 基本信息 BEGIN ==========
@@ -73,201 +77,4 @@ public class AdminsCouponTemplateVO {
@ApiModelProperty(value = "折扣上限", required = true)
private Date createTime;
- public Integer getId() {
- return id;
- }
-
- public AdminsCouponTemplateVO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public String getTitle() {
- return title;
- }
-
- public AdminsCouponTemplateVO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- public AdminsCouponTemplateVO setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public AdminsCouponTemplateVO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getCodeType() {
- return codeType;
- }
-
- public AdminsCouponTemplateVO setCodeType(Integer codeType) {
- this.codeType = codeType;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public AdminsCouponTemplateVO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public Integer getQuota() {
- return quota;
- }
-
- public AdminsCouponTemplateVO setQuota(Integer quota) {
- this.quota = quota;
- return this;
- }
-
- public Integer getPriceAvailable() {
- return priceAvailable;
- }
-
- public AdminsCouponTemplateVO setPriceAvailable(Integer priceAvailable) {
- this.priceAvailable = priceAvailable;
- return this;
- }
-
- public Integer getRangeType() {
- return rangeType;
- }
-
- public AdminsCouponTemplateVO setRangeType(Integer rangeType) {
- this.rangeType = rangeType;
- return this;
- }
-
- public String getRangeValues() {
- return rangeValues;
- }
-
- public AdminsCouponTemplateVO setRangeValues(String rangeValues) {
- this.rangeValues = rangeValues;
- return this;
- }
-
- public Integer getDateType() {
- return dateType;
- }
-
- public AdminsCouponTemplateVO setDateType(Integer dateType) {
- this.dateType = dateType;
- return this;
- }
-
- public Date getValidStartTime() {
- return validStartTime;
- }
-
- public AdminsCouponTemplateVO setValidStartTime(Date validStartTime) {
- this.validStartTime = validStartTime;
- return this;
- }
-
- public Date getValidEndTime() {
- return validEndTime;
- }
-
- public AdminsCouponTemplateVO setValidEndTime(Date validEndTime) {
- this.validEndTime = validEndTime;
- return this;
- }
-
- public Integer getFixedStartTerm() {
- return fixedStartTerm;
- }
-
- public AdminsCouponTemplateVO setFixedStartTerm(Integer fixedStartTerm) {
- this.fixedStartTerm = fixedStartTerm;
- return this;
- }
-
- public Integer getFixedEndTerm() {
- return fixedEndTerm;
- }
-
- public AdminsCouponTemplateVO setFixedEndTerm(Integer fixedEndTerm) {
- this.fixedEndTerm = fixedEndTerm;
- return this;
- }
-
- public Integer getPreferentialType() {
- return preferentialType;
- }
-
- public AdminsCouponTemplateVO setPreferentialType(Integer preferentialType) {
- this.preferentialType = preferentialType;
- return this;
- }
-
- public Integer getPercentOff() {
- return percentOff;
- }
-
- public AdminsCouponTemplateVO setPercentOff(Integer percentOff) {
- this.percentOff = percentOff;
- return this;
- }
-
- public Integer getPriceOff() {
- return priceOff;
- }
-
- public AdminsCouponTemplateVO setPriceOff(Integer priceOff) {
- this.priceOff = priceOff;
- return this;
- }
-
- public Integer getDiscountPriceLimit() {
- return discountPriceLimit;
- }
-
- public AdminsCouponTemplateVO setDiscountPriceLimit(Integer discountPriceLimit) {
- this.discountPriceLimit = discountPriceLimit;
- return this;
- }
-
- public Integer getStatFetchNum() {
- return statFetchNum;
- }
-
- public AdminsCouponTemplateVO setStatFetchNum(Integer statFetchNum) {
- this.statFetchNum = statFetchNum;
- return this;
- }
-
- public Date getCreateTime() {
- return createTime;
- }
-
- public AdminsCouponTemplateVO setCreateTime(Date createTime) {
- this.createTime = createTime;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public AdminsCouponTemplateVO setTotal(Integer total) {
- this.total = total;
- return this;
- }
}
diff --git a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendPageVO.java b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendPageVO.java
index e774b8429..278c512eb 100644
--- a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendPageVO.java
+++ b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendPageVO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("商品推荐分页 VO")
+@Data
+@Accessors(chain = true)
public class AdminsProductRecommendPageVO {
@ApiModelProperty(value = "商品推荐数组")
@@ -13,22 +17,4 @@ public class AdminsProductRecommendPageVO {
@ApiModelProperty(value = "商品推荐总数")
private Integer total;
- public List getList() {
- return list;
- }
-
- public AdminsProductRecommendPageVO setList(List list) {
- this.list = list;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public AdminsProductRecommendPageVO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendVO.java b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendVO.java
index d95a6051a..13e1b5516 100644
--- a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendVO.java
+++ b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/admins/AdminsProductRecommendVO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.Date;
@ApiModel("商品推荐 VO")
+@Data
+@Accessors(chain = true)
public class AdminsProductRecommendVO {
@ApiModelProperty(value = "编号", required = true, example = "1")
@@ -23,66 +27,4 @@ public class AdminsProductRecommendVO {
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
private Date createTime;
- public Integer getId() {
- return id;
- }
-
- public AdminsProductRecommendVO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public AdminsProductRecommendVO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getProductSpuId() {
- return productSpuId;
- }
-
- public AdminsProductRecommendVO setProductSpuId(Integer productSpuId) {
- this.productSpuId = productSpuId;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public AdminsProductRecommendVO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public AdminsProductRecommendVO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public AdminsProductRecommendVO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
- public Date getCreateTime() {
- return createTime;
- }
-
- public AdminsProductRecommendVO setCreateTime(Date createTime) {
- this.createTime = createTime;
- return this;
- }
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/users/UsersProductRecommendVO.java b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/users/UsersProductRecommendVO.java
index d4fadd729..351b6f4a1 100644
--- a/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/users/UsersProductRecommendVO.java
+++ b/promotion/promotion-application/src/main/java/cn/iocoder/mall/promotion/application/vo/users/UsersProductRecommendVO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.users;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.List;
@ApiModel(value = "商品推荐 VO", description = "不包括 SKU 信息 VO")
+@Data
+@Accessors(chain = true)
public class UsersProductRecommendVO {
@ApiModelProperty(value = "商品 SPU 编号", required = true, example = "1")
@@ -27,49 +31,4 @@ public class UsersProductRecommendVO {
*/
private Integer price;
- public Integer getId() {
- return id;
- }
-
- public UsersProductRecommendVO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public String getName() {
- return name;
- }
-
- public UsersProductRecommendVO setName(String name) {
- this.name = name;
- return this;
- }
-
- public String getSellPoint() {
- return sellPoint;
- }
-
- public UsersProductRecommendVO setSellPoint(String sellPoint) {
- this.sellPoint = sellPoint;
- return this;
- }
-
- public List getPicUrls() {
- return picUrls;
- }
-
- public UsersProductRecommendVO setPicUrls(List picUrls) {
- this.picUrls = picUrls;
- return this;
- }
-
- public Integer getPrice() {
- return price;
- }
-
- public UsersProductRecommendVO setPrice(Integer price) {
- this.price = price;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/pom.xml b/promotion/promotion-service-api/pom.xml
index 76e049abe..54d51beda 100644
--- a/promotion/promotion-service-api/pom.xml
+++ b/promotion/promotion-service-api/pom.xml
@@ -10,7 +10,7 @@
4.0.0
promotion-service-api
-
+
javax.validation
@@ -20,7 +20,6 @@
cn.iocoder.mall
common-framework
1.0-SNAPSHOT
- compile
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/BannerPageBO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/BannerPageBO.java
index 940f27dfa..1d7bcb343 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/BannerPageBO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/BannerPageBO.java
@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import java.util.List;
+/**
+ * Banner 分页 BO
+ */
+@Data
+@Accessors(chain = true)
public class BannerPageBO {
/**
@@ -13,22 +21,4 @@ public class BannerPageBO {
*/
private Integer total;
- public List getList() {
- return list;
- }
-
- public BannerPageBO setList(List list) {
- this.list = list;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public BannerPageBO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponCardBO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponCardBO.java
index 4239b9aa7..30182fa94 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponCardBO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponCardBO.java
@@ -1,4 +1,12 @@
package cn.iocoder.mall.promotion.api.bo;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * 优惠劵 BO
+ */
+@Data
+@Accessors(chain = true)
public class CouponCardBO {
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplateBO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplateBO.java
index 9aa54d853..229b5883c 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplateBO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplateBO.java
@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import java.util.Date;
+/**
+ * 优惠劵(码)模板 BO
+ */
+@Data
+@Accessors(chain = true)
public class CouponTemplateBO {
// ========== 基本信息 BEGIN ==========
@@ -143,202 +151,4 @@ public class CouponTemplateBO {
*/
private Date createTime;
- public Integer getId() {
- return id;
- }
-
- public CouponTemplateBO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public String getTitle() {
- return title;
- }
-
- public CouponTemplateBO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- public CouponTemplateBO setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public CouponTemplateBO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getCodeType() {
- return codeType;
- }
-
- public CouponTemplateBO setCodeType(Integer codeType) {
- this.codeType = codeType;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public CouponTemplateBO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public Integer getQuota() {
- return quota;
- }
-
- public CouponTemplateBO setQuota(Integer quota) {
- this.quota = quota;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public CouponTemplateBO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
- public Integer getPriceAvailable() {
- return priceAvailable;
- }
-
- public CouponTemplateBO setPriceAvailable(Integer priceAvailable) {
- this.priceAvailable = priceAvailable;
- return this;
- }
-
- public Integer getRangeType() {
- return rangeType;
- }
-
- public CouponTemplateBO setRangeType(Integer rangeType) {
- this.rangeType = rangeType;
- return this;
- }
-
- public String getRangeValues() {
- return rangeValues;
- }
-
- public CouponTemplateBO setRangeValues(String rangeValues) {
- this.rangeValues = rangeValues;
- return this;
- }
-
- public Integer getDateType() {
- return dateType;
- }
-
- public CouponTemplateBO setDateType(Integer dateType) {
- this.dateType = dateType;
- return this;
- }
-
- public Date getValidStartTime() {
- return validStartTime;
- }
-
- public CouponTemplateBO setValidStartTime(Date validStartTime) {
- this.validStartTime = validStartTime;
- return this;
- }
-
- public Date getValidEndTime() {
- return validEndTime;
- }
-
- public CouponTemplateBO setValidEndTime(Date validEndTime) {
- this.validEndTime = validEndTime;
- return this;
- }
-
- public Integer getPreferentialType() {
- return preferentialType;
- }
-
- public CouponTemplateBO setPreferentialType(Integer preferentialType) {
- this.preferentialType = preferentialType;
- return this;
- }
-
- public Integer getPercentOff() {
- return percentOff;
- }
-
- public CouponTemplateBO setPercentOff(Integer percentOff) {
- this.percentOff = percentOff;
- return this;
- }
-
- public Integer getPriceOff() {
- return priceOff;
- }
-
- public CouponTemplateBO setPriceOff(Integer priceOff) {
- this.priceOff = priceOff;
- return this;
- }
-
- public Integer getDiscountPriceLimit() {
- return discountPriceLimit;
- }
-
- public CouponTemplateBO setDiscountPriceLimit(Integer discountPriceLimit) {
- this.discountPriceLimit = discountPriceLimit;
- return this;
- }
-
- public Integer getStatFetchNum() {
- return statFetchNum;
- }
-
- public CouponTemplateBO setStatFetchNum(Integer statFetchNum) {
- this.statFetchNum = statFetchNum;
- return this;
- }
-
- public Date getCreateTime() {
- return createTime;
- }
-
- public CouponTemplateBO setCreateTime(Date createTime) {
- this.createTime = createTime;
- return this;
- }
-
- public Integer getFixedStartTerm() {
- return fixedStartTerm;
- }
-
- public CouponTemplateBO setFixedStartTerm(Integer fixedStartTerm) {
- this.fixedStartTerm = fixedStartTerm;
- return this;
- }
-
- public Integer getFixedEndTerm() {
- return fixedEndTerm;
- }
-
- public CouponTemplateBO setFixedEndTerm(Integer fixedEndTerm) {
- this.fixedEndTerm = fixedEndTerm;
- return this;
- }
-
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplatePageBO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplatePageBO.java
index 454d9cea2..dc1a2f819 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplatePageBO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/CouponTemplatePageBO.java
@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import java.util.List;
+/**
+ * 优惠劵(码)模板分页 BO
+ */
+@Data
+@Accessors(chain = true)
public class CouponTemplatePageBO {
/**
@@ -13,21 +21,4 @@ public class CouponTemplatePageBO {
*/
private Integer total;
- public CouponTemplatePageBO setList(List list) {
- this.list = list;
- return this;
- }
-
- public CouponTemplatePageBO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
- public List getList() {
- return list;
- }
-
- public Integer getTotal() {
- return total;
- }
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendBO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendBO.java
index 0834296e6..0e57ec6b4 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendBO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendBO.java
@@ -1,12 +1,16 @@
package cn.iocoder.mall.promotion.api.bo;
import cn.iocoder.mall.promotion.api.constant.ProductRecommendTypeEnum;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.Date;
/**
* 商品推荐 BO
*/
+@Data
+@Accessors(chain = true)
public class ProductRecommendBO {
/**
@@ -42,67 +46,4 @@ public class ProductRecommendBO {
*/
private Date createTime;
- public Integer getId() {
- return id;
- }
-
- public ProductRecommendBO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public ProductRecommendBO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getProductSpuId() {
- return productSpuId;
- }
-
- public ProductRecommendBO setProductSpuId(Integer productSpuId) {
- this.productSpuId = productSpuId;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public ProductRecommendBO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public ProductRecommendBO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public ProductRecommendBO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
- public Date getCreateTime() {
- return createTime;
- }
-
- public ProductRecommendBO setCreateTime(Date createTime) {
- this.createTime = createTime;
- return this;
- }
-
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendPageBO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendPageBO.java
index 30d36c5dc..f0221dd43 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendPageBO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/bo/ProductRecommendPageBO.java
@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import java.util.List;
+/**
+ * 商品推荐分页 BO
+ */
+@Data
+@Accessors(chain = true)
public class ProductRecommendPageBO {
/**
@@ -13,22 +21,4 @@ public class ProductRecommendPageBO {
*/
private Integer total;
- public List getList() {
- return list;
- }
-
- public ProductRecommendPageBO setList(List list) {
- this.list = list;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public ProductRecommendPageBO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerAddDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerAddDTO.java
index 8581e834a..573c34705 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerAddDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerAddDTO.java
@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;
@@ -9,6 +11,8 @@ import javax.validation.constraints.NotNull;
/**
* Banner 添加 DTO
*/
+@Data
+@Accessors(chain = true)
public class BannerAddDTO {
@NotEmpty(message = "标题不能为空")
@@ -27,48 +31,4 @@ public class BannerAddDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
- public String getTitle() {
- return title;
- }
-
- public BannerAddDTO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public String getUrl() {
- return url;
- }
-
- public BannerAddDTO setUrl(String url) {
- this.url = url;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public BannerAddDTO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public BannerAddDTO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
- public String getPicUrl() {
- return picUrl;
- }
-
- public BannerAddDTO setPicUrl(String picUrl) {
- this.picUrl = picUrl;
- return this;
- }
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerPageDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerPageDTO.java
index 6b65b4efc..49bf45abc 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerPageDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerPageDTO.java
@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import javax.validation.constraints.NotNull;
+/**
+ * Banner 分页 DTO
+ */
+@Data
+@Accessors(chain = true)
public class BannerPageDTO {
/**
@@ -14,31 +22,4 @@ public class BannerPageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
- public Integer getPageNo() {
- return pageNo;
- }
-
- public BannerPageDTO setPageNo(Integer pageNo) {
- this.pageNo = pageNo;
- return this;
- }
-
- public Integer getPageSize() {
- return pageSize;
- }
-
- public BannerPageDTO setPageSize(Integer pageSize) {
- this.pageSize = pageSize;
- return this;
- }
-
- public String getTitle() {
- return title;
- }
-
- public BannerPageDTO setTitle(String title) {
- this.title = title;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerUpdateDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerUpdateDTO.java
index a89a7728c..42fe8b467 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerUpdateDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/BannerUpdateDTO.java
@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;
@@ -9,6 +11,8 @@ import javax.validation.constraints.NotNull;
/**
* Banner 更新 DTO
*/
+@Data
+@Accessors(chain = true)
public class BannerUpdateDTO {
@NotNull(message = "编号不能为空")
@@ -29,58 +33,4 @@ public class BannerUpdateDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
- public Integer getId() {
- return id;
- }
-
- public BannerUpdateDTO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public String getTitle() {
- return title;
- }
-
- public BannerUpdateDTO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public String getUrl() {
- return url;
- }
-
- public BannerUpdateDTO setUrl(String url) {
- this.url = url;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public BannerUpdateDTO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public BannerUpdateDTO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
- public String getPicUrl() {
- return picUrl;
- }
-
- public BannerUpdateDTO setPicUrl(String picUrl) {
- this.picUrl = picUrl;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateAddDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateAddDTO.java
index 3414ab30b..8db1d56d6 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateAddDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateAddDTO.java
@@ -4,6 +4,8 @@ import cn.iocoder.common.framework.validator.InEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplateDateTypeEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplatePreferentialTypeEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplateRangeTypeEnum;
+import lombok.Data;
+import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max;
@@ -12,6 +14,11 @@ import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
+/**
+ * 优惠劵模板添加 DTO
+ */
+@Data
+@Accessors(chain = true)
public class CouponCardTemplateAddDTO {
// ========== 基本信息 BEGIN ==========
@@ -132,149 +139,4 @@ public class CouponCardTemplateAddDTO {
private Integer discountPriceLimit;
// ========== 使用效果 END ==========
-
- public String getTitle() {
- return title;
- }
-
- public CouponCardTemplateAddDTO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- public CouponCardTemplateAddDTO setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public Integer getQuota() {
- return quota;
- }
-
- public CouponCardTemplateAddDTO setQuota(Integer quota) {
- this.quota = quota;
- return this;
- }
-
- public Integer getPriceAvailable() {
- return priceAvailable;
- }
-
- public CouponCardTemplateAddDTO setPriceAvailable(Integer priceAvailable) {
- this.priceAvailable = priceAvailable;
- return this;
- }
-
- public Integer getRangeType() {
- return rangeType;
- }
-
- public CouponCardTemplateAddDTO setRangeType(Integer rangeType) {
- this.rangeType = rangeType;
- return this;
- }
-
- public String getRangeValues() {
- return rangeValues;
- }
-
- public CouponCardTemplateAddDTO setRangeValues(String rangeValues) {
- this.rangeValues = rangeValues;
- return this;
- }
-
- public Integer getDateType() {
- return dateType;
- }
-
- public CouponCardTemplateAddDTO setDateType(Integer dateType) {
- this.dateType = dateType;
- return this;
- }
-
- public Date getValidStartTime() {
- return validStartTime;
- }
-
- public CouponCardTemplateAddDTO setValidStartTime(Date validStartTime) {
- this.validStartTime = validStartTime;
- return this;
- }
-
- public Date getValidEndTime() {
- return validEndTime;
- }
-
- public CouponCardTemplateAddDTO setValidEndTime(Date validEndTime) {
- this.validEndTime = validEndTime;
- return this;
- }
-
- public Integer getFixedBeginTerm() {
- return fixedBeginTerm;
- }
-
- public CouponCardTemplateAddDTO setFixedBeginTerm(Integer fixedBeginTerm) {
- this.fixedBeginTerm = fixedBeginTerm;
- return this;
- }
-
- public Integer getFixedEndTerm() {
- return fixedEndTerm;
- }
-
- public CouponCardTemplateAddDTO setFixedEndTerm(Integer fixedEndTerm) {
- this.fixedEndTerm = fixedEndTerm;
- return this;
- }
-
- public Integer getPreferentialType() {
- return preferentialType;
- }
-
- public CouponCardTemplateAddDTO setPreferentialType(Integer preferentialType) {
- this.preferentialType = preferentialType;
- return this;
- }
-
- public Integer getPercentOff() {
- return percentOff;
- }
-
- public CouponCardTemplateAddDTO setPercentOff(Integer percentOff) {
- this.percentOff = percentOff;
- return this;
- }
-
- public Integer getPriceOff() {
- return priceOff;
- }
-
- public CouponCardTemplateAddDTO setPriceOff(Integer priceOff) {
- this.priceOff = priceOff;
- return this;
- }
-
- public Integer getDiscountPriceLimit() {
- return discountPriceLimit;
- }
-
- public CouponCardTemplateAddDTO setDiscountPriceLimit(Integer discountPriceLimit) {
- this.discountPriceLimit = discountPriceLimit;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public CouponCardTemplateAddDTO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateUpdateDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateUpdateDTO.java
index 948ad671d..024100ae3 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateUpdateDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCardTemplateUpdateDTO.java
@@ -2,15 +2,22 @@ package cn.iocoder.mall.promotion.api.dto;
import cn.iocoder.common.framework.validator.InEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplateRangeTypeEnum;
+import lombok.Data;
+import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
+/**
+ * 优惠劵模板更新 DTO
+ */
+@Data
+@Accessors(chain = true)
public class CouponCardTemplateUpdateDTO {
- @NotNull(message = "编号不能为空")
+ @NotNull(message = "编号不能为空")
private Integer id;
// ========== 基本信息 BEGIN ==========
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateAddDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateAddDTO.java
index 85a307243..f3c5a8b2a 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateAddDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateAddDTO.java
@@ -1,4 +1,12 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * 优惠码模板添加 DTO
+ */
+@Data
+@Accessors(chain = true)
public class CouponCodeTemplateAddDTO {
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateUpdateDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateUpdateDTO.java
index 8a88fb159..862bbc3f5 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateUpdateDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponCodeTemplateUpdateDTO.java
@@ -1,4 +1,12 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * 优惠码模板更新 DTO
+ */
+@Data
+@Accessors(chain = true)
public class CouponCodeTemplateUpdateDTO {
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponTemplatePageDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponTemplatePageDTO.java
index d283eed37..245ac7884 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponTemplatePageDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/CouponTemplatePageDTO.java
@@ -1,10 +1,15 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import javax.validation.constraints.NotNull;
/**
* 优惠劵模板分页 DTO
*/
+@Data
+@Accessors(chain = true)
public class CouponTemplatePageDTO {
/**
@@ -29,57 +34,4 @@ public class CouponTemplatePageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
- public Integer getType() {
- return type;
- }
-
- public CouponTemplatePageDTO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public String getTitle() {
- return title;
- }
-
- public CouponTemplatePageDTO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public CouponTemplatePageDTO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public Integer getPreferentialType() {
- return preferentialType;
- }
-
- public CouponTemplatePageDTO setPreferentialType(Integer preferentialType) {
- this.preferentialType = preferentialType;
- return this;
- }
-
- public Integer getPageNo() {
- return pageNo;
- }
-
- public CouponTemplatePageDTO setPageNo(Integer pageNo) {
- this.pageNo = pageNo;
- return this;
- }
-
- public Integer getPageSize() {
- return pageSize;
- }
-
- public CouponTemplatePageDTO setPageSize(Integer pageSize) {
- this.pageSize = pageSize;
- return this;
- }
}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendAddDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendAddDTO.java
index af042b409..b1c95e632 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendAddDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendAddDTO.java
@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
@@ -7,6 +9,8 @@ import javax.validation.constraints.NotNull;
/**
* 商品推荐添加 DTO
*/
+@Data
+@Accessors(chain = true)
public class ProductRecommendAddDTO {
@NotNull(message = "推荐类型不能为空")
@@ -18,40 +22,4 @@ public class ProductRecommendAddDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
- public Integer getType() {
- return type;
- }
-
- public ProductRecommendAddDTO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getProductSpuId() {
- return productSpuId;
- }
-
- public ProductRecommendAddDTO setProductSpuId(Integer productSpuId) {
- this.productSpuId = productSpuId;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public ProductRecommendAddDTO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public ProductRecommendAddDTO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendPageDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendPageDTO.java
index 21567327a..f61e1e100 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendPageDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendPageDTO.java
@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
import javax.validation.constraints.NotNull;
+/**
+ * 商品推荐分页 DTO
+ */
+@Data
+@Accessors(chain = true)
public class ProductRecommendPageDTO {
/**
@@ -14,31 +22,4 @@ public class ProductRecommendPageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
- public Integer getPageNo() {
- return pageNo;
- }
-
- public ProductRecommendPageDTO setPageNo(Integer pageNo) {
- this.pageNo = pageNo;
- return this;
- }
-
- public Integer getPageSize() {
- return pageSize;
- }
-
- public ProductRecommendPageDTO setPageSize(Integer pageSize) {
- this.pageSize = pageSize;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public ProductRecommendPageDTO setType(Integer type) {
- this.type = type;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendUpdateDTO.java b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendUpdateDTO.java
index 779696686..305900360 100644
--- a/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendUpdateDTO.java
+++ b/promotion/promotion-service-api/src/main/java/cn/iocoder/mall/promotion/api/dto/ProductRecommendUpdateDTO.java
@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
+import lombok.Data;
+import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
@@ -7,6 +9,8 @@ import javax.validation.constraints.NotNull;
/**
* 商品推荐更新 DTO
*/
+@Data
+@Accessors(chain = true)
public class ProductRecommendUpdateDTO {
@NotNull(message = "编号不能为空")
@@ -20,49 +24,4 @@ public class ProductRecommendUpdateDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
- public Integer getId() {
- return id;
- }
-
- public ProductRecommendUpdateDTO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public ProductRecommendUpdateDTO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getProductSpuId() {
- return productSpuId;
- }
-
- public ProductRecommendUpdateDTO setProductSpuId(Integer productSpuId) {
- this.productSpuId = productSpuId;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public ProductRecommendUpdateDTO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public ProductRecommendUpdateDTO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-impl/pom.xml b/promotion/promotion-service-impl/pom.xml
index fd948f28f..ddee2b94d 100644
--- a/promotion/promotion-service-impl/pom.xml
+++ b/promotion/promotion-service-impl/pom.xml
@@ -21,17 +21,16 @@
cn.iocoder.mall
admin-service-api
1.0-SNAPSHOT
- compile
+
+ cn.iocoder.mall
+ product-service-api
+ 1.0-SNAPSHOT
+
+
com.alibaba
dubbo
- compile
-
-
- com.google.guava
- guava
- 27.0.1-jre
@@ -46,7 +45,6 @@
org.mybatis.spring.boot
mybatis-spring-boot-starter
- 2.0.0
@@ -57,19 +55,16 @@
com.google.guava
guava
- 27.0.1-jre
com.xuxueli
xxl-job-core
- 2.0.1
org.apache.rocketmq
rocketmq-spring-boot-starter
- 2.0.1
@@ -78,18 +73,7 @@
spring-boot-starter-test
test
-
- cn.iocoder.mall
- user-sdk
- 1.0-SNAPSHOT
- compile
-
-
- cn.iocoder.mall
- product-service-api
- 1.0-SNAPSHOT
- compile
-
+
diff --git a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCardDO.java b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCardDO.java
index ed966e707..5223c8d74 100644
--- a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCardDO.java
+++ b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCardDO.java
@@ -1,12 +1,16 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.Date;
/**
* 优惠劵 DO
*/
+@Data
+@Accessors(chain = true)
public class CouponCardDO extends BaseDO {
// ========== 基本信息 BEGIN ==========
diff --git a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCodeDO.java b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCodeDO.java
index b82e067be..a5a462186 100644
--- a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCodeDO.java
+++ b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponCodeDO.java
@@ -1,12 +1,16 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.Date;
/**
* 优惠码
*/
+@Data
+@Accessors(chain = true)
public class CouponCodeDO extends BaseDO {
/**
@@ -34,57 +38,4 @@ public class CouponCodeDO extends BaseDO {
*/
private Integer couponId;
- public Integer getId() {
- return id;
- }
-
- public CouponCodeDO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public Integer getTemplateId() {
- return templateId;
- }
-
- public CouponCodeDO setTemplateId(Integer templateId) {
- this.templateId = templateId;
- return this;
- }
-
- public Integer getCode() {
- return code;
- }
-
- public CouponCodeDO setCode(Integer code) {
- this.code = code;
- return this;
- }
-
- public Date getTakeTime() {
- return takeTime;
- }
-
- public CouponCodeDO setTakeTime(Date takeTime) {
- this.takeTime = takeTime;
- return this;
- }
-
- public Integer getUserId() {
- return userId;
- }
-
- public CouponCodeDO setUserId(Integer userId) {
- this.userId = userId;
- return this;
- }
-
- public Integer getCouponId() {
- return couponId;
- }
-
- public CouponCodeDO setCouponId(Integer couponId) {
- this.couponId = couponId;
- return this;
- }
-}
\ No newline at end of file
+}
diff --git a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponTemplateDO.java b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponTemplateDO.java
index 4b2182200..e7cc00879 100644
--- a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponTemplateDO.java
+++ b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/CouponTemplateDO.java
@@ -1,6 +1,8 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
+import lombok.Data;
+import lombok.experimental.Accessors;
import java.util.Date;
@@ -9,6 +11,8 @@ import java.util.Date;
*
* 当用户领取时,会生成 {@link CouponCardDO} 优惠劵(码)。
*/
+@Data
+@Accessors(chain = true)
public class CouponTemplateDO extends BaseDO {
// ========== 基本信息 BEGIN ==========
@@ -208,193 +212,4 @@ public class CouponTemplateDO extends BaseDO {
// private Integer statUseNum;
// ========== 统计信息 END ==========
-
- public Integer getId() {
- return id;
- }
-
- public CouponTemplateDO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public String getTitle() {
- return title;
- }
-
- public CouponTemplateDO setTitle(String title) {
- this.title = title;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- public CouponTemplateDO setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public CouponTemplateDO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getCodeType() {
- return codeType;
- }
-
- public CouponTemplateDO setCodeType(Integer codeType) {
- this.codeType = codeType;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public CouponTemplateDO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public Integer getQuota() {
- return quota;
- }
-
- public CouponTemplateDO setQuota(Integer quota) {
- this.quota = quota;
- return this;
- }
-
- public Integer getTotal() {
- return total;
- }
-
- public CouponTemplateDO setTotal(Integer total) {
- this.total = total;
- return this;
- }
-
- public Integer getPriceAvailable() {
- return priceAvailable;
- }
-
- public CouponTemplateDO setPriceAvailable(Integer priceAvailable) {
- this.priceAvailable = priceAvailable;
- return this;
- }
-
- public Integer getRangeType() {
- return rangeType;
- }
-
- public CouponTemplateDO setRangeType(Integer rangeType) {
- this.rangeType = rangeType;
- return this;
- }
-
- public String getRangeValues() {
- return rangeValues;
- }
-
- public CouponTemplateDO setRangeValues(String rangeValues) {
- this.rangeValues = rangeValues;
- return this;
- }
-
- public Integer getDateType() {
- return dateType;
- }
-
- public CouponTemplateDO setDateType(Integer dateType) {
- this.dateType = dateType;
- return this;
- }
-
- public Date getValidStartTime() {
- return validStartTime;
- }
-
- public CouponTemplateDO setValidStartTime(Date validStartTime) {
- this.validStartTime = validStartTime;
- return this;
- }
-
- public Date getValidEndTime() {
- return validEndTime;
- }
-
- public CouponTemplateDO setValidEndTime(Date validEndTime) {
- this.validEndTime = validEndTime;
- return this;
- }
-
- public Integer getFixedStartTerm() {
- return fixedStartTerm;
- }
-
- public CouponTemplateDO setFixedStartTerm(Integer fixedStartTerm) {
- this.fixedStartTerm = fixedStartTerm;
- return this;
- }
-
- public Integer getFixedEndTerm() {
- return fixedEndTerm;
- }
-
- public CouponTemplateDO setFixedEndTerm(Integer fixedEndTerm) {
- this.fixedEndTerm = fixedEndTerm;
- return this;
- }
-
- public Integer getPreferentialType() {
- return preferentialType;
- }
-
- public CouponTemplateDO setPreferentialType(Integer preferentialType) {
- this.preferentialType = preferentialType;
- return this;
- }
-
- public Integer getPercentOff() {
- return percentOff;
- }
-
- public CouponTemplateDO setPercentOff(Integer percentOff) {
- this.percentOff = percentOff;
- return this;
- }
-
- public Integer getPriceOff() {
- return priceOff;
- }
-
- public CouponTemplateDO setPriceOff(Integer priceOff) {
- this.priceOff = priceOff;
- return this;
- }
-
- public Integer getDiscountPriceLimit() {
- return discountPriceLimit;
- }
-
- public CouponTemplateDO setDiscountPriceLimit(Integer discountPriceLimit) {
- this.discountPriceLimit = discountPriceLimit;
- return this;
- }
-
- public Integer getStatFetchNum() {
- return statFetchNum;
- }
-
- public CouponTemplateDO setStatFetchNum(Integer statFetchNum) {
- this.statFetchNum = statFetchNum;
- return this;
- }
}
diff --git a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/ProductRecommendDO.java b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/ProductRecommendDO.java
index 601c2f388..8b245aa5a 100644
--- a/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/ProductRecommendDO.java
+++ b/promotion/promotion-service-impl/src/main/java/cn/iocoder/mall/promotion/biz/dataobject/ProductRecommendDO.java
@@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import cn.iocoder.mall.promotion.api.constant.ProductRecommendTypeEnum;
+import lombok.Data;
+import lombok.experimental.Accessors;
/**
* 商品推荐 DO
*/
+@Data
+@Accessors(chain = true)
public class ProductRecommendDO extends DeletableDO {
/**
@@ -38,58 +42,4 @@ public class ProductRecommendDO extends DeletableDO {
*/
private String memo;
- public Integer getId() {
- return id;
- }
-
- public ProductRecommendDO setId(Integer id) {
- this.id = id;
- return this;
- }
-
- public Integer getType() {
- return type;
- }
-
- public ProductRecommendDO setType(Integer type) {
- this.type = type;
- return this;
- }
-
- public Integer getProductSpuId() {
- return productSpuId;
- }
-
- public ProductRecommendDO setProductSpuId(Integer productSpuId) {
- this.productSpuId = productSpuId;
- return this;
- }
-
- public Integer getSort() {
- return sort;
- }
-
- public ProductRecommendDO setSort(Integer sort) {
- this.sort = sort;
- return this;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public ProductRecommendDO setStatus(Integer status) {
- this.status = status;
- return this;
- }
-
- public String getMemo() {
- return memo;
- }
-
- public ProductRecommendDO setMemo(String memo) {
- this.memo = memo;
- return this;
- }
-
}
diff --git a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java
index 6cb89e9db..5bd1c7cc0 100644
--- a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java
+++ b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java
@@ -12,7 +12,7 @@ import javax.annotation.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
- date = "2019-04-06T01:40:11+0800",
+ date = "2019-04-06T20:54:04+0800",
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
)
public class CouponTemplateConvertImpl implements CouponTemplateConvert {
@@ -121,14 +121,14 @@ public class CouponTemplateConvertImpl implements CouponTemplateConvert {
couponTemplateBO.setDateType( template.getDateType() );
couponTemplateBO.setValidStartTime( template.getValidStartTime() );
couponTemplateBO.setValidEndTime( template.getValidEndTime() );
+ couponTemplateBO.setFixedStartTerm( template.getFixedStartTerm() );
+ couponTemplateBO.setFixedEndTerm( template.getFixedEndTerm() );
couponTemplateBO.setPreferentialType( template.getPreferentialType() );
couponTemplateBO.setPercentOff( template.getPercentOff() );
couponTemplateBO.setPriceOff( template.getPriceOff() );
couponTemplateBO.setDiscountPriceLimit( template.getDiscountPriceLimit() );
couponTemplateBO.setStatFetchNum( template.getStatFetchNum() );
couponTemplateBO.setCreateTime( template.getCreateTime() );
- couponTemplateBO.setFixedStartTerm( template.getFixedStartTerm() );
- couponTemplateBO.setFixedEndTerm( template.getFixedEndTerm() );
return couponTemplateBO;
}