From 98905b5529283c904821528b66ad0e8c9589eea2 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Wed, 10 Jul 2024 16:57:27 +0800 Subject: [PATCH] 1 --- .../main/java/com/hfkj/dao/BsUserMapper.java | 15 ++-- .../java/com/hfkj/dao/BsUserSqlProvider.java | 14 ++++ .../src/main/java/com/hfkj/entity/BsUser.java | 18 ++++- .../java/com/hfkj/entity/BsUserExample.java | 70 +++++++++++++++++++ 4 files changed, 111 insertions(+), 6 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/BsUserMapper.java b/service/src/main/java/com/hfkj/dao/BsUserMapper.java index 4d12f82..ffe41f8 100644 --- a/service/src/main/java/com/hfkj/dao/BsUserMapper.java +++ b/service/src/main/java/com/hfkj/dao/BsUserMapper.java @@ -43,14 +43,16 @@ public interface BsUserMapper extends BsUserMapperExt { "phone, `password`, ", "integral, `status`, ", "wx_mp_openid, wx_ma_openid, ", - "create_time, update_time, ", - "ext_1, ext_2, ext_3)", + "v_family_openid, create_time, ", + "update_time, ext_1, ", + "ext_2, ext_3)", "values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", "#{phone,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ", "#{integral,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, ", "#{wxMpOpenid,jdbcType=VARCHAR}, #{wxMaOpenid,jdbcType=VARCHAR}, ", - "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", - "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + "#{vFamilyOpenid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", + "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) @Options(useGeneratedKeys=true,keyProperty="id") int insert(BsUser record); @@ -70,6 +72,7 @@ public interface BsUserMapper extends BsUserMapperExt { @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="wx_mp_openid", property="wxMpOpenid", jdbcType=JdbcType.VARCHAR), @Result(column="wx_ma_openid", property="wxMaOpenid", jdbcType=JdbcType.VARCHAR), + @Result(column="v_family_openid", property="vFamilyOpenid", jdbcType=JdbcType.VARCHAR), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @@ -81,7 +84,7 @@ public interface BsUserMapper extends BsUserMapperExt { @Select({ "select", "id, head_img, `name`, phone, `password`, integral, `status`, wx_mp_openid, wx_ma_openid, ", - "create_time, update_time, ext_1, ext_2, ext_3", + "v_family_openid, create_time, update_time, ext_1, ext_2, ext_3", "from bs_user", "where id = #{id,jdbcType=BIGINT}" }) @@ -95,6 +98,7 @@ public interface BsUserMapper extends BsUserMapperExt { @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="wx_mp_openid", property="wxMpOpenid", jdbcType=JdbcType.VARCHAR), @Result(column="wx_ma_openid", property="wxMaOpenid", jdbcType=JdbcType.VARCHAR), + @Result(column="v_family_openid", property="vFamilyOpenid", jdbcType=JdbcType.VARCHAR), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @@ -122,6 +126,7 @@ public interface BsUserMapper extends BsUserMapperExt { "`status` = #{status,jdbcType=INTEGER},", "wx_mp_openid = #{wxMpOpenid,jdbcType=VARCHAR},", "wx_ma_openid = #{wxMaOpenid,jdbcType=VARCHAR},", + "v_family_openid = #{vFamilyOpenid,jdbcType=VARCHAR},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},", "ext_1 = #{ext1,jdbcType=VARCHAR},", diff --git a/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java b/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java index 833e30c..956e70e 100644 --- a/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/BsUserSqlProvider.java @@ -60,6 +60,10 @@ public class BsUserSqlProvider { sql.VALUES("wx_ma_openid", "#{wxMaOpenid,jdbcType=VARCHAR}"); } + if (record.getvFamilyOpenid() != null) { + sql.VALUES("v_family_openid", "#{vFamilyOpenid,jdbcType=VARCHAR}"); + } + if (record.getCreateTime() != null) { sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); } @@ -98,6 +102,7 @@ public class BsUserSqlProvider { sql.SELECT("`status`"); sql.SELECT("wx_mp_openid"); sql.SELECT("wx_ma_openid"); + sql.SELECT("v_family_openid"); sql.SELECT("create_time"); sql.SELECT("update_time"); sql.SELECT("ext_1"); @@ -156,6 +161,10 @@ public class BsUserSqlProvider { sql.SET("wx_ma_openid = #{record.wxMaOpenid,jdbcType=VARCHAR}"); } + if (record.getvFamilyOpenid() != null) { + sql.SET("v_family_openid = #{record.vFamilyOpenid,jdbcType=VARCHAR}"); + } + if (record.getCreateTime() != null) { sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); } @@ -193,6 +202,7 @@ public class BsUserSqlProvider { sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("wx_mp_openid = #{record.wxMpOpenid,jdbcType=VARCHAR}"); sql.SET("wx_ma_openid = #{record.wxMaOpenid,jdbcType=VARCHAR}"); + sql.SET("v_family_openid = #{record.vFamilyOpenid,jdbcType=VARCHAR}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); @@ -240,6 +250,10 @@ public class BsUserSqlProvider { sql.SET("wx_ma_openid = #{wxMaOpenid,jdbcType=VARCHAR}"); } + if (record.getvFamilyOpenid() != null) { + sql.SET("v_family_openid = #{vFamilyOpenid,jdbcType=VARCHAR}"); + } + if (record.getCreateTime() != null) { sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); } diff --git a/service/src/main/java/com/hfkj/entity/BsUser.java b/service/src/main/java/com/hfkj/entity/BsUser.java index 6af2f74..0a1ae47 100644 --- a/service/src/main/java/com/hfkj/entity/BsUser.java +++ b/service/src/main/java/com/hfkj/entity/BsUser.java @@ -54,10 +54,15 @@ public class BsUser implements Serializable { private String wxMpOpenid; /** - * 微信小重新openid + * 微信小程序openid */ private String wxMaOpenid; + /** + * v家园openid + */ + private String vFamilyOpenid; + /** * 创建时间 */ @@ -148,6 +153,14 @@ public class BsUser implements Serializable { this.wxMaOpenid = wxMaOpenid; } + public String getvFamilyOpenid() { + return vFamilyOpenid; + } + + public void setvFamilyOpenid(String vFamilyOpenid) { + this.vFamilyOpenid = vFamilyOpenid; + } + public Date getCreateTime() { return createTime; } @@ -209,6 +222,7 @@ public class BsUser implements Serializable { && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getWxMpOpenid() == null ? other.getWxMpOpenid() == null : this.getWxMpOpenid().equals(other.getWxMpOpenid())) && (this.getWxMaOpenid() == null ? other.getWxMaOpenid() == null : this.getWxMaOpenid().equals(other.getWxMaOpenid())) + && (this.getvFamilyOpenid() == null ? other.getvFamilyOpenid() == null : this.getvFamilyOpenid().equals(other.getvFamilyOpenid())) && (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())) @@ -229,6 +243,7 @@ public class BsUser implements Serializable { result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getWxMpOpenid() == null) ? 0 : getWxMpOpenid().hashCode()); result = prime * result + ((getWxMaOpenid() == null) ? 0 : getWxMaOpenid().hashCode()); + result = prime * result + ((getvFamilyOpenid() == null) ? 0 : getvFamilyOpenid().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()); @@ -252,6 +267,7 @@ public class BsUser implements Serializable { sb.append(", status=").append(status); sb.append(", wxMpOpenid=").append(wxMpOpenid); sb.append(", wxMaOpenid=").append(wxMaOpenid); + sb.append(", vFamilyOpenid=").append(vFamilyOpenid); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); sb.append(", ext1=").append(ext1); diff --git a/service/src/main/java/com/hfkj/entity/BsUserExample.java b/service/src/main/java/com/hfkj/entity/BsUserExample.java index b58eae5..0593e76 100644 --- a/service/src/main/java/com/hfkj/entity/BsUserExample.java +++ b/service/src/main/java/com/hfkj/entity/BsUserExample.java @@ -725,6 +725,76 @@ public class BsUserExample { return (Criteria) this; } + public Criteria andVFamilyOpenidIsNull() { + addCriterion("v_family_openid is null"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidIsNotNull() { + addCriterion("v_family_openid is not null"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidEqualTo(String value) { + addCriterion("v_family_openid =", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidNotEqualTo(String value) { + addCriterion("v_family_openid <>", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidGreaterThan(String value) { + addCriterion("v_family_openid >", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidGreaterThanOrEqualTo(String value) { + addCriterion("v_family_openid >=", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidLessThan(String value) { + addCriterion("v_family_openid <", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidLessThanOrEqualTo(String value) { + addCriterion("v_family_openid <=", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidLike(String value) { + addCriterion("v_family_openid like", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidNotLike(String value) { + addCriterion("v_family_openid not like", value, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidIn(List values) { + addCriterion("v_family_openid in", values, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidNotIn(List values) { + addCriterion("v_family_openid not in", values, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidBetween(String value1, String value2) { + addCriterion("v_family_openid between", value1, value2, "vFamilyOpenid"); + return (Criteria) this; + } + + public Criteria andVFamilyOpenidNotBetween(String value1, String value2) { + addCriterion("v_family_openid not between", value1, value2, "vFamilyOpenid"); + return (Criteria) this; + } + public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this;