袁野 2 months ago
parent ad77585368
commit 160587c329
  1. 23
      service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java
  2. 14
      service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java
  3. 16
      service/src/main/java/com/hfkj/entity/BsPartnerPool.java
  4. 60
      service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java

@ -40,15 +40,15 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
@Insert({ @Insert({
"insert into bs_partner_pool (`level`, num, ", "insert into bs_partner_pool (`level`, num, ",
"gold_coin, user_id, ", "num_no, gold_coin, ",
"create_time, update_time, ", "user_id, create_time, ",
"`status`, ext_1, ext_2, ", "update_time, `status`, ",
"ext_3)", "ext_1, ext_2, ext_3)",
"values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ", "values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ",
"#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", "#{numNo,jdbcType=INTEGER}, #{goldCoin,jdbcType=DECIMAL}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{userId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
"#{ext3,jdbcType=VARCHAR})" "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(BsPartnerPool record); 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="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="num", property="num", jdbcType=JdbcType.VARCHAR), @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="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 BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
@Select({ @Select({
"select", "select",
"id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ", "id, `level`, num, num_no, gold_coin, user_id, create_time, update_time, `status`, ",
"ext_2, ext_3", "ext_1, ext_2, ext_3",
"from bs_partner_pool", "from bs_partner_pool",
"where id = #{id,jdbcType=BIGINT}" "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="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="num", property="num", jdbcType=JdbcType.VARCHAR), @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="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 BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
"update bs_partner_pool", "update bs_partner_pool",
"set `level` = #{level,jdbcType=INTEGER},", "set `level` = #{level,jdbcType=INTEGER},",
"num = #{num,jdbcType=VARCHAR},", "num = #{num,jdbcType=VARCHAR},",
"num_no = #{numNo,jdbcType=INTEGER},",
"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 BsPartnerPoolSqlProvider {
sql.VALUES("num", "#{num,jdbcType=VARCHAR}"); sql.VALUES("num", "#{num,jdbcType=VARCHAR}");
} }
if (record.getNumNo() != null) {
sql.VALUES("num_no", "#{numNo,jdbcType=INTEGER}");
}
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 BsPartnerPoolSqlProvider {
} }
sql.SELECT("`level`"); sql.SELECT("`level`");
sql.SELECT("num"); sql.SELECT("num");
sql.SELECT("num_no");
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 BsPartnerPoolSqlProvider {
sql.SET("num = #{record.num,jdbcType=VARCHAR}"); sql.SET("num = #{record.num,jdbcType=VARCHAR}");
} }
if (record.getNumNo() != null) {
sql.SET("num_no = #{record.numNo,jdbcType=INTEGER}");
}
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 BsPartnerPoolSqlProvider {
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("num = #{record.num,jdbcType=VARCHAR}"); 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("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 BsPartnerPoolSqlProvider {
sql.SET("num = #{num,jdbcType=VARCHAR}"); sql.SET("num = #{num,jdbcType=VARCHAR}");
} }
if (record.getNumNo() != null) {
sql.SET("num_no = #{numNo,jdbcType=INTEGER}");
}
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 BsPartnerPool implements Serializable {
*/ */
private String num; private String num;
/**
* 编号
*/
private Integer numNo;
/** /**
* 竞选元宝 * 竞选元宝
*/ */
@ -95,6 +100,14 @@ public class BsPartnerPool implements Serializable {
this.num = num; this.num = num;
} }
public Integer getNumNo() {
return numNo;
}
public void setNumNo(Integer numNo) {
this.numNo = numNo;
}
public BigDecimal getGoldCoin() { public BigDecimal getGoldCoin() {
return goldCoin; return goldCoin;
} }
@ -174,6 +187,7 @@ public class BsPartnerPool 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.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) && (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.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 BsPartnerPool 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 + ((getNum() == null) ? 0 : getNum().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 + ((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 BsPartnerPool implements Serializable {
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", level=").append(level); sb.append(", level=").append(level);
sb.append(", num=").append(num); sb.append(", num=").append(num);
sb.append(", numNo=").append(numNo);
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,66 @@ public class BsPartnerPoolExample {
return (Criteria) this; 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<Integer> values) {
addCriterion("num_no in", values, "numNo");
return (Criteria) this;
}
public Criteria andNumNoNotIn(List<Integer> 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() { public Criteria andGoldCoinIsNull() {
addCriterion("gold_coin is null"); addCriterion("gold_coin is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save