袁野 1 month ago
parent 29a635d5a0
commit ad77585368
  1. 13
      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. 60
      service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java

@ -40,12 +40,14 @@ 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, ",
"num, gold_coin, user_id, ", "num, campaign_no, ",
"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}, ",
"#{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}, ", "#{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})"
@ -63,6 +65,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@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="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="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),
@ -76,8 +79,8 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@Select({ @Select({
"select", "select",
"id, `level`, lottery_no, num, gold_coin, user_id, create_time, update_time, ", "id, `level`, lottery_no, num, campaign_no, gold_coin, user_id, create_time, ",
"`status`, ext_1, ext_2, ext_3", "update_time, `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}"
}) })
@ -86,6 +89,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@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="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="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),
@ -111,6 +115,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
"set `level` = #{level,jdbcType=INTEGER},", "set `level` = #{level,jdbcType=INTEGER},",
"lottery_no = #{lotteryNo,jdbcType=VARCHAR},", "lottery_no = #{lotteryNo,jdbcType=VARCHAR},",
"num = #{num,jdbcType=VARCHAR},", "num = #{num,jdbcType=VARCHAR},",
"campaign_no = #{campaignNo,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},",

@ -40,6 +40,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.VALUES("num", "#{num,jdbcType=VARCHAR}"); sql.VALUES("num", "#{num,jdbcType=VARCHAR}");
} }
if (record.getCampaignNo() != null) {
sql.VALUES("campaign_no", "#{campaignNo,jdbcType=INTEGER}");
}
if (record.getGoldCoin() != null) { if (record.getGoldCoin() != null) {
sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}"); sql.VALUES("gold_coin", "#{goldCoin,jdbcType=DECIMAL}");
} }
@ -85,6 +89,7 @@ public class BsPartnerPoolPreSqlProvider {
sql.SELECT("`level`"); sql.SELECT("`level`");
sql.SELECT("lottery_no"); sql.SELECT("lottery_no");
sql.SELECT("num"); sql.SELECT("num");
sql.SELECT("campaign_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");
@ -126,6 +131,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("num = #{record.num,jdbcType=VARCHAR}"); sql.SET("num = #{record.num,jdbcType=VARCHAR}");
} }
if (record.getCampaignNo() != null) {
sql.SET("campaign_no = #{record.campaignNo,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}");
} }
@ -170,6 +179,7 @@ public class BsPartnerPoolPreSqlProvider {
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("num = #{record.num,jdbcType=VARCHAR}");
sql.SET("campaign_no = #{record.campaignNo,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}");
@ -200,6 +210,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("num = #{num,jdbcType=VARCHAR}"); sql.SET("num = #{num,jdbcType=VARCHAR}");
} }
if (record.getCampaignNo() != null) {
sql.SET("campaign_no = #{campaignNo,jdbcType=INTEGER}");
}
if (record.getGoldCoin() != null) { if (record.getGoldCoin() != null) {
sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}"); sql.SET("gold_coin = #{goldCoin,jdbcType=DECIMAL}");
} }

@ -34,6 +34,11 @@ public class BsPartnerPoolPre implements Serializable {
*/ */
private String num; private String num;
/**
* 编号
*/
private Integer campaignNo;
/** /**
* 竞选元宝 * 竞选元宝
*/ */
@ -108,6 +113,14 @@ public class BsPartnerPoolPre implements Serializable {
this.num = num; this.num = num;
} }
public Integer getCampaignNo() {
return campaignNo;
}
public void setCampaignNo(Integer campaignNo) {
this.campaignNo = campaignNo;
}
public BigDecimal getGoldCoin() { public BigDecimal getGoldCoin() {
return goldCoin; return goldCoin;
} }
@ -188,6 +201,7 @@ public class BsPartnerPoolPre implements Serializable {
&& (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.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.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()))
@ -206,6 +220,7 @@ public class BsPartnerPoolPre implements Serializable {
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 + ((getNum() == null) ? 0 : getNum().hashCode());
result = prime * result + ((getCampaignNo() == null) ? 0 : getCampaignNo().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());
@ -227,6 +242,7 @@ public class BsPartnerPoolPre implements Serializable {
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(", num=").append(num);
sb.append(", campaignNo=").append(campaignNo);
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);

@ -386,6 +386,66 @@ public class BsPartnerPoolPreExample {
return (Criteria) this; 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<Integer> values) {
addCriterion("campaign_no in", values, "campaignNo");
return (Criteria) this;
}
public Criteria andCampaignNoNotIn(List<Integer> 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() { public Criteria andGoldCoinIsNull() {
addCriterion("gold_coin is null"); addCriterion("gold_coin is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save