限时购库表修改

This commit is contained in:
zhh
2018-11-14 15:42:33 +08:00
parent ec93f735ed
commit 2f79e06b24
18 changed files with 6723 additions and 4291 deletions

View File

@@ -10,7 +10,7 @@ public interface SmsFlashPromotionMapper {
int deleteByExample(SmsFlashPromotionExample example);
int deleteByPrimaryKey(Integer id);
int deleteByPrimaryKey(Long id);
int insert(SmsFlashPromotion record);
@@ -18,7 +18,7 @@ public interface SmsFlashPromotionMapper {
List<SmsFlashPromotion> selectByExample(SmsFlashPromotionExample example);
SmsFlashPromotion selectByPrimaryKey(Integer id);
SmsFlashPromotion selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example);

View File

@@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsFlashPromotionProductRelation;
import com.macro.mall.model.SmsFlashPromotionProductRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsFlashPromotionProductRelationMapper {
int countByExample(SmsFlashPromotionProductRelationExample example);
int deleteByExample(SmsFlashPromotionProductRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsFlashPromotionProductRelation record);
int insertSelective(SmsFlashPromotionProductRelation record);
List<SmsFlashPromotionProductRelation> selectByExample(SmsFlashPromotionProductRelationExample example);
SmsFlashPromotionProductRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example);
int updateByExample(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example);
int updateByPrimaryKeySelective(SmsFlashPromotionProductRelation record);
int updateByPrimaryKey(SmsFlashPromotionProductRelation record);
}

View File

@@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsFlashPromotionSession;
import com.macro.mall.model.SmsFlashPromotionSessionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsFlashPromotionSessionMapper {
int countByExample(SmsFlashPromotionSessionExample example);
int deleteByExample(SmsFlashPromotionSessionExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsFlashPromotionSession record);
int insertSelective(SmsFlashPromotionSession record);
List<SmsFlashPromotionSession> selectByExample(SmsFlashPromotionSessionExample example);
SmsFlashPromotionSession selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example);
int updateByExample(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example);
int updateByPrimaryKeySelective(SmsFlashPromotionSession record);
int updateByPrimaryKey(SmsFlashPromotionSession record);
}

View File

