|
|
@ -41,6 +41,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_user (head_img, `name`, ", |
|
|
|
"insert into bs_user (head_img, `name`, ", |
|
|
|
"phone, grade, wechat_num, ", |
|
|
|
"phone, grade, wechat_num, ", |
|
|
|
|
|
|
|
"special_id, wechat_open_id, ", |
|
|
|
|
|
|
|
"wechat_unionid, elm_pid, ", |
|
|
|
"invite_user_id, invite_time, ", |
|
|
|
"invite_user_id, invite_time, ", |
|
|
|
"partner_level, partner_income_per, ", |
|
|
|
"partner_level, partner_income_per, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"`status`, create_time, ", |
|
|
@ -48,6 +50,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{grade,jdbcType=INTEGER}, #{wechatNum,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}, ", |
|
|
|
"#{inviteUserId,jdbcType=BIGINT}, #{inviteTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{partnerLevel,jdbcType=INTEGER}, #{partnerIncomePer,jdbcType=DECIMAL}, ", |
|
|
|
"#{partnerLevel,jdbcType=INTEGER}, #{partnerIncomePer,jdbcType=DECIMAL}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{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="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="grade", property="grade", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="grade", property="grade", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="wechat_num", property="wechatNum", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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_user_id", property="inviteUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), |
|
|
@ -84,9 +92,9 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, invite_user_id, invite_time, ", |
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, special_id, wechat_open_id, ", |
|
|
|
"partner_level, partner_income_per, `status`, create_time, update_time, ext_1, ", |
|
|
|
"wechat_unionid, elm_pid, invite_user_id, invite_time, partner_level, partner_income_per, ", |
|
|
|
"ext_2, ext_3", |
|
|
|
"`status`, 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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -97,6 +105,10 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="grade", property="grade", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="grade", property="grade", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="wechat_num", property="wechatNum", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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_user_id", property="inviteUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), |
|
|
@ -126,6 +138,10 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
"grade = #{grade,jdbcType=INTEGER},", |
|
|
|
"grade = #{grade,jdbcType=INTEGER},", |
|
|
|
"wechat_num = #{wechatNum,jdbcType=VARCHAR},", |
|
|
|
"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_user_id = #{inviteUserId,jdbcType=BIGINT},", |
|
|
|
"invite_time = #{inviteTime,jdbcType=TIMESTAMP},", |
|
|
|
"invite_time = #{inviteTime,jdbcType=TIMESTAMP},", |
|
|
|
"partner_level = #{partnerLevel,jdbcType=INTEGER},", |
|
|
|
"partner_level = #{partnerLevel,jdbcType=INTEGER},", |
|
|
|