|
|
@ -41,18 +41,20 @@ 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, ", |
|
|
|
"invite_user_id, invite_time, ", |
|
|
|
"wechat_open_id, wechat_unionid, ", |
|
|
|
"partner_level, partner_income_per, ", |
|
|
|
"elm_pid, invite_user_id, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"invite_time, partner_level, ", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"partner_income_per, `status`, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"create_time, 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}, #{grade,jdbcType=INTEGER}, #{wechatNum,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{grade,jdbcType=INTEGER}, #{wechatNum,jdbcType=VARCHAR}, ", |
|
|
|
"#{inviteUserId,jdbcType=BIGINT}, #{inviteTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{wechatOpenId,jdbcType=VARCHAR}, #{wechatUnionid,jdbcType=VARCHAR}, ", |
|
|
|
"#{partnerLevel,jdbcType=INTEGER}, #{partnerIncomePer,jdbcType=DECIMAL}, ", |
|
|
|
"#{elmPid,jdbcType=VARCHAR}, #{inviteUserId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{inviteTime,jdbcType=TIMESTAMP}, #{partnerLevel,jdbcType=INTEGER}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{partnerIncomePer,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{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); |
|
|
@ -69,6 +71,9 @@ 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="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 +89,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, wechat_open_id, wechat_unionid, ", |
|
|
|
"partner_level, partner_income_per, `status`, create_time, update_time, ext_1, ", |
|
|
|
"elm_pid, invite_user_id, invite_time, partner_level, partner_income_per, `status`, ", |
|
|
|
"ext_2, ext_3", |
|
|
|
"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 +102,9 @@ 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="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 +134,9 @@ 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},", |
|
|
|
|
|
|
|
"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},", |
|
|
|