@@ -15,13 +15,6 @@ public class PmsProduct implements Serializable {
private Long productAttributeCategoryId;
/**
* 限时购id
*
* @mbggenerated
*/
private Integer flashPromotionId;
private String name;
private String pic;
@@ -181,27 +174,6 @@ public class PmsProduct implements Serializable {
private String detailTitle;
/**
* 限时购价格
*
* @mbggenerated
*/
private BigDecimal flashPromotionPrice;
/**
* 限时购数量
*
* @mbggenerated
*/
private Integer flashPromotionCount;
/**
* 限时购排序
*
* @mbggenerated
*/
private Integer flashPromotionSort;
/**
* 促销开始时间
*
@@ -224,7 +196,7 @@ public class PmsProduct implements Serializable {
private Integer promotionPerLimit;
/**
* 促销类型0->没有促销使用原价;1->使用促销价2->使用会员价3->使用阶梯价格4->使用满减价格
* 促销类型0->没有促销使用原价;1->使用促销价2->使用会员价3->使用阶梯价格4->使用满减价格5->限时购
*
* @mbggenerated
*/
@@ -309,14 +281,6 @@ public class PmsProduct implements Serializable {
this.productAttributeCategoryId = productAttributeCategoryId;
}
public Integer getFlashPromotionId() {
return flashPromotionId;
}
public void setFlashPromotionId(Integer flashPromotionId) {
this.flashPromotionId = flashPromotionId;
}
public String getName() {
return name;
}
@@ -533,30 +497,6 @@ public class PmsProduct implements Serializable {
this.detailTitle = detailTitle;
}
public BigDecimal getFlashPromotionPrice() {
return flashPromotionPrice;
}
public void setFlashPromotionPrice(BigDecimal flashPromotionPrice) {
this.flashPromotionPrice = flashPromotionPrice;
}
public Integer getFlashPromotionCount() {
return flashPromotionCount;
}
public void setFlashPromotionCount(Integer flashPromotionCount) {
this.flashPromotionCount = flashPromotionCount;
}
public Integer getFlashPromotionSort() {
return flashPromotionSort;
}
public void setFlashPromotionSort(Integer flashPromotionSort) {
this.flashPromotionSort = flashPromotionSort;
}
public Date getPromotionStartTime() {
return promotionStartTime;
}
@@ -648,7 +588,6 @@ public class PmsProduct implements Serializable {
sb.append(", productCategoryId=").append(productCategoryId);
sb.append(", feightTemplateId=").append(feightTemplateId);
sb.append(", productAttributeCategoryId=").append(productAttributeCategoryId);
sb.append(", flashPromotionId=").append(flashPromotionId);
sb.append(", name=").append(name);
sb.append(", pic=").append(pic);
sb.append(", productSn=").append(productSn);
@@ -676,9 +615,6 @@ public class PmsProduct implements Serializable {
sb.append(", note=").append(note);
sb.append(", albumPics=").append(albumPics);
sb.append(", detailTitle=").append(detailTitle);
sb.append(", flashPromotionPrice=").append(flashPromotionPrice);
sb.append(", flashPromotionCount=").append(flashPromotionCount);
sb.append(", flashPromotionSort=").append(flashPromotionSort);
sb.append(", promotionStartTime=").append(promotionStartTime);
sb.append(", promotionEndTime=").append(promotionEndTime);
sb.append(", promotionPerLimit=").append(promotionPerLimit);

View File

@@ -406,66 +406,6 @@ public class PmsProductExample {
return (Criteria) this;
}
public Criteria andFlashPromotionIdIsNull() {
addCriterion("flash_promotion_id is null");
return (Criteria) this;
}
public Criteria andFlashPromotionIdIsNotNull() {
addCriterion("flash_promotion_id is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionIdEqualTo(Integer value) {
addCriterion("flash_promotion_id =", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdNotEqualTo(Integer value) {
addCriterion("flash_promotion_id <>", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdGreaterThan(Integer value) {
addCriterion("flash_promotion_id >", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdGreaterThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_id >=", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdLessThan(Integer value) {
addCriterion("flash_promotion_id <", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdLessThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_id <=", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdIn(List<Integer> values) {
addCriterion("flash_promotion_id in", values, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdNotIn(List<Integer> values) {
addCriterion("flash_promotion_id not in", values, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_id between", value1, value2, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdNotBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_id not between", value1, value2, "flashPromotionId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
@@ -2186,186 +2126,6 @@ public class PmsProductExample {
return (Criteria) this;
}
public Criteria andFlashPromotionPriceIsNull() {
addCriterion("flash_promotion_price is null");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceIsNotNull() {
addCriterion("flash_promotion_price is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price =", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceNotEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price <>", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceGreaterThan(BigDecimal value) {
addCriterion("flash_promotion_price >", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price >=", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceLessThan(BigDecimal value) {
addCriterion("flash_promotion_price <", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price <=", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceIn(List<BigDecimal> values) {
addCriterion("flash_promotion_price in", values, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceNotIn(List<BigDecimal> values) {
addCriterion("flash_promotion_price not in", values, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("flash_promotion_price between", value1, value2, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("flash_promotion_price not between", value1, value2, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionCountIsNull() {
addCriterion("flash_promotion_count is null");
return (Criteria) this;
}
public Criteria andFlashPromotionCountIsNotNull() {
addCriterion("flash_promotion_count is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionCountEqualTo(Integer value) {
addCriterion("flash_promotion_count =", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountNotEqualTo(Integer value) {
addCriterion("flash_promotion_count <>", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountGreaterThan(Integer value) {
addCriterion("flash_promotion_count >", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountGreaterThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_count >=", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountLessThan(Integer value) {
addCriterion("flash_promotion_count <", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountLessThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_count <=", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountIn(List<Integer> values) {
addCriterion("flash_promotion_count in", values, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountNotIn(List<Integer> values) {
addCriterion("flash_promotion_count not in", values, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_count between", value1, value2, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountNotBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_count not between", value1, value2, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionSortIsNull() {
addCriterion("flash_promotion_sort is null");
return (Criteria) this;
}
public Criteria andFlashPromotionSortIsNotNull() {
addCriterion("flash_promotion_sort is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionSortEqualTo(Integer value) {
addCriterion("flash_promotion_sort =", value, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortNotEqualTo(Integer value) {
addCriterion("flash_promotion_sort <>", value, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortGreaterThan(Integer value) {
addCriterion("flash_promotion_sort >", value, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortGreaterThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_sort >=", value, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortLessThan(Integer value) {
addCriterion("flash_promotion_sort <", value, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortLessThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_sort <=", value, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortIn(List<Integer> values) {
addCriterion("flash_promotion_sort in", values, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortNotIn(List<Integer> values) {
addCriterion("flash_promotion_sort not in", values, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_sort between", value1, value2, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andFlashPromotionSortNotBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_sort not between", value1, value2, "flashPromotionSort");
return (Criteria) this;
}
public Criteria andPromotionStartTimeIsNull() {
addCriterion("promotion_start_time is null");
return (Criteria) this;

View File

@@ -4,23 +4,23 @@ import java.io.Serializable;
import java.util.Date;
public class SmsFlashPromotion implements Serializable {
private Integer id;
private Long id;
private String title;
/**
* 开始时间
* 开始日期
*
* @mbggenerated
*/
private Date startTime;
private Date startDate;
/**
* 结束时间
* 结束日期
*
* @mbggenerated
*/
private Date endTime;
private Date endDate;
/**
* 上下线状态
@@ -34,15 +34,15 @@ public class SmsFlashPromotion implements Serializable {
*
* @mbggenerated
*/
private String timeName;
private Date createTime;
private static final long serialVersionUID = 1L;
public Integer getId() {
public Long getId() {
return id;
}
public void setId(Integer id) {
public void setId(Long id) {
this.id = id;
}
@@ -54,20 +54,20 @@ public class SmsFlashPromotion implements Serializable {
this.title = title;
}
public Date getStartTime() {
return startTime;
public Date getStartDate() {
return startDate;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndTime() {
return endTime;
public Date getEndDate() {
return endDate;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public Integer getStatus() {
@@ -78,12 +78,12 @@ public class SmsFlashPromotion implements Serializable {
this.status = status;
}
public String getTimeName() {
return timeName;
public Date getCreateTime() {
return createTime;
}
public void setTimeName(String timeName) {
this.timeName = timeName;
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
@@ -94,10 +94,10 @@ public class SmsFlashPromotion implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", title=").append(title);
sb.append(", startTime=").append(startTime);
sb.append(", endTime=").append(endTime);
sb.append(", startDate=").append(startDate);
sb.append(", endDate=").append(endDate);
sb.append(", status=").append(status);
sb.append(", timeName=").append(timeName);
sb.append(", createTime=").append(createTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();

View File

@@ -2,6 +2,7 @@ package com.macro.mall.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class SmsFlashPromotionExample {
@@ -105,6 +106,32 @@ public class SmsFlashPromotionExample {
criteria.add(new Criterion(condition, value1, value2));
}
protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value.getTime()), property);
}
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
}
List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
Iterator<Date> iter = values.iterator();
while (iter.hasNext()) {
dateList.add(new java.sql.Date(iter.next().getTime()));
}
addCriterion(condition, dateList, property);
}
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
@@ -115,52 +142,52 @@ public class SmsFlashPromotionExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@@ -235,123 +262,123 @@ public class SmsFlashPromotionExample {
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
public Criteria andStartDateIsNull() {
addCriterion("start_date is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
public Criteria andStartDateIsNotNull() {
addCriterion("start_date is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(Date value) {
addCriterion("start_time =", value, "startTime");
public Criteria andStartDateEqualTo(Date value) {
addCriterionForJDBCDate("start_date =", value, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(Date value) {
addCriterion("start_time <>", value, "startTime");
public Criteria andStartDateNotEqualTo(Date value) {
addCriterionForJDBCDate("start_date <>", value, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(Date value) {
addCriterion("start_time >", value, "startTime");
public Criteria andStartDateGreaterThan(Date value) {
addCriterionForJDBCDate("start_date >", value, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
addCriterion("start_time >=", value, "startTime");
public Criteria andStartDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("start_date >=", value, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(Date value) {
addCriterion("start_time <", value, "startTime");
public Criteria andStartDateLessThan(Date value) {
addCriterionForJDBCDate("start_date <", value, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(Date value) {
addCriterion("start_time <=", value, "startTime");
public Criteria andStartDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("start_date <=", value, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<Date> values) {
addCriterion("start_time in", values, "startTime");
public Criteria andStartDateIn(List<Date> values) {
addCriterionForJDBCDate("start_date in", values, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<Date> values) {
addCriterion("start_time not in", values, "startTime");
public Criteria andStartDateNotIn(List<Date> values) {
addCriterionForJDBCDate("start_date not in", values, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeBetween(Date value1, Date value2) {
addCriterion("start_time between", value1, value2, "startTime");
public Criteria andStartDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("start_date between", value1, value2, "startDate");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(Date value1, Date value2) {
addCriterion("start_time not between", value1, value2, "startTime");
public Criteria andStartDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("start_date not between", value1, value2, "startDate");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
public Criteria andEndDateIsNull() {
addCriterion("end_date is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
public Criteria andEndDateIsNotNull() {
addCriterion("end_date is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(Date value) {
addCriterion("end_time =", value, "endTime");
public Criteria andEndDateEqualTo(Date value) {
addCriterionForJDBCDate("end_date =", value, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(Date value) {
addCriterion("end_time <>", value, "endTime");
public Criteria andEndDateNotEqualTo(Date value) {
addCriterionForJDBCDate("end_date <>", value, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(Date value) {
addCriterion("end_time >", value, "endTime");
public Criteria andEndDateGreaterThan(Date value) {
addCriterionForJDBCDate("end_date >", value, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
addCriterion("end_time >=", value, "endTime");
public Criteria andEndDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("end_date >=", value, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(Date value) {
addCriterion("end_time <", value, "endTime");
public Criteria andEndDateLessThan(Date value) {
addCriterionForJDBCDate("end_date <", value, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(Date value) {
addCriterion("end_time <=", value, "endTime");
public Criteria andEndDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("end_date <=", value, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<Date> values) {
addCriterion("end_time in", values, "endTime");
public Criteria andEndDateIn(List<Date> values) {
addCriterionForJDBCDate("end_date in", values, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<Date> values) {
addCriterion("end_time not in", values, "endTime");
public Criteria andEndDateNotIn(List<Date> values) {
addCriterionForJDBCDate("end_date not in", values, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeBetween(Date value1, Date value2) {
addCriterion("end_time between", value1, value2, "endTime");
public Criteria andEndDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("end_date between", value1, value2, "endDate");
return (Criteria) this;
}
public Criteria andEndTimeNotBetween(Date value1, Date value2) {
addCriterion("end_time not between", value1, value2, "endTime");
public Criteria andEndDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("end_date not between", value1, value2, "endDate");
return (Criteria) this;
}
@@ -415,73 +442,63 @@ public class SmsFlashPromotionExample {
return (Criteria) this;
}
public Criteria andTimeNameIsNull() {
addCriterion("time_name is null");
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andTimeNameIsNotNull() {
addCriterion("time_name is not null");
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andTimeNameEqualTo(String value) {
addCriterion("time_name =", value, "timeName");
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameNotEqualTo(String value) {
addCriterion("time_name <>", value, "timeName");
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameGreaterThan(String value) {
addCriterion("time_name >", value, "timeName");
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameGreaterThanOrEqualTo(String value) {
addCriterion("time_name >=", value, "timeName");
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameLessThan(String value) {
addCriterion("time_name <", value, "timeName");
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameLessThanOrEqualTo(String value) {
addCriterion("time_name <=", value, "timeName");
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameLike(String value) {
addCriterion("time_name like", value, "timeName");
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameNotLike(String value) {
addCriterion("time_name not like", value, "timeName");
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameIn(List<String> values) {
addCriterion("time_name in", values, "timeName");
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andTimeNameNotIn(List<String> values) {
addCriterion("time_name not in", values, "timeName");
return (Criteria) this;
}
public Criteria andTimeNameBetween(String value1, String value2) {
addCriterion("time_name between", value1, value2, "timeName");
return (Criteria) this;
}
public Criteria andTimeNameNotBetween(String value1, String value2) {
addCriterion("time_name not between", value1, value2, "timeName");
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}

View File

@@ -0,0 +1,137 @@
package com.macro.mall.model;
import java.io.Serializable;
import java.math.BigDecimal;
public class SmsFlashPromotionProductRelation implements Serializable {
/**
* 编号
*
* @mbggenerated
*/
private Long id;
private Long flashPromotionId;
/**
* 编号
*
* @mbggenerated
*/
private Long flashPromotionSessionId;
private Long productId;
/**
* 限时购价格
*
* @mbggenerated
*/
private BigDecimal flashPromotionPrice;
/**
* 限时购数量
*
* @mbggenerated
*/
private Integer flashPromotionCount;
/**
* 每人限购数量
*
* @mbggenerated
*/
private Integer flashPromotionLimit;
/**
* 排序
*
* @mbggenerated
*/
private Integer sort;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getFlashPromotionId() {
return flashPromotionId;
}
public void setFlashPromotionId(Long flashPromotionId) {
this.flashPromotionId = flashPromotionId;
}
public Long getFlashPromotionSessionId() {
return flashPromotionSessionId;
}
public void setFlashPromotionSessionId(Long flashPromotionSessionId) {
this.flashPromotionSessionId = flashPromotionSessionId;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public BigDecimal getFlashPromotionPrice() {
return flashPromotionPrice;
}
public void setFlashPromotionPrice(BigDecimal flashPromotionPrice) {
this.flashPromotionPrice = flashPromotionPrice;
}
public Integer getFlashPromotionCount() {
return flashPromotionCount;
}
public void setFlashPromotionCount(Integer flashPromotionCount) {
this.flashPromotionCount = flashPromotionCount;
}
public Integer getFlashPromotionLimit() {
return flashPromotionLimit;
}
public void setFlashPromotionLimit(Integer flashPromotionLimit) {
this.flashPromotionLimit = flashPromotionLimit;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", flashPromotionId=").append(flashPromotionId);
sb.append(", flashPromotionSessionId=").append(flashPromotionSessionId);
sb.append(", productId=").append(productId);
sb.append(", flashPromotionPrice=").append(flashPromotionPrice);
sb.append(", flashPromotionCount=").append(flashPromotionCount);
sb.append(", flashPromotionLimit=").append(flashPromotionLimit);
sb.append(", sort=").append(sort);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@@ -0,0 +1,681 @@
package com.macro.mall.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
public class SmsFlashPromotionProductRelationExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmsFlashPromotionProductRelationExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andFlashPromotionIdIsNull() {
addCriterion("flash_promotion_id is null");
return (Criteria) this;
}
public Criteria andFlashPromotionIdIsNotNull() {
addCriterion("flash_promotion_id is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionIdEqualTo(Long value) {
addCriterion("flash_promotion_id =", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdNotEqualTo(Long value) {
addCriterion("flash_promotion_id <>", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdGreaterThan(Long value) {
addCriterion("flash_promotion_id >", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdGreaterThanOrEqualTo(Long value) {
addCriterion("flash_promotion_id >=", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdLessThan(Long value) {
addCriterion("flash_promotion_id <", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdLessThanOrEqualTo(Long value) {
addCriterion("flash_promotion_id <=", value, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdIn(List<Long> values) {
addCriterion("flash_promotion_id in", values, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdNotIn(List<Long> values) {
addCriterion("flash_promotion_id not in", values, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdBetween(Long value1, Long value2) {
addCriterion("flash_promotion_id between", value1, value2, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionIdNotBetween(Long value1, Long value2) {
addCriterion("flash_promotion_id not between", value1, value2, "flashPromotionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdIsNull() {
addCriterion("flash_promotion_session_id is null");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdIsNotNull() {
addCriterion("flash_promotion_session_id is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdEqualTo(Long value) {
addCriterion("flash_promotion_session_id =", value, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdNotEqualTo(Long value) {
addCriterion("flash_promotion_session_id <>", value, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdGreaterThan(Long value) {
addCriterion("flash_promotion_session_id >", value, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdGreaterThanOrEqualTo(Long value) {
addCriterion("flash_promotion_session_id >=", value, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdLessThan(Long value) {
addCriterion("flash_promotion_session_id <", value, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdLessThanOrEqualTo(Long value) {
addCriterion("flash_promotion_session_id <=", value, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdIn(List<Long> values) {
addCriterion("flash_promotion_session_id in", values, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdNotIn(List<Long> values) {
addCriterion("flash_promotion_session_id not in", values, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdBetween(Long value1, Long value2) {
addCriterion("flash_promotion_session_id between", value1, value2, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andFlashPromotionSessionIdNotBetween(Long value1, Long value2) {
addCriterion("flash_promotion_session_id not between", value1, value2, "flashPromotionSessionId");
return (Criteria) this;
}
public Criteria andProductIdIsNull() {
addCriterion("product_id is null");
return (Criteria) this;
}
public Criteria andProductIdIsNotNull() {
addCriterion("product_id is not null");
return (Criteria) this;
}
public Criteria andProductIdEqualTo(Long value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotEqualTo(Long value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThan(Long value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThanOrEqualTo(Long value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThan(Long value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThanOrEqualTo(Long value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<Long> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotIn(List<Long> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdBetween(Long value1, Long value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotBetween(Long value1, Long value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceIsNull() {
addCriterion("flash_promotion_price is null");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceIsNotNull() {
addCriterion("flash_promotion_price is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price =", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceNotEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price <>", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceGreaterThan(BigDecimal value) {
addCriterion("flash_promotion_price >", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price >=", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceLessThan(BigDecimal value) {
addCriterion("flash_promotion_price <", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("flash_promotion_price <=", value, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceIn(List<BigDecimal> values) {
addCriterion("flash_promotion_price in", values, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceNotIn(List<BigDecimal> values) {
addCriterion("flash_promotion_price not in", values, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("flash_promotion_price between", value1, value2, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("flash_promotion_price not between", value1, value2, "flashPromotionPrice");
return (Criteria) this;
}
public Criteria andFlashPromotionCountIsNull() {
addCriterion("flash_promotion_count is null");
return (Criteria) this;
}
public Criteria andFlashPromotionCountIsNotNull() {
addCriterion("flash_promotion_count is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionCountEqualTo(Integer value) {
addCriterion("flash_promotion_count =", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountNotEqualTo(Integer value) {
addCriterion("flash_promotion_count <>", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountGreaterThan(Integer value) {
addCriterion("flash_promotion_count >", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountGreaterThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_count >=", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountLessThan(Integer value) {
addCriterion("flash_promotion_count <", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountLessThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_count <=", value, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountIn(List<Integer> values) {
addCriterion("flash_promotion_count in", values, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountNotIn(List<Integer> values) {
addCriterion("flash_promotion_count not in", values, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_count between", value1, value2, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionCountNotBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_count not between", value1, value2, "flashPromotionCount");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitIsNull() {
addCriterion("flash_promotion_limit is null");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitIsNotNull() {
addCriterion("flash_promotion_limit is not null");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitEqualTo(Integer value) {
addCriterion("flash_promotion_limit =", value, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitNotEqualTo(Integer value) {
addCriterion("flash_promotion_limit <>", value, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitGreaterThan(Integer value) {
addCriterion("flash_promotion_limit >", value, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitGreaterThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_limit >=", value, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitLessThan(Integer value) {
addCriterion("flash_promotion_limit <", value, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitLessThanOrEqualTo(Integer value) {
addCriterion("flash_promotion_limit <=", value, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitIn(List<Integer> values) {
addCriterion("flash_promotion_limit in", values, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitNotIn(List<Integer> values) {
addCriterion("flash_promotion_limit not in", values, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_limit between", value1, value2, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andFlashPromotionLimitNotBetween(Integer value1, Integer value2) {
addCriterion("flash_promotion_limit not between", value1, value2, "flashPromotionLimit");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,115 @@
package com.macro.mall.model;
import java.io.Serializable;
import java.util.Date;
public class SmsFlashPromotionSession implements Serializable {
/**
* 编号
*
* @mbggenerated
*/
private Long id;
/**
* 场次名称
*
* @mbggenerated
*/
private String name;
/**
* 每日开始时间
*
* @mbggenerated
*/
private Date startTime;
/**
* 每日结束时间
*
* @mbggenerated
*/
private Date endTime;
/**
* 启用状态0->不启用1->启用
*
* @mbggenerated
*/
private Integer status;
/**
* 创建时间
*
* @mbggenerated
*/
private Date createTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", startTime=").append(startTime);
sb.append(", endTime=").append(endTime);
sb.append(", status=").append(status);
sb.append(", createTime=").append(createTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@@ -0,0 +1,598 @@
package com.macro.mall.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class SmsFlashPromotionSessionExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmsFlashPromotionSessionExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
protected void addCriterionForJDBCTime(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Time(value.getTime()), property);
}
protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
}
List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
Iterator<Date> iter = values.iterator();
while (iter.hasNext()) {
timeList.add(new java.sql.Time(iter.next().getTime()));
}
addCriterion(condition, timeList, property);
}
protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(Date value) {
addCriterionForJDBCTime("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(Date value) {
addCriterionForJDBCTime("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(Date value) {
addCriterionForJDBCTime("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCTime("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(Date value) {
addCriterionForJDBCTime("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(Date value) {
addCriterionForJDBCTime("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<Date> values) {
addCriterionForJDBCTime("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<Date> values) {
addCriterionForJDBCTime("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(Date value1, Date value2) {
addCriterionForJDBCTime("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(Date value1, Date value2) {
addCriterionForJDBCTime("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(Date value) {
addCriterionForJDBCTime("end_time =", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(Date value) {
addCriterionForJDBCTime("end_time <>", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(Date value) {
addCriterionForJDBCTime("end_time >", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCTime("end_time >=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(Date value) {
addCriterionForJDBCTime("end_time <", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(Date value) {
addCriterionForJDBCTime("end_time <=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<Date> values) {
addCriterionForJDBCTime("end_time in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<Date> values) {
addCriterionForJDBCTime("end_time not in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeBetween(Date value1, Date value2) {
addCriterionForJDBCTime("end_time between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotBetween(Date value1, Date value2) {
addCriterionForJDBCTime("end_time not between", value1, value2, "endTime");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}