diff --git a/service/src/main/java/com/hfkj/dao/BsUserMapper.java b/service/src/main/java/com/hfkj/dao/BsUserMapper.java index 42dc362..3dd804f 100644 --- a/service/src/main/java/com/hfkj/dao/BsUserMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsUserMapper.java @@ -41,6 +41,8 @@ public interface BsUserMapper extends BsUserMapperExt { @Insert({ "insert into bs_user (head_img, `name`, ", "phone, grade, wechat_num, ", + "special_id, wechat_open_id, ", + "wechat_unionid, elm_pid, ", "invite_user_id, invite_time, ", "partner_level, partner_income_per, ", "`status`, create_time, ", @@ -48,6 +50,8 @@ public interface BsUserMapper extends BsUserMapperExt { "ext_2, ext_3)", "values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", "#{phone,jdbcType=VARCHAR}, #{grade,jdbcType=INTEGER}, #{wechatNum,jdbcType=VARCHAR}, ", + "#{specialId,jdbcType=VARCHAR}, #{wechatOpenId,jdbcType=VARCHAR}, ", + "#{wechatUnionid,jdbcType=VARCHAR}, #{elmPid,jdbcType=VARCHAR}, ", "#{inviteUserId,jdbcType=BIGINT}, #{inviteTime,jdbcType=TIMESTAMP}, ", "#{partnerLevel,jdbcType=INTEGER}, #{partnerIncomePer,jdbcType=DECIMAL}, ", "#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", @@ -69,6 +73,10 @@ public interface BsUserMapper extends BsUserMapperExt { @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), @Result(column="grade", property="grade", jdbcType=JdbcType.INTEGER), @Result(column="wechat_num", property="wechatNum", jdbcType=JdbcType.VARCHAR), + @Result(column="special_id", property="specialId", jdbcType=JdbcType.VARCHAR), + @Result(column="wechat_open_id", property="wechatOpenId", jdbcType=JdbcType.VARCHAR), + @Result(column="wechat_unionid", property="wechatUnionid", jdbcType=JdbcType.VARCHAR), + @Result(column="elm_pid", property="elmPid", jdbcType=JdbcType.VARCHAR), @Result(column="invite_user_id", property="inviteUserId", jdbcType=JdbcType.BIGINT), @Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), @@ -84,9 +92,9 @@ public interface BsUserMapper extends BsUserMapperExt { @Select({ "select", - "id, head_img, `name`, phone, grade, wechat_num, invite_user_id, invite_time, ", - "partner_level, partner_income_per, `status`, create_time, update_time, ext_1, ", - "ext_2, ext_3", + "id, head_img, `name`, phone, grade, wechat_num, special_id, wechat_open_id, ", + "wechat_unionid, elm_pid, invite_user_id, invite_time, partner_level, partner_income_per, ", + "`status`, create_time, update_time, ext_1, ext_2, ext_3", "from bs_user", "where id = #{id,jdbcType=BIGINT}" }) @@ -97,6 +105,10 @@ public interface BsUserMapper extends BsUserMapperExt { @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), @Result(column="grade", property="grade", jdbcType=JdbcType.INTEGER), @Result(column="wechat_num", property="wechatNum", jdbcType=JdbcType.VARCHAR), + @Result(column="special_id", property="specialId", jdbcType=JdbcType.VARCHAR), + @Result(column="wechat_open_id", property="wechatOpenId", jdbcType=JdbcType.VARCHAR), + @Result(column="wechat_unionid", property="wechatUnionid", jdbcType=JdbcType.VARCHAR), + @Result(column="elm_pid", property="elmPid", jdbcType=JdbcType.VARCHAR), @Result(column="invite_user_id", property="inviteUserId", jdbcType=JdbcType.BIGINT), @Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), @@ -126,6 +138,10 @@ public interface BsUserMapper extends BsUserMapperExt { "phone = #{phone,jdbcType=VARCHAR},", "grade = #{grade,jdbcType=INTEGER},", "wechat_num = #{wechatNum,jdbcType=VARCHAR},", + "special_id = #{specialId,jdbcType=VARCHAR},", + "wechat_open_id = #{wechatOpenId,jdbcType=VARCHAR},", + "wechat_unionid = #{wechatUnionid,jdbcType=VARCHAR},", + "elm_pid = #{elmPid,jdbcType=VARCHAR},", "invite_user_id = #{inviteUserId,jdbcType=BIGINT},", "invite_time = #{inviteTime,jdbcType=TIMESTAMP},", "partner_level = #{partnerLevel,jdbcType=INTEGER},", diff --git a/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java index 107aec7..5150a17 100644 --- a/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java @@ -48,6 +48,22 @@ public class BsUserSqlProvider { sql.VALUES("wechat_num", "#{wechatNum,jdbcType=VARCHAR}"); } + if (record.getSpecialId() != null) { + sql.VALUES("special_id", "#{specialId,jdbcType=VARCHAR}"); + } + + if (record.getWechatOpenId() != null) { + sql.VALUES("wechat_open_id", "#{wechatOpenId,jdbcType=VARCHAR}"); + } + + if (record.getWechatUnionid() != null) { + sql.VALUES("wechat_unionid", "#{wechatUnionid,jdbcType=VARCHAR}"); + } + + if (record.getElmPid() != null) { + sql.VALUES("elm_pid", "#{elmPid,jdbcType=VARCHAR}"); + } + if (record.getInviteUserId() != null) { sql.VALUES("invite_user_id", "#{inviteUserId,jdbcType=BIGINT}"); } @@ -103,6 +119,10 @@ public class BsUserSqlProvider { sql.SELECT("phone"); sql.SELECT("grade"); sql.SELECT("wechat_num"); + sql.SELECT("special_id"); + sql.SELECT("wechat_open_id"); + sql.SELECT("wechat_unionid"); + sql.SELECT("elm_pid"); sql.SELECT("invite_user_id"); sql.SELECT("invite_time"); sql.SELECT("partner_level"); @@ -154,6 +174,22 @@ public class BsUserSqlProvider { sql.SET("wechat_num = #{record.wechatNum,jdbcType=VARCHAR}"); } + if (record.getSpecialId() != null) { + sql.SET("special_id = #{record.specialId,jdbcType=VARCHAR}"); + } + + if (record.getWechatOpenId() != null) { + sql.SET("wechat_open_id = #{record.wechatOpenId,jdbcType=VARCHAR}"); + } + + if (record.getWechatUnionid() != null) { + sql.SET("wechat_unionid = #{record.wechatUnionid,jdbcType=VARCHAR}"); + } + + if (record.getElmPid() != null) { + sql.SET("elm_pid = #{record.elmPid,jdbcType=VARCHAR}"); + } + if (record.getInviteUserId() != null) { sql.SET("invite_user_id = #{record.inviteUserId,jdbcType=BIGINT}"); } @@ -208,6 +244,10 @@ public class BsUserSqlProvider { sql.SET("phone = #{record.phone,jdbcType=VARCHAR}"); sql.SET("grade = #{record.grade,jdbcType=INTEGER}"); sql.SET("wechat_num = #{record.wechatNum,jdbcType=VARCHAR}"); + sql.SET("special_id = #{record.specialId,jdbcType=VARCHAR}"); + sql.SET("wechat_open_id = #{record.wechatOpenId,jdbcType=VARCHAR}"); + sql.SET("wechat_unionid = #{record.wechatUnionid,jdbcType=VARCHAR}"); + sql.SET("elm_pid = #{record.elmPid,jdbcType=VARCHAR}"); sql.SET("invite_user_id = #{record.inviteUserId,jdbcType=BIGINT}"); sql.SET("invite_time = #{record.inviteTime,jdbcType=TIMESTAMP}"); sql.SET("partner_level = #{record.partnerLevel,jdbcType=INTEGER}"); @@ -248,6 +288,22 @@ public class BsUserSqlProvider { sql.SET("wechat_num = #{wechatNum,jdbcType=VARCHAR}"); } + if (record.getSpecialId() != null) { + sql.SET("special_id = #{specialId,jdbcType=VARCHAR}"); + } + + if (record.getWechatOpenId() != null) { + sql.SET("wechat_open_id = #{wechatOpenId,jdbcType=VARCHAR}"); + } + + if (record.getWechatUnionid() != null) { + sql.SET("wechat_unionid = #{wechatUnionid,jdbcType=VARCHAR}"); + } + + if (record.getElmPid() != null) { + sql.SET("elm_pid = #{elmPid,jdbcType=VARCHAR}"); + } + if (record.getInviteUserId() != null) { sql.SET("invite_user_id = #{inviteUserId,jdbcType=BIGINT}"); } diff --git a/service/src/main/java/com/hfkj/entity/BsUser.java b/service/src/main/java/com/hfkj/entity/BsUser.java index 7447507..fa63185 100644 --- a/service/src/main/java/com/hfkj/entity/BsUser.java +++ b/service/src/main/java/com/hfkj/entity/BsUser.java @@ -44,6 +44,26 @@ public class BsUser implements Serializable { */ private String wechatNum; + /** + * 淘宝会员独有 + */ + private String specialId; + + /** + * 微信openid + */ + private String wechatOpenId; + + /** + * 微信unionid + */ + private String wechatUnionid; + + /** + * 饿了么推广位编码 + */ + private String elmPid; + /** * 邀请人id */ @@ -135,6 +155,38 @@ public class BsUser implements Serializable { this.wechatNum = wechatNum; } + public String getSpecialId() { + return specialId; + } + + public void setSpecialId(String specialId) { + this.specialId = specialId; + } + + public String getWechatOpenId() { + return wechatOpenId; + } + + public void setWechatOpenId(String wechatOpenId) { + this.wechatOpenId = wechatOpenId; + } + + public String getWechatUnionid() { + return wechatUnionid; + } + + public void setWechatUnionid(String wechatUnionid) { + this.wechatUnionid = wechatUnionid; + } + + public String getElmPid() { + return elmPid; + } + + public void setElmPid(String elmPid) { + this.elmPid = elmPid; + } + public Long getInviteUserId() { return inviteUserId; } @@ -214,84 +266,4 @@ public class BsUser implements Serializable { public void setExt3(String ext3) { this.ext3 = ext3; } - - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - BsUser other = (BsUser) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getHeadImg() == null ? other.getHeadImg() == null : this.getHeadImg().equals(other.getHeadImg())) - && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) - && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) - && (this.getGrade() == null ? other.getGrade() == null : this.getGrade().equals(other.getGrade())) - && (this.getWechatNum() == null ? other.getWechatNum() == null : this.getWechatNum().equals(other.getWechatNum())) - && (this.getInviteUserId() == null ? other.getInviteUserId() == null : this.getInviteUserId().equals(other.getInviteUserId())) - && (this.getInviteTime() == null ? other.getInviteTime() == null : this.getInviteTime().equals(other.getInviteTime())) - && (this.getPartnerLevel() == null ? other.getPartnerLevel() == null : this.getPartnerLevel().equals(other.getPartnerLevel())) - && (this.getPartnerIncomePer() == null ? other.getPartnerIncomePer() == null : this.getPartnerIncomePer().equals(other.getPartnerIncomePer())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) - && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) - && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) - && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) - && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) - && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getHeadImg() == null) ? 0 : getHeadImg().hashCode()); - result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); - result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); - result = prime * result + ((getGrade() == null) ? 0 : getGrade().hashCode()); - result = prime * result + ((getWechatNum() == null) ? 0 : getWechatNum().hashCode()); - result = prime * result + ((getInviteUserId() == null) ? 0 : getInviteUserId().hashCode()); - result = prime * result + ((getInviteTime() == null) ? 0 : getInviteTime().hashCode()); - result = prime * result + ((getPartnerLevel() == null) ? 0 : getPartnerLevel().hashCode()); - result = prime * result + ((getPartnerIncomePer() == null) ? 0 : getPartnerIncomePer().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); - result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); - result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); - result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); - result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); - result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); - return result; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", headImg=").append(headImg); - sb.append(", name=").append(name); - sb.append(", phone=").append(phone); - sb.append(", grade=").append(grade); - sb.append(", wechatNum=").append(wechatNum); - sb.append(", inviteUserId=").append(inviteUserId); - sb.append(", inviteTime=").append(inviteTime); - sb.append(", partnerLevel=").append(partnerLevel); - sb.append(", partnerIncomePer=").append(partnerIncomePer); - sb.append(", status=").append(status); - sb.append(", createTime=").append(createTime); - sb.append(", updateTime=").append(updateTime); - sb.append(", ext1=").append(ext1); - sb.append(", ext2=").append(ext2); - sb.append(", ext3=").append(ext3); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } } \ No newline at end of file diff --git a/service/src/main/java/com/hfkj/entity/BsUserExample.java b/service/src/main/java/com/hfkj/entity/BsUserExample.java index f305789..0526f1c 100644 --- a/service/src/main/java/com/hfkj/entity/BsUserExample.java +++ b/service/src/main/java/com/hfkj/entity/BsUserExample.java @@ -526,6 +526,286 @@ public class BsUserExample { return (Criteria) this; } + public Criteria andSpecialIdIsNull() { + addCriterion("special_id is null"); + return (Criteria) this; + } + + public Criteria andSpecialIdIsNotNull() { + addCriterion("special_id is not null"); + return (Criteria) this; + } + + public Criteria andSpecialIdEqualTo(String value) { + addCriterion("special_id =", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdNotEqualTo(String value) { + addCriterion("special_id <>", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdGreaterThan(String value) { + addCriterion("special_id >", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdGreaterThanOrEqualTo(String value) { + addCriterion("special_id >=", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdLessThan(String value) { + addCriterion("special_id <", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdLessThanOrEqualTo(String value) { + addCriterion("special_id <=", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdLike(String value) { + addCriterion("special_id like", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdNotLike(String value) { + addCriterion("special_id not like", value, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdIn(List values) { + addCriterion("special_id in", values, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdNotIn(List values) { + addCriterion("special_id not in", values, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdBetween(String value1, String value2) { + addCriterion("special_id between", value1, value2, "specialId"); + return (Criteria) this; + } + + public Criteria andSpecialIdNotBetween(String value1, String value2) { + addCriterion("special_id not between", value1, value2, "specialId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdIsNull() { + addCriterion("wechat_open_id is null"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdIsNotNull() { + addCriterion("wechat_open_id is not null"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdEqualTo(String value) { + addCriterion("wechat_open_id =", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdNotEqualTo(String value) { + addCriterion("wechat_open_id <>", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdGreaterThan(String value) { + addCriterion("wechat_open_id >", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdGreaterThanOrEqualTo(String value) { + addCriterion("wechat_open_id >=", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdLessThan(String value) { + addCriterion("wechat_open_id <", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdLessThanOrEqualTo(String value) { + addCriterion("wechat_open_id <=", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdLike(String value) { + addCriterion("wechat_open_id like", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdNotLike(String value) { + addCriterion("wechat_open_id not like", value, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdIn(List values) { + addCriterion("wechat_open_id in", values, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdNotIn(List values) { + addCriterion("wechat_open_id not in", values, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdBetween(String value1, String value2) { + addCriterion("wechat_open_id between", value1, value2, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatOpenIdNotBetween(String value1, String value2) { + addCriterion("wechat_open_id not between", value1, value2, "wechatOpenId"); + return (Criteria) this; + } + + public Criteria andWechatUnionidIsNull() { + addCriterion("wechat_unionid is null"); + return (Criteria) this; + } + + public Criteria andWechatUnionidIsNotNull() { + addCriterion("wechat_unionid is not null"); + return (Criteria) this; + } + + public Criteria andWechatUnionidEqualTo(String value) { + addCriterion("wechat_unionid =", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidNotEqualTo(String value) { + addCriterion("wechat_unionid <>", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidGreaterThan(String value) { + addCriterion("wechat_unionid >", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidGreaterThanOrEqualTo(String value) { + addCriterion("wechat_unionid >=", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidLessThan(String value) { + addCriterion("wechat_unionid <", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidLessThanOrEqualTo(String value) { + addCriterion("wechat_unionid <=", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidLike(String value) { + addCriterion("wechat_unionid like", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidNotLike(String value) { + addCriterion("wechat_unionid not like", value, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidIn(List values) { + addCriterion("wechat_unionid in", values, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidNotIn(List values) { + addCriterion("wechat_unionid not in", values, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidBetween(String value1, String value2) { + addCriterion("wechat_unionid between", value1, value2, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andWechatUnionidNotBetween(String value1, String value2) { + addCriterion("wechat_unionid not between", value1, value2, "wechatUnionid"); + return (Criteria) this; + } + + public Criteria andElmPidIsNull() { + addCriterion("elm_pid is null"); + return (Criteria) this; + } + + public Criteria andElmPidIsNotNull() { + addCriterion("elm_pid is not null"); + return (Criteria) this; + } + + public Criteria andElmPidEqualTo(String value) { + addCriterion("elm_pid =", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidNotEqualTo(String value) { + addCriterion("elm_pid <>", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidGreaterThan(String value) { + addCriterion("elm_pid >", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidGreaterThanOrEqualTo(String value) { + addCriterion("elm_pid >=", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidLessThan(String value) { + addCriterion("elm_pid <", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidLessThanOrEqualTo(String value) { + addCriterion("elm_pid <=", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidLike(String value) { + addCriterion("elm_pid like", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidNotLike(String value) { + addCriterion("elm_pid not like", value, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidIn(List values) { + addCriterion("elm_pid in", values, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidNotIn(List values) { + addCriterion("elm_pid not in", values, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidBetween(String value1, String value2) { + addCriterion("elm_pid between", value1, value2, "elmPid"); + return (Criteria) this; + } + + public Criteria andElmPidNotBetween(String value1, String value2) { + addCriterion("elm_pid not between", value1, value2, "elmPid"); + return (Criteria) this; + } + public Criteria andInviteUserIdIsNull() { addCriterion("invite_user_id is null"); return (Criteria) this;