|
|
|
@ -41,24 +41,7 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_user (head_img, `name`, ", |
|
|
|
|
"phone, grade, wechat_num, ", |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
"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)", |
|
|
|
|
"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}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
======= |
|
|
|
|
"special_id, relation_id, ", |
|
|
|
|
"wechat_open_id, wechat_unionid, ", |
|
|
|
|
"elm_pid, invite_user_id, ", |
|
|
|
|
"invite_time, partner_level, ", |
|
|
|
@ -67,13 +50,13 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{headImg,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{phone,jdbcType=VARCHAR}, #{grade,jdbcType=INTEGER}, #{wechatNum,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{specialId,jdbcType=VARCHAR}, #{relationId,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}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
>>>>>>> 9fd569d446b9f1a74c4b28147a3572ee8a076825 |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsUser record); |
|
|
|
@ -90,10 +73,8 @@ 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), |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
@Result(column="special_id", property="specialId", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
======= |
|
|
|
|
>>>>>>> 9fd569d446b9f1a74c4b28147a3572ee8a076825 |
|
|
|
|
@Result(column="relation_id", property="relationId", 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), |
|
|
|
@ -112,15 +93,9 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, special_id, wechat_open_id, ", |
|
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, special_id, relation_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", |
|
|
|
|
======= |
|
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, 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", |
|
|
|
|
>>>>>>> 9fd569d446b9f1a74c4b28147a3572ee8a076825 |
|
|
|
|
"from bs_user", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -131,10 +106,8 @@ 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), |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
@Result(column="special_id", property="specialId", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
======= |
|
|
|
|
>>>>>>> 9fd569d446b9f1a74c4b28147a3572ee8a076825 |
|
|
|
|
@Result(column="relation_id", property="relationId", 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), |
|
|
|
@ -167,10 +140,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
|
"grade = #{grade,jdbcType=INTEGER},", |
|
|
|
|
"wechat_num = #{wechatNum,jdbcType=VARCHAR},", |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
"special_id = #{specialId,jdbcType=VARCHAR},", |
|
|
|
|
======= |
|
|
|
|
>>>>>>> 9fd569d446b9f1a74c4b28147a3572ee8a076825 |
|
|
|
|
"relation_id = #{relationId,jdbcType=VARCHAR},", |
|
|
|
|
"wechat_open_id = #{wechatOpenId,jdbcType=VARCHAR},", |
|
|
|
|
"wechat_unionid = #{wechatUnionid,jdbcType=VARCHAR},", |
|
|
|
|
"elm_pid = #{elmPid,jdbcType=VARCHAR},", |
|
|
|
|