From 0e8513c1bb25d8221e70b01c080efb98079cc83c Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Wed, 16 Oct 2024 14:22:50 +0800 Subject: [PATCH 1/6] 1 --- .../com/hfkj/dao/BsPartnerPoolPreMapper.java | 14 ++--- .../hfkj/dao/BsPartnerPoolPreSqlProvider.java | 16 +++--- .../com/hfkj/entity/BsPartnerPoolPre.java | 20 +++---- .../hfkj/entity/BsPartnerPoolPreExample.java | 56 +++++++++---------- 4 files changed, 53 insertions(+), 53 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java index eee24f6..37fcd4b 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java @@ -39,12 +39,12 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { int deleteByPrimaryKey(Long id); @Insert({ - "insert into bs_partner_pool_pre (`level`, num, ", + "insert into bs_partner_pool_pre (`level`, lottery_no, ", "gold_coin, user_id, ", "create_time, update_time, ", "`status`, ext_1, ext_2, ", "ext_3)", - "values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ", + "values (#{level,jdbcType=INTEGER}, #{lotteryNo,jdbcType=VARCHAR}, ", "#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", @@ -61,7 +61,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), - @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), + @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -75,15 +75,15 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Select({ "select", - "id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ", - "ext_2, ext_3", + "id, `level`, lottery_no, gold_coin, user_id, create_time, update_time, `status`, ", + "ext_1, ext_2, ext_3", "from bs_partner_pool_pre", "where id = #{id,jdbcType=BIGINT}" }) @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), - @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), + @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -107,7 +107,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Update({ "update bs_partner_pool_pre", "set `level` = #{level,jdbcType=INTEGER},", - "num = #{num,jdbcType=VARCHAR},", + "lottery_no = #{lotteryNo,jdbcType=VARCHAR},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},", "user_id = #{userId,jdbcType=BIGINT},", "create_time = #{createTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java index 01e56d1..7b23af5 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java @@ -32,8 +32,8 @@ public class BsPartnerPoolPreSqlProvider { sql.VALUES("`level`", "#{level,jdbcType=INTEGER}"); } - if (record.getNum() != null) { - sql.VALUES("num", "#{num,jdbcType=VARCHAR}"); + if (record.getLotteryNo() != null) { + sql.VALUES("lottery_no", "#{lotteryNo,jdbcType=VARCHAR}"); } if (record.getGoldCoin() != null) { @@ -79,7 +79,7 @@ public class BsPartnerPoolPreSqlProvider { sql.SELECT("id"); } sql.SELECT("`level`"); - sql.SELECT("num"); + sql.SELECT("lottery_no"); sql.SELECT("gold_coin"); sql.SELECT("user_id"); sql.SELECT("create_time"); @@ -113,8 +113,8 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("`level` = #{record.level,jdbcType=INTEGER}"); } - if (record.getNum() != null) { - sql.SET("num = #{record.num,jdbcType=VARCHAR}"); + if (record.getLotteryNo() != null) { + sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); } if (record.getGoldCoin() != null) { @@ -159,7 +159,7 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("`level` = #{record.level,jdbcType=INTEGER}"); - sql.SET("num = #{record.num,jdbcType=VARCHAR}"); + sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); @@ -182,8 +182,8 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("`level` = #{level,jdbcType=INTEGER}"); } - if (record.getNum() != null) { - sql.SET("num = #{num,jdbcType=VARCHAR}"); + if (record.getLotteryNo() != null) { + sql.SET("lottery_no = #{lotteryNo,jdbcType=VARCHAR}"); } if (record.getGoldCoin() != null) { diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java index 593a650..689713b 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java @@ -25,9 +25,9 @@ public class BsPartnerPoolPre implements Serializable { private Integer level; /** - * 编号 + * 期号 */ - private String num; + private String lotteryNo; /** * 竞选元宝 @@ -50,7 +50,7 @@ public class BsPartnerPoolPre implements Serializable { private Date updateTime; /** - * 状态 1:等待竞选 2:竞选结束 已回退元宝 3: 竞选结束 元宝退回失败 + * 状态 1:等待竞选 2:竞选成功 3: 竞选失败 */ private Integer status; @@ -87,12 +87,12 @@ public class BsPartnerPoolPre implements Serializable { this.level = level; } - public String getNum() { - return num; + public String getLotteryNo() { + return lotteryNo; } - public void setNum(String num) { - this.num = num; + public void setLotteryNo(String lotteryNo) { + this.lotteryNo = lotteryNo; } public BigDecimal getGoldCoin() { @@ -173,7 +173,7 @@ public class BsPartnerPoolPre implements Serializable { BsPartnerPoolPre other = (BsPartnerPoolPre) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel())) - && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) + && (this.getLotteryNo() == null ? other.getLotteryNo() == null : this.getLotteryNo().equals(other.getLotteryNo())) && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) @@ -190,7 +190,7 @@ public class BsPartnerPoolPre implements Serializable { int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode()); - result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); + result = prime * result + ((getLotteryNo() == null) ? 0 : getLotteryNo().hashCode()); result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); @@ -210,7 +210,7 @@ public class BsPartnerPoolPre implements Serializable { sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", level=").append(level); - sb.append(", num=").append(num); + sb.append(", lotteryNo=").append(lotteryNo); sb.append(", goldCoin=").append(goldCoin); sb.append(", userId=").append(userId); sb.append(", createTime=").append(createTime); diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java index 71281ba..ddacfda 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java @@ -246,73 +246,73 @@ public class BsPartnerPoolPreExample { return (Criteria) this; } - public Criteria andNumIsNull() { - addCriterion("num is null"); + public Criteria andLotteryNoIsNull() { + addCriterion("lottery_no is null"); return (Criteria) this; } - public Criteria andNumIsNotNull() { - addCriterion("num is not null"); + public Criteria andLotteryNoIsNotNull() { + addCriterion("lottery_no is not null"); return (Criteria) this; } - public Criteria andNumEqualTo(String value) { - addCriterion("num =", value, "num"); + public Criteria andLotteryNoEqualTo(String value) { + addCriterion("lottery_no =", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumNotEqualTo(String value) { - addCriterion("num <>", value, "num"); + public Criteria andLotteryNoNotEqualTo(String value) { + addCriterion("lottery_no <>", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumGreaterThan(String value) { - addCriterion("num >", value, "num"); + public Criteria andLotteryNoGreaterThan(String value) { + addCriterion("lottery_no >", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumGreaterThanOrEqualTo(String value) { - addCriterion("num >=", value, "num"); + public Criteria andLotteryNoGreaterThanOrEqualTo(String value) { + addCriterion("lottery_no >=", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumLessThan(String value) { - addCriterion("num <", value, "num"); + public Criteria andLotteryNoLessThan(String value) { + addCriterion("lottery_no <", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumLessThanOrEqualTo(String value) { - addCriterion("num <=", value, "num"); + public Criteria andLotteryNoLessThanOrEqualTo(String value) { + addCriterion("lottery_no <=", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumLike(String value) { - addCriterion("num like", value, "num"); + public Criteria andLotteryNoLike(String value) { + addCriterion("lottery_no like", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumNotLike(String value) { - addCriterion("num not like", value, "num"); + public Criteria andLotteryNoNotLike(String value) { + addCriterion("lottery_no not like", value, "lotteryNo"); return (Criteria) this; } - public Criteria andNumIn(List values) { - addCriterion("num in", values, "num"); + public Criteria andLotteryNoIn(List values) { + addCriterion("lottery_no in", values, "lotteryNo"); return (Criteria) this; } - public Criteria andNumNotIn(List values) { - addCriterion("num not in", values, "num"); + public Criteria andLotteryNoNotIn(List values) { + addCriterion("lottery_no not in", values, "lotteryNo"); return (Criteria) this; } - public Criteria andNumBetween(String value1, String value2) { - addCriterion("num between", value1, value2, "num"); + public Criteria andLotteryNoBetween(String value1, String value2) { + addCriterion("lottery_no between", value1, value2, "lotteryNo"); return (Criteria) this; } - public Criteria andNumNotBetween(String value1, String value2) { - addCriterion("num not between", value1, value2, "num"); + public Criteria andLotteryNoNotBetween(String value1, String value2) { + addCriterion("lottery_no not between", value1, value2, "lotteryNo"); return (Criteria) this; } From 29a635d5a0a70340bbd9d4c4e3f2af11b89b49cb Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Wed, 16 Oct 2024 14:47:25 +0800 Subject: [PATCH 2/6] 1 --- .../com/hfkj/dao/BsPartnerPoolPreMapper.java | 11 +-- .../hfkj/dao/BsPartnerPoolPreSqlProvider.java | 14 ++++ .../com/hfkj/entity/BsPartnerPoolPre.java | 16 +++++ .../hfkj/entity/BsPartnerPoolPreExample.java | 70 +++++++++++++++++++ 4 files changed, 107 insertions(+), 4 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java index 37fcd4b..7d0dcf3 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java @@ -40,12 +40,12 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Insert({ "insert into bs_partner_pool_pre (`level`, lottery_no, ", - "gold_coin, user_id, ", + "num, gold_coin, user_id, ", "create_time, update_time, ", "`status`, ext_1, ext_2, ", "ext_3)", "values (#{level,jdbcType=INTEGER}, #{lotteryNo,jdbcType=VARCHAR}, ", - "#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", + "#{num,jdbcType=VARCHAR}, #{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{ext3,jdbcType=VARCHAR})" @@ -62,6 +62,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), + @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -75,8 +76,8 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Select({ "select", - "id, `level`, lottery_no, gold_coin, user_id, create_time, update_time, `status`, ", - "ext_1, ext_2, ext_3", + "id, `level`, lottery_no, num, gold_coin, user_id, create_time, update_time, ", + "`status`, ext_1, ext_2, ext_3", "from bs_partner_pool_pre", "where id = #{id,jdbcType=BIGINT}" }) @@ -84,6 +85,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), + @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -108,6 +110,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { "update bs_partner_pool_pre", "set `level` = #{level,jdbcType=INTEGER},", "lottery_no = #{lotteryNo,jdbcType=VARCHAR},", + "num = #{num,jdbcType=VARCHAR},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},", "user_id = #{userId,jdbcType=BIGINT},", "create_time = #{createTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java index 7b23af5..2471243 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java @@ -36,6 +36,10 @@ public class BsPartnerPoolPreSqlProvider { sql.VALUES("lottery_no", "#{lotteryNo,jdbcType=VARCHAR}"); } + if (record.getNum() != null) { + sql.VALUES("num", "#{num,jdbcType=VARCHAR}"); + } + if (record.getGoldCoin() != null) { sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}"); } @@ -80,6 +84,7 @@ public class BsPartnerPoolPreSqlProvider { } sql.SELECT("`level`"); sql.SELECT("lottery_no"); + sql.SELECT("num"); sql.SELECT("gold_coin"); sql.SELECT("user_id"); sql.SELECT("create_time"); @@ -117,6 +122,10 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); } + if (record.getNum() != null) { + sql.SET("num = #{record.num,jdbcType=VARCHAR}"); + } + if (record.getGoldCoin() != null) { sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); } @@ -160,6 +169,7 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("`level` = #{record.level,jdbcType=INTEGER}"); sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); + sql.SET("num = #{record.num,jdbcType=VARCHAR}"); sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); @@ -186,6 +196,10 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("lottery_no = #{lotteryNo,jdbcType=VARCHAR}"); } + if (record.getNum() != null) { + sql.SET("num = #{num,jdbcType=VARCHAR}"); + } + if (record.getGoldCoin() != null) { sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}"); } diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java index 689713b..a7f9021 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java @@ -29,6 +29,11 @@ public class BsPartnerPoolPre implements Serializable { */ private String lotteryNo; + /** + * 编号 + */ + private String num; + /** * 竞选元宝 */ @@ -95,6 +100,14 @@ public class BsPartnerPoolPre implements Serializable { this.lotteryNo = lotteryNo; } + public String getNum() { + return num; + } + + public void setNum(String num) { + this.num = num; + } + public BigDecimal getGoldCoin() { return goldCoin; } @@ -174,6 +187,7 @@ public class BsPartnerPoolPre implements Serializable { return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel())) && (this.getLotteryNo() == null ? other.getLotteryNo() == null : this.getLotteryNo().equals(other.getLotteryNo())) + && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) @@ -191,6 +205,7 @@ public class BsPartnerPoolPre implements Serializable { result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode()); result = prime * result + ((getLotteryNo() == null) ? 0 : getLotteryNo().hashCode()); + result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); @@ -211,6 +226,7 @@ public class BsPartnerPoolPre implements Serializable { sb.append(", id=").append(id); sb.append(", level=").append(level); sb.append(", lotteryNo=").append(lotteryNo); + sb.append(", num=").append(num); sb.append(", goldCoin=").append(goldCoin); sb.append(", userId=").append(userId); sb.append(", createTime=").append(createTime); diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java index ddacfda..69afb90 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java @@ -316,6 +316,76 @@ public class BsPartnerPoolPreExample { return (Criteria) this; } + public Criteria andNumIsNull() { + addCriterion("num is null"); + return (Criteria) this; + } + + public Criteria andNumIsNotNull() { + addCriterion("num is not null"); + return (Criteria) this; + } + + public Criteria andNumEqualTo(String value) { + addCriterion("num =", value, "num"); + return (Criteria) this; + } + + public Criteria andNumNotEqualTo(String value) { + addCriterion("num <>", value, "num"); + return (Criteria) this; + } + + public Criteria andNumGreaterThan(String value) { + addCriterion("num >", value, "num"); + return (Criteria) this; + } + + public Criteria andNumGreaterThanOrEqualTo(String value) { + addCriterion("num >=", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLessThan(String value) { + addCriterion("num <", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLessThanOrEqualTo(String value) { + addCriterion("num <=", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLike(String value) { + addCriterion("num like", value, "num"); + return (Criteria) this; + } + + public Criteria andNumNotLike(String value) { + addCriterion("num not like", value, "num"); + return (Criteria) this; + } + + public Criteria andNumIn(List values) { + addCriterion("num in", values, "num"); + return (Criteria) this; + } + + public Criteria andNumNotIn(List values) { + addCriterion("num not in", values, "num"); + return (Criteria) this; + } + + public Criteria andNumBetween(String value1, String value2) { + addCriterion("num between", value1, value2, "num"); + return (Criteria) this; + } + + public Criteria andNumNotBetween(String value1, String value2) { + addCriterion("num not between", value1, value2, "num"); + return (Criteria) this; + } + public Criteria andGoldCoinIsNull() { addCriterion("gold_coin is null"); return (Criteria) this; From ad77585368b8a70b737afb7b1dccd98b37f30ee9 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Wed, 16 Oct 2024 14:50:27 +0800 Subject: [PATCH 3/6] 1 --- .../com/hfkj/dao/BsPartnerPoolPreMapper.java | 13 ++-- .../hfkj/dao/BsPartnerPoolPreSqlProvider.java | 14 +++++ .../com/hfkj/entity/BsPartnerPoolPre.java | 16 +++++ .../hfkj/entity/BsPartnerPoolPreExample.java | 60 +++++++++++++++++++ 4 files changed, 99 insertions(+), 4 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java index 7d0dcf3..ea0ab43 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java @@ -40,12 +40,14 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Insert({ "insert into bs_partner_pool_pre (`level`, lottery_no, ", - "num, gold_coin, user_id, ", + "num, campaign_no, ", + "gold_coin, user_id, ", "create_time, update_time, ", "`status`, ext_1, ext_2, ", "ext_3)", "values (#{level,jdbcType=INTEGER}, #{lotteryNo,jdbcType=VARCHAR}, ", - "#{num,jdbcType=VARCHAR}, #{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", + "#{num,jdbcType=VARCHAR}, #{campaignNo,jdbcType=INTEGER}, ", + "#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{ext3,jdbcType=VARCHAR})" @@ -63,6 +65,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), + @Result(column="campaign_no", property="campaignNo", jdbcType=JdbcType.INTEGER), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -76,8 +79,8 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Select({ "select", - "id, `level`, lottery_no, num, gold_coin, user_id, create_time, update_time, ", - "`status`, ext_1, ext_2, ext_3", + "id, `level`, lottery_no, num, campaign_no, gold_coin, user_id, create_time, ", + "update_time, `status`, ext_1, ext_2, ext_3", "from bs_partner_pool_pre", "where id = #{id,jdbcType=BIGINT}" }) @@ -86,6 +89,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), + @Result(column="campaign_no", property="campaignNo", jdbcType=JdbcType.INTEGER), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -111,6 +115,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { "set `level` = #{level,jdbcType=INTEGER},", "lottery_no = #{lotteryNo,jdbcType=VARCHAR},", "num = #{num,jdbcType=VARCHAR},", + "campaign_no = #{campaignNo,jdbcType=INTEGER},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},", "user_id = #{userId,jdbcType=BIGINT},", "create_time = #{createTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java index 2471243..fcd01f4 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java @@ -40,6 +40,10 @@ public class BsPartnerPoolPreSqlProvider { sql.VALUES("num", "#{num,jdbcType=VARCHAR}"); } + if (record.getCampaignNo() != null) { + sql.VALUES("campaign_no", "#{campaignNo,jdbcType=INTEGER}"); + } + if (record.getGoldCoin() != null) { sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}"); } @@ -85,6 +89,7 @@ public class BsPartnerPoolPreSqlProvider { sql.SELECT("`level`"); sql.SELECT("lottery_no"); sql.SELECT("num"); + sql.SELECT("campaign_no"); sql.SELECT("gold_coin"); sql.SELECT("user_id"); sql.SELECT("create_time"); @@ -126,6 +131,10 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("num = #{record.num,jdbcType=VARCHAR}"); } + if (record.getCampaignNo() != null) { + sql.SET("campaign_no = #{record.campaignNo,jdbcType=INTEGER}"); + } + if (record.getGoldCoin() != null) { sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); } @@ -170,6 +179,7 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("`level` = #{record.level,jdbcType=INTEGER}"); sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); sql.SET("num = #{record.num,jdbcType=VARCHAR}"); + sql.SET("campaign_no = #{record.campaignNo,jdbcType=INTEGER}"); sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); @@ -200,6 +210,10 @@ public class BsPartnerPoolPreSqlProvider { sql.SET("num = #{num,jdbcType=VARCHAR}"); } + if (record.getCampaignNo() != null) { + sql.SET("campaign_no = #{campaignNo,jdbcType=INTEGER}"); + } + if (record.getGoldCoin() != null) { sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}"); } diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java index a7f9021..58149f6 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java @@ -34,6 +34,11 @@ public class BsPartnerPoolPre implements Serializable { */ private String num; + /** + * 编号 + */ + private Integer campaignNo; + /** * 竞选元宝 */ @@ -108,6 +113,14 @@ public class BsPartnerPoolPre implements Serializable { this.num = num; } + public Integer getCampaignNo() { + return campaignNo; + } + + public void setCampaignNo(Integer campaignNo) { + this.campaignNo = campaignNo; + } + public BigDecimal getGoldCoin() { return goldCoin; } @@ -188,6 +201,7 @@ public class BsPartnerPoolPre implements Serializable { && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel())) && (this.getLotteryNo() == null ? other.getLotteryNo() == null : this.getLotteryNo().equals(other.getLotteryNo())) && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) + && (this.getCampaignNo() == null ? other.getCampaignNo() == null : this.getCampaignNo().equals(other.getCampaignNo())) && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) @@ -206,6 +220,7 @@ public class BsPartnerPoolPre implements Serializable { result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode()); result = prime * result + ((getLotteryNo() == null) ? 0 : getLotteryNo().hashCode()); result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); + result = prime * result + ((getCampaignNo() == null) ? 0 : getCampaignNo().hashCode()); result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); @@ -227,6 +242,7 @@ public class BsPartnerPoolPre implements Serializable { sb.append(", level=").append(level); sb.append(", lotteryNo=").append(lotteryNo); sb.append(", num=").append(num); + sb.append(", campaignNo=").append(campaignNo); sb.append(", goldCoin=").append(goldCoin); sb.append(", userId=").append(userId); sb.append(", createTime=").append(createTime); diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java index 69afb90..f8e9dae 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java @@ -386,6 +386,66 @@ public class BsPartnerPoolPreExample { return (Criteria) this; } + public Criteria andCampaignNoIsNull() { + addCriterion("campaign_no is null"); + return (Criteria) this; + } + + public Criteria andCampaignNoIsNotNull() { + addCriterion("campaign_no is not null"); + return (Criteria) this; + } + + public Criteria andCampaignNoEqualTo(Integer value) { + addCriterion("campaign_no =", value, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoNotEqualTo(Integer value) { + addCriterion("campaign_no <>", value, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoGreaterThan(Integer value) { + addCriterion("campaign_no >", value, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoGreaterThanOrEqualTo(Integer value) { + addCriterion("campaign_no >=", value, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoLessThan(Integer value) { + addCriterion("campaign_no <", value, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoLessThanOrEqualTo(Integer value) { + addCriterion("campaign_no <=", value, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoIn(List values) { + addCriterion("campaign_no in", values, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoNotIn(List values) { + addCriterion("campaign_no not in", values, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoBetween(Integer value1, Integer value2) { + addCriterion("campaign_no between", value1, value2, "campaignNo"); + return (Criteria) this; + } + + public Criteria andCampaignNoNotBetween(Integer value1, Integer value2) { + addCriterion("campaign_no not between", value1, value2, "campaignNo"); + return (Criteria) this; + } + public Criteria andGoldCoinIsNull() { addCriterion("gold_coin is null"); return (Criteria) this; From 160587c329f5ba603775036825bf952d64e59605 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Wed, 16 Oct 2024 15:24:16 +0800 Subject: [PATCH 4/6] 1 --- .../com/hfkj/dao/BsPartnerPoolMapper.java | 23 +++---- .../hfkj/dao/BsPartnerPoolSqlProvider.java | 14 +++++ .../java/com/hfkj/entity/BsPartnerPool.java | 16 +++++ .../com/hfkj/entity/BsPartnerPoolExample.java | 60 +++++++++++++++++++ 4 files changed, 103 insertions(+), 10 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java index 94debc4..eb528ca 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java @@ -40,15 +40,15 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { @Insert({ "insert into bs_partner_pool (`level`, num, ", - "gold_coin, user_id, ", - "create_time, update_time, ", - "`status`, ext_1, ext_2, ", - "ext_3)", + "num_no, gold_coin, ", + "user_id, create_time, ", + "update_time, `status`, ", + "ext_1, ext_2, ext_3)", "values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ", - "#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", - "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", - "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", - "#{ext3,jdbcType=VARCHAR})" + "#{numNo,jdbcType=INTEGER}, #{goldCoin,jdbcType=DECIMAL}, ", + "#{userId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", + "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) @Options(useGeneratedKeys=true,keyProperty="id") int insert(BsPartnerPool record); @@ -62,6 +62,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), + @Result(column="num_no", property="numNo", jdbcType=JdbcType.INTEGER), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -75,8 +76,8 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { @Select({ "select", - "id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ", - "ext_2, ext_3", + "id, `level`, num, num_no, gold_coin, user_id, create_time, update_time, `status`, ", + "ext_1, ext_2, ext_3", "from bs_partner_pool", "where id = #{id,jdbcType=BIGINT}" }) @@ -84,6 +85,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), + @Result(column="num_no", property="numNo", jdbcType=JdbcType.INTEGER), @Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -108,6 +110,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { "update bs_partner_pool", "set `level` = #{level,jdbcType=INTEGER},", "num = #{num,jdbcType=VARCHAR},", + "num_no = #{numNo,jdbcType=INTEGER},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},", "user_id = #{userId,jdbcType=BIGINT},", "create_time = #{createTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java index 47fe030..f10f446 100644 --- a/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java @@ -36,6 +36,10 @@ public class BsPartnerPoolSqlProvider { sql.VALUES("num", "#{num,jdbcType=VARCHAR}"); } + if (record.getNumNo() != null) { + sql.VALUES("num_no", "#{numNo,jdbcType=INTEGER}"); + } + if (record.getGoldCoin() != null) { sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}"); } @@ -80,6 +84,7 @@ public class BsPartnerPoolSqlProvider { } sql.SELECT("`level`"); sql.SELECT("num"); + sql.SELECT("num_no"); sql.SELECT("gold_coin"); sql.SELECT("user_id"); sql.SELECT("create_time"); @@ -117,6 +122,10 @@ public class BsPartnerPoolSqlProvider { sql.SET("num = #{record.num,jdbcType=VARCHAR}"); } + if (record.getNumNo() != null) { + sql.SET("num_no = #{record.numNo,jdbcType=INTEGER}"); + } + if (record.getGoldCoin() != null) { sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); } @@ -160,6 +169,7 @@ public class BsPartnerPoolSqlProvider { sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("`level` = #{record.level,jdbcType=INTEGER}"); sql.SET("num = #{record.num,jdbcType=VARCHAR}"); + sql.SET("num_no = #{record.numNo,jdbcType=INTEGER}"); sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); @@ -186,6 +196,10 @@ public class BsPartnerPoolSqlProvider { sql.SET("num = #{num,jdbcType=VARCHAR}"); } + if (record.getNumNo() != null) { + sql.SET("num_no = #{numNo,jdbcType=INTEGER}"); + } + if (record.getGoldCoin() != null) { sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}"); } diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPool.java b/service/src/main/java/com/hfkj/entity/BsPartnerPool.java index 690d211..e843fa9 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPool.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPool.java @@ -29,6 +29,11 @@ public class BsPartnerPool implements Serializable { */ private String num; + /** + * 编号 + */ + private Integer numNo; + /** * 竞选元宝 */ @@ -95,6 +100,14 @@ public class BsPartnerPool implements Serializable { this.num = num; } + public Integer getNumNo() { + return numNo; + } + + public void setNumNo(Integer numNo) { + this.numNo = numNo; + } + public BigDecimal getGoldCoin() { return goldCoin; } @@ -174,6 +187,7 @@ public class BsPartnerPool implements Serializable { return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel())) && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) + && (this.getNumNo() == null ? other.getNumNo() == null : this.getNumNo().equals(other.getNumNo())) && (this.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) @@ -191,6 +205,7 @@ public class BsPartnerPool implements Serializable { result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode()); result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); + result = prime * result + ((getNumNo() == null) ? 0 : getNumNo().hashCode()); result = prime * result + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); @@ -211,6 +226,7 @@ public class BsPartnerPool implements Serializable { sb.append(", id=").append(id); sb.append(", level=").append(level); sb.append(", num=").append(num); + sb.append(", numNo=").append(numNo); sb.append(", goldCoin=").append(goldCoin); sb.append(", userId=").append(userId); sb.append(", createTime=").append(createTime); diff --git a/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java b/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java index c9ebb73..fa22e1f 100644 --- a/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java +++ b/service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java @@ -316,6 +316,66 @@ public class BsPartnerPoolExample { return (Criteria) this; } + public Criteria andNumNoIsNull() { + addCriterion("num_no is null"); + return (Criteria) this; + } + + public Criteria andNumNoIsNotNull() { + addCriterion("num_no is not null"); + return (Criteria) this; + } + + public Criteria andNumNoEqualTo(Integer value) { + addCriterion("num_no =", value, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoNotEqualTo(Integer value) { + addCriterion("num_no <>", value, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoGreaterThan(Integer value) { + addCriterion("num_no >", value, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoGreaterThanOrEqualTo(Integer value) { + addCriterion("num_no >=", value, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoLessThan(Integer value) { + addCriterion("num_no <", value, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoLessThanOrEqualTo(Integer value) { + addCriterion("num_no <=", value, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoIn(List values) { + addCriterion("num_no in", values, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoNotIn(List values) { + addCriterion("num_no not in", values, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoBetween(Integer value1, Integer value2) { + addCriterion("num_no between", value1, value2, "numNo"); + return (Criteria) this; + } + + public Criteria andNumNoNotBetween(Integer value1, Integer value2) { + addCriterion("num_no not between", value1, value2, "numNo"); + return (Criteria) this; + } + public Criteria andGoldCoinIsNull() { addCriterion("gold_coin is null"); return (Criteria) this; 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 5/6] 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; } 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 6/6] 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; }