袁野 1 month ago
parent e135508572
commit 7e757d6b18
  1. 21
      service/src/main/java/com/hfkj/dao/BsPartnerPoolMapper.java
  2. 17
      service/src/main/java/com/hfkj/dao/BsPartnerPoolPreMapper.java
  3. 14
      service/src/main/java/com/hfkj/dao/BsPartnerPoolPreSqlProvider.java
  4. 14
      service/src/main/java/com/hfkj/dao/BsPartnerPoolSqlProvider.java
  5. 16
      service/src/main/java/com/hfkj/entity/BsPartnerPool.java
  6. 70
      service/src/main/java/com/hfkj/entity/BsPartnerPoolExample.java
  7. 18
      service/src/main/java/com/hfkj/entity/BsPartnerPoolPre.java
  8. 70
      service/src/main/java/com/hfkj/entity/BsPartnerPoolPreExample.java

@ -41,14 +41,16 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
@Insert({
"insert into bs_partner_pool (`level`, num, ",
"num_no, gold_coin, ",
"user_id, create_time, ",
"update_time, `status`, ",
"ext_1, ext_2, ext_3)",
"user_id, user_name, ",
"create_time, update_time, ",
"`status`, ext_1, ext_2, ",
"ext_3)",
"values (#{level,jdbcType=INTEGER}, #{num,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})"
"#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ",
"#{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);
@ -65,6 +67,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
@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="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@ -76,8 +79,8 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
@Select({
"select",
"id, `level`, num, num_no, gold_coin, user_id, create_time, update_time, `status`, ",
"ext_1, ext_2, ext_3",
"id, `level`, num, num_no, gold_coin, user_id, user_name, create_time, update_time, ",
"`status`, ext_1, ext_2, ext_3",
"from bs_partner_pool",
"where id = #{id,jdbcType=BIGINT}"
})
@ -88,6 +91,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
@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="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@ -113,6 +117,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt {
"num_no = #{numNo,jdbcType=INTEGER},",
"gold_coin = #{goldCoin,jdbcType=DECIMAL},",
"user_id = #{userId,jdbcType=BIGINT},",
"user_name = #{userName,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},",
"`status` = #{status,jdbcType=INTEGER},",

@ -42,15 +42,15 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
"insert into bs_partner_pool_pre (`level`, lottery_no, ",
"num, campaign_no, ",
"gold_coin, user_id, ",
"create_time, update_time, ",
"`status`, ext_1, ext_2, ",
"ext_3)",
"user_name, create_time, ",
"update_time, `status`, ",
"ext_1, ext_2, ext_3)",
"values (#{level,jdbcType=INTEGER}, #{lotteryNo,jdbcType=VARCHAR}, ",
"#{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})"
"#{userName,jdbcType=VARCHAR}, #{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(BsPartnerPoolPre record);
@ -68,6 +68,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@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="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@ -79,7 +80,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@Select({
"select",
"id, `level`, lottery_no, num, campaign_no, gold_coin, user_id, create_time, ",
"id, `level`, lottery_no, num, campaign_no, gold_coin, user_id, user_name, create_time, ",
"update_time, `status`, ext_1, ext_2, ext_3",
"from bs_partner_pool_pre",
"where id = #{id,jdbcType=BIGINT}"
@ -92,6 +93,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
@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="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@ -118,6 +120,7 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt {
"campaign_no = #{campaignNo,jdbcType=INTEGER},",
"gold_coin = #{goldCoin,jdbcType=DECIMAL},",
"user_id = #{userId,jdbcType=BIGINT},",
"user_name = #{userName,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},",
"`status` = #{status,jdbcType=INTEGER},",

@ -52,6 +52,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
}
if (record.getUserName() != null) {
sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
}
@ -92,6 +96,7 @@ public class BsPartnerPoolPreSqlProvider {
sql.SELECT("campaign_no");
sql.SELECT("gold_coin");
sql.SELECT("user_id");
sql.SELECT("user_name");
sql.SELECT("create_time");
sql.SELECT("update_time");
sql.SELECT("`status`");
@ -143,6 +148,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
}
if (record.getUserName() != null) {
sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
}
@ -182,6 +191,7 @@ public class BsPartnerPoolPreSqlProvider {
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("user_name = #{record.userName,jdbcType=VARCHAR}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
@ -222,6 +232,10 @@ public class BsPartnerPoolPreSqlProvider {
sql.SET("user_id = #{userId,jdbcType=BIGINT}");
}
if (record.getUserName() != null) {
sql.SET("user_name = #{userName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
}

@ -48,6 +48,10 @@ public class BsPartnerPoolSqlProvider {
sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
}
if (record.getUserName() != null) {
sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
}
@ -87,6 +91,7 @@ public class BsPartnerPoolSqlProvider {
sql.SELECT("num_no");
sql.SELECT("gold_coin");
sql.SELECT("user_id");
sql.SELECT("user_name");
sql.SELECT("create_time");
sql.SELECT("update_time");
sql.SELECT("`status`");
@ -134,6 +139,10 @@ public class BsPartnerPoolSqlProvider {
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
}
if (record.getUserName() != null) {
sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
}
@ -172,6 +181,7 @@ public class BsPartnerPoolSqlProvider {
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("user_name = #{record.userName,jdbcType=VARCHAR}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
@ -208,6 +218,10 @@ public class BsPartnerPoolSqlProvider {
sql.SET("user_id = #{userId,jdbcType=BIGINT}");
}
if (record.getUserName() != null) {
sql.SET("user_name = #{userName,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
}

@ -44,6 +44,11 @@ public class BsPartnerPool implements Serializable {
*/
private Long userId;
/**
* 用户名称
*/
private String userName;
/**
* 创建时间
*/
@ -124,6 +129,14 @@ public class BsPartnerPool implements Serializable {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public Date getCreateTime() {
return createTime;
}
@ -190,6 +203,7 @@ public class BsPartnerPool implements Serializable {
&& (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.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
@ -208,6 +222,7 @@ public class BsPartnerPool implements Serializable {
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 + ((getUserName() == null) ? 0 : getUserName().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
@ -229,6 +244,7 @@ public class BsPartnerPool implements Serializable {
sb.append(", numNo=").append(numNo);
sb.append(", goldCoin=").append(goldCoin);
sb.append(", userId=").append(userId);
sb.append(", userName=").append(userName);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", status=").append(status);

@ -496,6 +496,76 @@ public class BsPartnerPoolExample {
return (Criteria) this;
}
public Criteria andUserNameIsNull() {
addCriterion("user_name is null");
return (Criteria) this;
}
public Criteria andUserNameIsNotNull() {
addCriterion("user_name is not null");
return (Criteria) this;
}
public Criteria andUserNameEqualTo(String value) {
addCriterion("user_name =", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotEqualTo(String value) {
addCriterion("user_name <>", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameGreaterThan(String value) {
addCriterion("user_name >", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameGreaterThanOrEqualTo(String value) {
addCriterion("user_name >=", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLessThan(String value) {
addCriterion("user_name <", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLessThanOrEqualTo(String value) {
addCriterion("user_name <=", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLike(String value) {
addCriterion("user_name like", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotLike(String value) {
addCriterion("user_name not like", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameIn(List<String> values) {
addCriterion("user_name in", values, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotIn(List<String> values) {
addCriterion("user_name not in", values, "userName");
return (Criteria) this;
}
public Criteria andUserNameBetween(String value1, String value2) {
addCriterion("user_name between", value1, value2, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotBetween(String value1, String value2) {
addCriterion("user_name not between", value1, value2, "userName");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;

@ -35,7 +35,7 @@ public class BsPartnerPoolPre implements Serializable {
private String num;
/**
* 编号
* 排名
*/
private Integer campaignNo;
@ -49,6 +49,11 @@ public class BsPartnerPoolPre implements Serializable {
*/
private Long userId;
/**
* 用户名称
*/
private String userName;
/**
* 创建时间
*/
@ -137,6 +142,14 @@ public class BsPartnerPoolPre implements Serializable {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public Date getCreateTime() {
return createTime;
}
@ -204,6 +217,7 @@ public class BsPartnerPoolPre implements Serializable {
&& (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.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
@ -223,6 +237,7 @@ public class BsPartnerPoolPre implements Serializable {
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 + ((getUserName() == null) ? 0 : getUserName().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
@ -245,6 +260,7 @@ public class BsPartnerPoolPre implements Serializable {
sb.append(", campaignNo=").append(campaignNo);
sb.append(", goldCoin=").append(goldCoin);
sb.append(", userId=").append(userId);
sb.append(", userName=").append(userName);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", status=").append(status);

@ -566,6 +566,76 @@ public class BsPartnerPoolPreExample {
return (Criteria) this;
}
public Criteria andUserNameIsNull() {
addCriterion("user_name is null");
return (Criteria) this;
}
public Criteria andUserNameIsNotNull() {
addCriterion("user_name is not null");
return (Criteria) this;
}
public Criteria andUserNameEqualTo(String value) {
addCriterion("user_name =", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotEqualTo(String value) {
addCriterion("user_name <>", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameGreaterThan(String value) {
addCriterion("user_name >", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameGreaterThanOrEqualTo(String value) {
addCriterion("user_name >=", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLessThan(String value) {
addCriterion("user_name <", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLessThanOrEqualTo(String value) {
addCriterion("user_name <=", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLike(String value) {
addCriterion("user_name like", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotLike(String value) {
addCriterion("user_name not like", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameIn(List<String> values) {
addCriterion("user_name in", values, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotIn(List<String> values) {
addCriterion("user_name not in", values, "userName");
return (Criteria) this;
}
public Criteria andUserNameBetween(String value1, String value2) {
addCriterion("user_name between", value1, value2, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotBetween(String value1, String value2) {
addCriterion("user_name not between", value1, value2, "userName");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;

Loading…
Cancel
Save