|
|
|
@ -41,6 +41,22 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_user (head_img, `name`, ", |
|
|
|
|
"phone, grade, wechat_num, ", |
|
|
|
|
"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})", |
|
|
|
|
"wechat_open_id, wechat_unionid, ", |
|
|
|
|
"elm_pid, invite_user_id, ", |
|
|
|
|
"invite_time, partner_level, ", |
|
|
|
@ -71,6 +87,7 @@ 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), |
|
|
|
|
@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), |
|
|
|
@ -89,6 +106,9 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, 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", |
|
|
|
|
"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", |
|
|
|
@ -102,6 +122,7 @@ 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), |
|
|
|
|
@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), |
|
|
|
@ -134,6 +155,7 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
|
"grade = #{grade,jdbcType=INTEGER},", |
|
|
|
|
"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},", |
|
|
|
|