袁野 3 weeks ago
parent 880c6c1f4d
commit 29a635d5a0
  1. 11
      service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java
  2. 14
      service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java
  3. 16
      service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java
  4. 70
      service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java

@ -40,12 +40,12 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@Insert({ @Insert({
"insert into bs_partner_pool_pre (`level`, lottery_no, ", "insert into bs_partner_pool_pre (`level`, lottery_no, ",
"gold_coin, user_id, ", "num, gold_coin, user_id, ",
"create_time, update_time, ", "create_time, update_time, ",
"`status`, ext_1, ext_2, ", "`status`, ext_1, ext_2, ",
"ext_3)", "ext_3)",
"values (#{level,jdbcType=INTEGER}, #{lotteryNo,jdbcType=VARCHAR}, ", "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}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,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="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
@Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), @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="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@ -75,8 +76,8 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@Select({ @Select({
"select", "select",
"id, `level`, lottery_no, gold_coin, user_id, create_time, update_time, `status`, ", "id, `level`, lottery_no, num, gold_coin, user_id, create_time, update_time, ",
"ext_1, ext_2, ext_3", "`status`, ext_1, ext_2, ext_3",
"from bs_partner_pool_pre", "from bs_partner_pool_pre",
"where id = #{id,jdbcType=BIGINT}" "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="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), @Result(column="level", property="level", jdbcType=JdbcType.INTEGER),
@Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), @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="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL),
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@ -108,6 +110,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
"update bs_partner_pool_pre", "update bs_partner_pool_pre",
"set `level` = #{level,jdbcType=INTEGER},", "set `level` = #{level,jdbcType=INTEGER},",
"lottery_no = #{lotteryNo,jdbcType=VARCHAR},", "lottery_no = #{lotteryNo,jdbcType=VARCHAR},",
"num = #{num,jdbcType=VARCHAR},",
"gold_coin = #{goldCoin,jdbcType=DECIMAL},", "gold_coin = #{goldCoin,jdbcType=DECIMAL},",
"user_id = #{userId,jdbcType=BIGINT},", "user_id = #{userId,jdbcType=BIGINT},",
"create_time = #{createTime,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},",

@ -36,6 +36,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.VALUES("lottery_no", "#{lotteryNo,jdbcType=VARCHAR}"); sql.VALUES("lottery_no", "#{lotteryNo,jdbcType=VARCHAR}");
} }
if (record.getNum() != null) {
sql.VALUES("num", "#{num,jdbcType=VARCHAR}");
}
if (record.getGoldCoin() != null) { if (record.getGoldCoin() != null) {
sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}"); sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}");
} }
@ -80,6 +84,7 @@ public class BsPartnerPoolPreSqlProvider {
} }
sql.SELECT("`level`"); sql.SELECT("`level`");
sql.SELECT("lottery_no"); sql.SELECT("lottery_no");
sql.SELECT("num");
sql.SELECT("gold_coin"); sql.SELECT("gold_coin");
sql.SELECT("user_id"); sql.SELECT("user_id");
sql.SELECT("create_time"); sql.SELECT("create_time");
@ -117,6 +122,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}");
} }
if (record.getNum() != null) {
sql.SET("num = #{record.num,jdbcType=VARCHAR}");
}
if (record.getGoldCoin() != null) { if (record.getGoldCoin() != null) {
sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}"); sql.SET("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
} }
@ -160,6 +169,7 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("`level` = #{record.level,jdbcType=INTEGER}"); sql.SET("`level` = #{record.level,jdbcType=INTEGER}");
sql.SET("lottery_no = #{record.lotteryNo,jdbcType=VARCHAR}"); 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("gold_coin = #{record.goldCoin,jdbcType=DECIMAL}");
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
@ -186,6 +196,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("lottery_no = #{lotteryNo,jdbcType=VARCHAR}"); sql.SET("lottery_no = #{lotteryNo,jdbcType=VARCHAR}");
} }
if (record.getNum() != null) {
sql.SET("num = #{num,jdbcType=VARCHAR}");
}
if (record.getGoldCoin() != null) { if (record.getGoldCoin() != null) {
sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}"); sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}");
} }

@ -29,6 +29,11 @@ public class BsPartnerPoolPre implements Serializable {
*/ */
private String lotteryNo; private String lotteryNo;
/**
* 编号
*/
private String num;
/** /**
* 竞选元宝 * 竞选元宝
*/ */
@ -95,6 +100,14 @@ public class BsPartnerPoolPre implements Serializable {
this.lotteryNo = lotteryNo; this.lotteryNo = lotteryNo;
} }
public String getNum() {
return num;
}
public void setNum(String num) {
this.num = num;
}
public BigDecimal getGoldCoin() { public BigDecimal getGoldCoin() {
return goldCoin; return goldCoin;
} }
@ -174,6 +187,7 @@ public class BsPartnerPoolPre implements Serializable {
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel())) && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
&& (this.getLotteryNo() == null ? other.getLotteryNo() == null : this.getLotteryNo().equals(other.getLotteryNo())) && (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.getGoldCoin() == null ? other.getGoldCoin() == null : this.getGoldCoin().equals(other.getGoldCoin()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (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 + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode()); result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
result = prime * result + ((getLotteryNo() == null) ? 0 : getLotteryNo().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 + ((getGoldCoin() == null) ? 0 : getGoldCoin().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().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(", id=").append(id);
sb.append(", level=").append(level); sb.append(", level=").append(level);
sb.append(", lotteryNo=").append(lotteryNo); sb.append(", lotteryNo=").append(lotteryNo);
sb.append(", num=").append(num);
sb.append(", goldCoin=").append(goldCoin); sb.append(", goldCoin=").append(goldCoin);
sb.append(", userId=").append(userId); sb.append(", userId=").append(userId);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);

@ -316,6 +316,76 @@ public class BsPartnerPoolPreExample {
return (Criteria) this; 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<String> values) {
addCriterion("num in", values, "num");
return (Criteria) this;
}
public Criteria andNumNotIn(List<String> 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() { public Criteria andGoldCoinIsNull() {
addCriterion("gold_coin is null"); addCriterion("gold_coin is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save