胡锐 1 year ago
parent 124f0945c9
commit e6f1881ebd
  1. 8
      hai-service/src/main/java/com/hai/dao/ApiBlxCouponMapper.java
  2. 8
      hai-service/src/main/java/com/hai/dao/ApiBlxCouponSqlProvider.java
  3. 6
      hai-service/src/main/java/com/hai/entity/ApiBlxCoupon.java
  4. 20
      hai-service/src/main/java/com/hai/entity/ApiBlxCouponExample.java

@ -51,7 +51,7 @@ public interface ApiBlxCouponMapper extends ApiBlxCouponMapperExt {
"#{receiveType,jdbcType=INTEGER}, #{useStartTime,jdbcType=TIMESTAMP}, ", "#{receiveType,jdbcType=INTEGER}, #{useStartTime,jdbcType=TIMESTAMP}, ",
"#{useEndTime,jdbcType=TIMESTAMP}, #{denomination,jdbcType=INTEGER}, ", "#{useEndTime,jdbcType=TIMESTAMP}, #{denomination,jdbcType=INTEGER}, ",
"#{minPrice,jdbcType=INTEGER}, #{receiveLimit,jdbcType=INTEGER}, ", "#{minPrice,jdbcType=INTEGER}, #{receiveLimit,jdbcType=INTEGER}, ",
"#{receiveDays,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", "#{receiveDays,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{updateTime,jdbcType=TIMESTAMP}, #{couponStatus,jdbcType=INTEGER}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{couponStatus,jdbcType=INTEGER}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ", "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ",
"#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})" "#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
@ -74,7 +74,7 @@ public interface ApiBlxCouponMapper extends ApiBlxCouponMapperExt {
@Result(column="denomination", property="denomination", jdbcType=JdbcType.INTEGER), @Result(column="denomination", property="denomination", jdbcType=JdbcType.INTEGER),
@Result(column="min_price", property="minPrice", jdbcType=JdbcType.INTEGER), @Result(column="min_price", property="minPrice", jdbcType=JdbcType.INTEGER),
@Result(column="receive_limit", property="receiveLimit", jdbcType=JdbcType.INTEGER), @Result(column="receive_limit", property="receiveLimit", jdbcType=JdbcType.INTEGER),
@Result(column="receive_days", property="receiveDays", jdbcType=JdbcType.TIMESTAMP), @Result(column="receive_days", property="receiveDays", jdbcType=JdbcType.INTEGER),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="coupon_status", property="couponStatus", jdbcType=JdbcType.INTEGER), @Result(column="coupon_status", property="couponStatus", jdbcType=JdbcType.INTEGER),
@ -105,7 +105,7 @@ public interface ApiBlxCouponMapper extends ApiBlxCouponMapperExt {
@Result(column="denomination", property="denomination", jdbcType=JdbcType.INTEGER), @Result(column="denomination", property="denomination", jdbcType=JdbcType.INTEGER),
@Result(column="min_price", property="minPrice", jdbcType=JdbcType.INTEGER), @Result(column="min_price", property="minPrice", jdbcType=JdbcType.INTEGER),
@Result(column="receive_limit", property="receiveLimit", jdbcType=JdbcType.INTEGER), @Result(column="receive_limit", property="receiveLimit", jdbcType=JdbcType.INTEGER),
@Result(column="receive_days", property="receiveDays", jdbcType=JdbcType.TIMESTAMP), @Result(column="receive_days", property="receiveDays", jdbcType=JdbcType.INTEGER),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="coupon_status", property="couponStatus", jdbcType=JdbcType.INTEGER), @Result(column="coupon_status", property="couponStatus", jdbcType=JdbcType.INTEGER),
@ -137,7 +137,7 @@ public interface ApiBlxCouponMapper extends ApiBlxCouponMapperExt {
"denomination = #{denomination,jdbcType=INTEGER},", "denomination = #{denomination,jdbcType=INTEGER},",
"min_price = #{minPrice,jdbcType=INTEGER},", "min_price = #{minPrice,jdbcType=INTEGER},",
"receive_limit = #{receiveLimit,jdbcType=INTEGER},", "receive_limit = #{receiveLimit,jdbcType=INTEGER},",
"receive_days = #{receiveDays,jdbcType=TIMESTAMP},", "receive_days = #{receiveDays,jdbcType=INTEGER},",
"create_time = #{createTime,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},",
"coupon_status = #{couponStatus,jdbcType=INTEGER},", "coupon_status = #{couponStatus,jdbcType=INTEGER},",

@ -61,7 +61,7 @@ public class ApiBlxCouponSqlProvider {
} }
if (record.getReceiveDays() != null) { if (record.getReceiveDays() != null) {
sql.VALUES("receive_days", "#{receiveDays,jdbcType=TIMESTAMP}"); sql.VALUES("receive_days", "#{receiveDays,jdbcType=INTEGER}");
} }
if (record.getCreateTime() != null) { if (record.getCreateTime() != null) {
@ -182,7 +182,7 @@ public class ApiBlxCouponSqlProvider {
} }
if (record.getReceiveDays() != null) { if (record.getReceiveDays() != null) {
sql.SET("receive_days = #{record.receiveDays,jdbcType=TIMESTAMP}"); sql.SET("receive_days = #{record.receiveDays,jdbcType=INTEGER}");
} }
if (record.getCreateTime() != null) { if (record.getCreateTime() != null) {
@ -238,7 +238,7 @@ public class ApiBlxCouponSqlProvider {
sql.SET("denomination = #{record.denomination,jdbcType=INTEGER}"); sql.SET("denomination = #{record.denomination,jdbcType=INTEGER}");
sql.SET("min_price = #{record.minPrice,jdbcType=INTEGER}"); sql.SET("min_price = #{record.minPrice,jdbcType=INTEGER}");
sql.SET("receive_limit = #{record.receiveLimit,jdbcType=INTEGER}"); sql.SET("receive_limit = #{record.receiveLimit,jdbcType=INTEGER}");
sql.SET("receive_days = #{record.receiveDays,jdbcType=TIMESTAMP}"); sql.SET("receive_days = #{record.receiveDays,jdbcType=INTEGER}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
sql.SET("coupon_status = #{record.couponStatus,jdbcType=INTEGER}"); sql.SET("coupon_status = #{record.couponStatus,jdbcType=INTEGER}");
@ -291,7 +291,7 @@ public class ApiBlxCouponSqlProvider {
} }
if (record.getReceiveDays() != null) { if (record.getReceiveDays() != null) {
sql.SET("receive_days = #{receiveDays,jdbcType=TIMESTAMP}"); sql.SET("receive_days = #{receiveDays,jdbcType=INTEGER}");
} }
if (record.getCreateTime() != null) { if (record.getCreateTime() != null) {

@ -61,7 +61,7 @@ public class ApiBlxCoupon implements Serializable {
/** /**
* 领取有效天数 * 领取有效天数
*/ */
private Date receiveDays; private Integer receiveDays;
/** /**
* 创建时间 * 创建时间
@ -182,11 +182,11 @@ public class ApiBlxCoupon implements Serializable {
this.receiveLimit = receiveLimit; this.receiveLimit = receiveLimit;
} }
public Date getReceiveDays() { public Integer getReceiveDays() {
return receiveDays; return receiveDays;
} }
public void setReceiveDays(Date receiveDays) { public void setReceiveDays(Integer receiveDays) {
this.receiveDays = receiveDays; this.receiveDays = receiveDays;
} }

@ -695,52 +695,52 @@ public class ApiBlxCouponExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysEqualTo(Date value) { public Criteria andReceiveDaysEqualTo(Integer value) {
addCriterion("receive_days =", value, "receiveDays"); addCriterion("receive_days =", value, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysNotEqualTo(Date value) { public Criteria andReceiveDaysNotEqualTo(Integer value) {
addCriterion("receive_days <>", value, "receiveDays"); addCriterion("receive_days <>", value, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysGreaterThan(Date value) { public Criteria andReceiveDaysGreaterThan(Integer value) {
addCriterion("receive_days >", value, "receiveDays"); addCriterion("receive_days >", value, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysGreaterThanOrEqualTo(Date value) { public Criteria andReceiveDaysGreaterThanOrEqualTo(Integer value) {
addCriterion("receive_days >=", value, "receiveDays"); addCriterion("receive_days >=", value, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysLessThan(Date value) { public Criteria andReceiveDaysLessThan(Integer value) {
addCriterion("receive_days <", value, "receiveDays"); addCriterion("receive_days <", value, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysLessThanOrEqualTo(Date value) { public Criteria andReceiveDaysLessThanOrEqualTo(Integer value) {
addCriterion("receive_days <=", value, "receiveDays"); addCriterion("receive_days <=", value, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysIn(List<Date> values) { public Criteria andReceiveDaysIn(List<Integer> values) {
addCriterion("receive_days in", values, "receiveDays"); addCriterion("receive_days in", values, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysNotIn(List<Date> values) { public Criteria andReceiveDaysNotIn(List<Integer> values) {
addCriterion("receive_days not in", values, "receiveDays"); addCriterion("receive_days not in", values, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysBetween(Date value1, Date value2) { public Criteria andReceiveDaysBetween(Integer value1, Integer value2) {
addCriterion("receive_days between", value1, value2, "receiveDays"); addCriterion("receive_days between", value1, value2, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andReceiveDaysNotBetween(Date value1, Date value2) { public Criteria andReceiveDaysNotBetween(Integer value1, Integer value2) {
addCriterion("receive_days not between", value1, value2, "receiveDays"); addCriterion("receive_days not between", value1, value2, "receiveDays");
return (Criteria) this; return (Criteria) this;
} }

Loading…
Cancel
Save