From c5f9919685dee24467a96ee9d679c9526014a0c4 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Thu, 17 Oct 2024 16:22:55 +0800 Subject: [PATCH] 1 --- .../hfkj/dao/BsPartnerPoolRecordMapper.java | 8 ++++---- .../dao/BsPartnerPoolRecordSqlProvider.java | 8 ++++---- .../com/hfkj/entity/BsPartnerPoolRecord.java | 6 +++--- .../entity/BsPartnerPoolRecordExample.java | 20 +++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java index 72f4832..55506f1 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java @@ -43,7 +43,7 @@ public interface BsPartnerPoolRecordMapper extends BsPartnerPoolRecordMapperExt "gold_coin, create_time, ", "update_time, `status`, ", "ext_1, ext_2, ext_3)", - "values (#{lotteryNo,jdbcType=VARCHAR}, #{lotteryTime,jdbcType=INTEGER}, ", + "values (#{lotteryNo,jdbcType=VARCHAR}, #{lotteryTime,jdbcType=TIMESTAMP}, ", "#{goldCoin,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" @@ -59,7 +59,7 @@ public interface BsPartnerPoolRecordMapper extends BsPartnerPoolRecordMapperExt @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @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="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @@ -80,7 +80,7 @@ public interface BsPartnerPoolRecordMapper extends BsPartnerPoolRecordMapperExt @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @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="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @@ -103,7 +103,7 @@ public interface BsPartnerPoolRecordMapper extends BsPartnerPoolRecordMapperExt @Update({ "update bs_partner_pool_record", "set lottery_no = #{lotteryNo,jdbcType=VARCHAR},", - "lottery_time = #{lotteryTime,jdbcType=INTEGER},", + "lottery_time = #{lotteryTime,jdbcType=TIMESTAMP},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java index 65ba725..f7992fb 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java @@ -33,7 +33,7 @@ public class BsPartnerPoolRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=INTEGER}"); + sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getGoldCoin() != null) { @@ -109,7 +109,7 @@ public class BsPartnerPoolRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}"); + sql.SET("lottery_time = #{record.lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getGoldCoin() != null) { @@ -150,7 +150,7 @@ public class BsPartnerPoolRecordSqlProvider { sql.SET("id = #{record.id,jdbcType=BIGINT}"); 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("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); @@ -173,7 +173,7 @@ public class BsPartnerPoolRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.SET("lottery_time = #{lotteryTime,jdbcType=INTEGER}"); + sql.SET("lottery_time = #{lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getGoldCoin() != null) { diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java index 9841df8..dee3535 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java @@ -27,7 +27,7 @@ public class BsPartnerPoolRecord implements Serializable { /** * 开奖时间 */ - private Integer lotteryTime; + private Date lotteryTime; /** * 竞选元宝总数 @@ -82,11 +82,11 @@ public class BsPartnerPoolRecord 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/BsPartnerPoolRecordExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.java index 0d12c6b..0c27b0f 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.java @@ -266,52 +266,52 @@ public class BsPartnerPoolRecordExample { 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; }