袁野 1 month ago
parent 160587c329
commit c5f9919685
  1. 8
      service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordMapper.java
  2. 8
      service/src/main/java/com/hfkj/dao/BsPartnerPoolRecordSqlProvider.java
  3. 6
      service/src/main/java/com/hfkj/entity/BsPartnerPoolRecord.java
  4. 20
      service/src/main/java/com/hfkj/entity/BsPartnerPoolRecordExample.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},",

@ -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) {

@ -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;
}

@ -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<Integer> values) {
public Criteria andLotteryTimeIn(List<Date> values) {
addCriterion("lottery_time in", values, "lotteryTime");
return (Criteria) this;
}
public Criteria andLotteryTimeNotIn(List<Integer> values) {
public Criteria andLotteryTimeNotIn(List<Date> 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;
}

Loading…
Cancel
Save