后端:去除 promotion 模块的 setting getting 方法

This commit is contained in:
YunaiV
2019-04-06 20:54:46 +08:00
parent 83ab405b1c
commit d5ac7ea8a7
32 changed files with 222 additions and 1446 deletions

View File

@@ -21,17 +21,16 @@
<groupId>cn.iocoder.mall</groupId>
<artifactId>admin-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>product-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0.1-jre</version>
</dependency>
<dependency>
@@ -46,7 +45,6 @@
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
@@ -57,19 +55,16 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0.1-jre</version>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>2.0.1</version>
</dependency>
<!-- test -->
@@ -78,18 +73,7 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>product-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>

View File

@@ -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 ==========

View File

@@ -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;
}
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}