diff --git a/hai-service/src/main/java/com/hai/dao/ApiBlxCouponMapper.java b/hai-service/src/main/java/com/hai/dao/ApiBlxCouponMapper.java index 56b778b1..85440df0 100644 --- a/hai-service/src/main/java/com/hai/dao/ApiBlxCouponMapper.java +++ b/hai-service/src/main/java/com/hai/dao/ApiBlxCouponMapper.java @@ -51,7 +51,7 @@ public interface ApiBlxCouponMapper extends ApiBlxCouponMapperExt { "#{receiveType,jdbcType=INTEGER}, #{useStartTime,jdbcType=TIMESTAMP}, ", "#{useEndTime,jdbcType=TIMESTAMP}, #{denomination,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}, ", "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,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="min_price", property="minPrice", 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="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @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="min_price", property="minPrice", 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="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="coupon_status", property="couponStatus", jdbcType=JdbcType.INTEGER), @@ -137,7 +137,7 @@ public interface ApiBlxCouponMapper extends ApiBlxCouponMapperExt { "denomination = #{denomination,jdbcType=INTEGER},", "min_price = #{minPrice,jdbcType=INTEGER},", "receive_limit = #{receiveLimit,jdbcType=INTEGER},", - "receive_days = #{receiveDays,jdbcType=TIMESTAMP},", + "receive_days = #{receiveDays,jdbcType=INTEGER},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},", "coupon_status = #{couponStatus,jdbcType=INTEGER},", diff --git a/hai-service/src/main/java/com/hai/dao/ApiBlxCouponSqlProvider.java b/hai-service/src/main/java/com/hai/dao/ApiBlxCouponSqlProvider.java index 61fb230b..eeea9f22 100644 --- a/hai-service/src/main/java/com/hai/dao/ApiBlxCouponSqlProvider.java +++ b/hai-service/src/main/java/com/hai/dao/ApiBlxCouponSqlProvider.java @@ -61,7 +61,7 @@ public class ApiBlxCouponSqlProvider { } if (record.getReceiveDays() != null) { - sql.VALUES("receive_days", "#{receiveDays,jdbcType=TIMESTAMP}"); + sql.VALUES("receive_days", "#{receiveDays,jdbcType=INTEGER}"); } if (record.getCreateTime() != null) { @@ -182,7 +182,7 @@ public class ApiBlxCouponSqlProvider { } if (record.getReceiveDays() != null) { - sql.SET("receive_days = #{record.receiveDays,jdbcType=TIMESTAMP}"); + sql.SET("receive_days = #{record.receiveDays,jdbcType=INTEGER}"); } if (record.getCreateTime() != null) { @@ -238,7 +238,7 @@ public class ApiBlxCouponSqlProvider { sql.SET("denomination = #{record.denomination,jdbcType=INTEGER}"); sql.SET("min_price = #{record.minPrice,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("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); sql.SET("coupon_status = #{record.couponStatus,jdbcType=INTEGER}"); @@ -291,7 +291,7 @@ public class ApiBlxCouponSqlProvider { } if (record.getReceiveDays() != null) { - sql.SET("receive_days = #{receiveDays,jdbcType=TIMESTAMP}"); + sql.SET("receive_days = #{receiveDays,jdbcType=INTEGER}"); } if (record.getCreateTime() != null) { diff --git a/hai-service/src/main/java/com/hai/entity/ApiBlxCoupon.java b/hai-service/src/main/java/com/hai/entity/ApiBlxCoupon.java index df724247..657b3ad3 100644 --- a/hai-service/src/main/java/com/hai/entity/ApiBlxCoupon.java +++ b/hai-service/src/main/java/com/hai/entity/ApiBlxCoupon.java @@ -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; } - public Date getReceiveDays() { + public Integer getReceiveDays() { return receiveDays; } - public void setReceiveDays(Date receiveDays) { + public void setReceiveDays(Integer receiveDays) { this.receiveDays = receiveDays; } diff --git a/hai-service/src/main/java/com/hai/entity/ApiBlxCouponExample.java b/hai-service/src/main/java/com/hai/entity/ApiBlxCouponExample.java index dc3fb18b..d76bba02 100644 --- a/hai-service/src/main/java/com/hai/entity/ApiBlxCouponExample.java +++ b/hai-service/src/main/java/com/hai/entity/ApiBlxCouponExample.java @@ -695,52 +695,52 @@ public class ApiBlxCouponExample { return (Criteria) this; } - public Criteria andReceiveDaysEqualTo(Date value) { + public Criteria andReceiveDaysEqualTo(Integer value) { addCriterion("receive_days =", value, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysNotEqualTo(Date value) { + public Criteria andReceiveDaysNotEqualTo(Integer value) { addCriterion("receive_days <>", value, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysGreaterThan(Date value) { + public Criteria andReceiveDaysGreaterThan(Integer value) { addCriterion("receive_days >", value, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysGreaterThanOrEqualTo(Date value) { + public Criteria andReceiveDaysGreaterThanOrEqualTo(Integer value) { addCriterion("receive_days >=", value, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysLessThan(Date value) { + public Criteria andReceiveDaysLessThan(Integer value) { addCriterion("receive_days <", value, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysLessThanOrEqualTo(Date value) { + public Criteria andReceiveDaysLessThanOrEqualTo(Integer value) { addCriterion("receive_days <=", value, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysIn(List values) { + public Criteria andReceiveDaysIn(List values) { addCriterion("receive_days in", values, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysNotIn(List values) { + public Criteria andReceiveDaysNotIn(List values) { addCriterion("receive_days not in", values, "receiveDays"); return (Criteria) this; } - public Criteria andReceiveDaysBetween(Date value1, Date value2) { + public Criteria andReceiveDaysBetween(Integer value1, Integer value2) { addCriterion("receive_days between", value1, value2, "receiveDays"); 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"); return (Criteria) this; }