|
|
@ -43,14 +43,16 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
"phone, `password`, ", |
|
|
|
"phone, `password`, ", |
|
|
|
"integral, `status`, ", |
|
|
|
"integral, `status`, ", |
|
|
|
"wx_mp_openid, wx_ma_openid, ", |
|
|
|
"wx_mp_openid, wx_ma_openid, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"v_family_openid, create_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"update_time, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ", |
|
|
|
"#{integral,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{integral,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{wxMpOpenid,jdbcType=VARCHAR}, #{wxMaOpenid,jdbcType=VARCHAR}, ", |
|
|
|
"#{wxMpOpenid,jdbcType=VARCHAR}, #{wxMaOpenid,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{vFamilyOpenid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsUser record); |
|
|
|
int insert(BsUser record); |
|
|
@ -70,6 +72,7 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="wx_mp_openid", property="wxMpOpenid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="wx_mp_openid", property="wxMpOpenid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="wx_ma_openid", property="wxMaOpenid", 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="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -81,7 +84,7 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, head_img, `name`, phone, `password`, integral, `status`, wx_mp_openid, wx_ma_openid, ", |
|
|
|
"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", |
|
|
|
"from bs_user", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -95,6 +98,7 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="wx_mp_openid", property="wxMpOpenid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="wx_mp_openid", property="wxMpOpenid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="wx_ma_openid", property="wxMaOpenid", 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="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -122,6 +126,7 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"wx_mp_openid = #{wxMpOpenid,jdbcType=VARCHAR},", |
|
|
|
"wx_mp_openid = #{wxMpOpenid,jdbcType=VARCHAR},", |
|
|
|
"wx_ma_openid = #{wxMaOpenid,jdbcType=VARCHAR},", |
|
|
|
"wx_ma_openid = #{wxMaOpenid,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"v_family_openid = #{vFamilyOpenid,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|