diff --git a/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordMapper.java b/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordMapper.java index b673ff8..3481c61 100644 --- a/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordMapper.java @@ -46,7 +46,7 @@ public interface BsCornucopiaUserRecordMapper extends BsCornucopiaUserRecordMapp "update_time, `status`, ", "ext_1, ext_2, ext_3)", "values (#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", - "#{lotteryNo,jdbcType=VARCHAR}, #{lotteryTime,jdbcType=INTEGER}, ", + "#{lotteryNo,jdbcType=VARCHAR}, #{lotteryTime,jdbcType=TIMESTAMP}, ", "#{type,jdbcType=INTEGER}, #{proportion,jdbcType=DECIMAL}, ", "#{goldCoin,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", @@ -65,7 +65,7 @@ public interface BsCornucopiaUserRecordMapper extends BsCornucopiaUserRecordMapp @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), - @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.INTEGER), + @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="proportion", property="proportion", jdbcType=JdbcType.DECIMAL), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @@ -90,7 +90,7 @@ public interface BsCornucopiaUserRecordMapper extends BsCornucopiaUserRecordMapp @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), - @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.INTEGER), + @Result(column="lottery_time", property="lotteryTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="proportion", property="proportion", jdbcType=JdbcType.DECIMAL), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @@ -117,7 +117,7 @@ public interface BsCornucopiaUserRecordMapper extends BsCornucopiaUserRecordMapp "set user_id = #{userId,jdbcType=BIGINT},", "user_name = #{userName,jdbcType=VARCHAR},", "lottery_no = #{lotteryNo,jdbcType=VARCHAR},", - "lottery_time = #{lotteryTime,jdbcType=INTEGER},", + "lottery_time = #{lotteryTime,jdbcType=TIMESTAMP},", "`type` = #{type,jdbcType=INTEGER},", "proportion = #{proportion,jdbcType=DECIMAL},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},", diff --git a/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordSqlProvider.java index aa0b87d..51fe055 100644 --- a/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsCornucopiaUserRecordSqlProvider.java @@ -41,7 +41,7 @@ public class BsCornucopiaUserRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=INTEGER}"); + sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getType() != null) { @@ -137,7 +137,7 @@ public class BsCornucopiaUserRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}"); + sql.SET("lottery_time = #{record.lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getType() != null) { @@ -188,7 +188,7 @@ public class BsCornucopiaUserRecordSqlProvider { sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); - sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}"); + sql.SET("lottery_time = #{record.lotteryTime,jdbcType=TIMESTAMP}"); sql.SET("`type` = #{record.type,jdbcType=INTEGER}"); sql.SET("proportion = #{record.proportion,jdbcType=DECIMAL}"); sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); @@ -221,7 +221,7 @@ public class BsCornucopiaUserRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.SET("lottery_time = #{lotteryTime,jdbcType=INTEGER}"); + sql.SET("lottery_time = #{lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getType() != null) { diff --git a/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecord.java b/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecord.java index 97129aa..37093e0 100644 --- a/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecord.java +++ b/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecord.java @@ -37,7 +37,7 @@ public class BsCornucopiaUserRecord implements Serializable { /** * 开奖时间 */ - private Integer lotteryTime; + private Date lotteryTime; /** * 类型:1:金聚宝盆 2:玉聚宝盆 @@ -118,11 +118,11 @@ public class BsCornucopiaUserRecord implements Serializable { this.lotteryNo = lotteryNo; } - public Integer getLotteryTime() { + public Date getLotteryTime() { return lotteryTime; } - public void setLotteryTime(Integer lotteryTime) { + public void setLotteryTime(Date lotteryTime) { this.lotteryTime = lotteryTime; } diff --git a/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecordExample.java b/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecordExample.java index 4c5a11d..f014d49 100644 --- a/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecordExample.java +++ b/service/src/main/java/com/hfkj/entity/BsCornucopiaUserRecordExample.java @@ -396,52 +396,52 @@ public class BsCornucopiaUserRecordExample { return (Criteria) this; } - public Criteria andLotteryTimeEqualTo(Integer value) { + public Criteria andLotteryTimeEqualTo(Date value) { addCriterion("lottery_time =", value, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeNotEqualTo(Integer value) { + public Criteria andLotteryTimeNotEqualTo(Date value) { addCriterion("lottery_time <>", value, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeGreaterThan(Integer value) { + public Criteria andLotteryTimeGreaterThan(Date value) { addCriterion("lottery_time >", value, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeGreaterThanOrEqualTo(Integer value) { + public Criteria andLotteryTimeGreaterThanOrEqualTo(Date value) { addCriterion("lottery_time >=", value, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeLessThan(Integer value) { + public Criteria andLotteryTimeLessThan(Date value) { addCriterion("lottery_time <", value, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeLessThanOrEqualTo(Integer value) { + public Criteria andLotteryTimeLessThanOrEqualTo(Date value) { addCriterion("lottery_time <=", value, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeIn(List values) { + public Criteria andLotteryTimeIn(List values) { addCriterion("lottery_time in", values, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeNotIn(List values) { + public Criteria andLotteryTimeNotIn(List values) { addCriterion("lottery_time not in", values, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeBetween(Integer value1, Integer value2) { + public Criteria andLotteryTimeBetween(Date value1, Date value2) { addCriterion("lottery_time between", value1, value2, "lotteryTime"); return (Criteria) this; } - public Criteria andLotteryTimeNotBetween(Integer value1, Integer value2) { + public Criteria andLotteryTimeNotBetween(Date value1, Date value2) { addCriterion("lottery_time not between", value1, value2, "lotteryTime"); return (Criteria) this; }