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] 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;