From d68f7b5d686f13aeb527f92dfc42f35e4ac7fd28 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Thu, 17 Oct 2024 17:03:59 +0800 Subject: [PATCH] 1 --- .../hfkj/dao/BsPartnerUserRecordMapper.java | 8 ++++---- .../dao/BsPartnerUserRecordSqlProvider.java | 8 ++++---- .../com/hfkj/entity/BsPartnerUserRecord.java | 6 +++--- .../entity/BsPartnerUserRecordExample.java | 20 +++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java index 5cde532..a8903f2 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordMapper.java @@ -46,7 +46,7 @@ public interface BsPartnerUserRecordMapper extends BsPartnerUserRecordMapperExt "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}, #{level,jdbcType=INTEGER}, #{proportion,jdbcType=DECIMAL}, ", "#{goldCoin,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", @@ -65,7 +65,7 @@ public interface BsPartnerUserRecordMapper extends BsPartnerUserRecordMapperExt @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="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="proportion", property="proportion", jdbcType=JdbcType.DECIMAL), @@ -91,7 +91,7 @@ public interface BsPartnerUserRecordMapper extends BsPartnerUserRecordMapperExt @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="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="proportion", property="proportion", jdbcType=JdbcType.DECIMAL), @@ -119,7 +119,7 @@ public interface BsPartnerUserRecordMapper extends BsPartnerUserRecordMapperExt "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},", "`level` = #{level,jdbcType=INTEGER},", "proportion = #{proportion,jdbcType=DECIMAL},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java index a452115..3fb12ce 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerUserRecordSqlProvider.java @@ -41,7 +41,7 @@ public class BsPartnerUserRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=INTEGER}"); + sql.VALUES("lottery_time", "#{lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getType() != null) { @@ -142,7 +142,7 @@ public class BsPartnerUserRecordSqlProvider { } if (record.getLotteryTime() != null) { - sql.SET("lottery_time = #{record.lotteryTime,jdbcType=INTEGER}"); + sql.SET("lottery_time = #{record.lotteryTime,jdbcType=TIMESTAMP}"); } if (record.getType() != null) { @@ -197,7 +197,7 @@ public class BsPartnerUserRecordSqlProvider { 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("`level` = #{record.level,jdbcType=INTEGER}"); sql.SET("proportion = #{record.proportion,jdbcType=DECIMAL}"); @@ -231,7 +231,7 @@ public class BsPartnerUserRecordSqlProvider { } 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/BsPartnerUserRecord.java b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecord.java index f03b7c1..4fc5ae4 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerUserRecord.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecord.java @@ -37,7 +37,7 @@ public class BsPartnerUserRecord implements Serializable { /** * 开奖时间 */ - private Integer lotteryTime; + private Date lotteryTime; /** * 分红类型:1。0点合伙人 等级分红 2:奖励原合伙人 @@ -123,11 +123,11 @@ public class BsPartnerUserRecord 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/BsPartnerUserRecordExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecordExample.java index a4b89c2..7e71a1a 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerUserRecordExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerUserRecordExample.java @@ -396,52 +396,52 @@ public class BsPartnerUserRecordExample { 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; }