|
|
|
@ -42,12 +42,14 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
"insert into bs_user (head_img, `name`, ", |
|
|
|
|
"phone, grade, wechat_num, ", |
|
|
|
|
"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}, ", |
|
|
|
|
"#{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})" |
|
|
|
@ -69,6 +71,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
@Result(column="wechat_num", property="wechatNum", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="invite_user_id", property="inviteUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="partner_income_per", property="partnerIncomePer", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -81,7 +85,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, head_img, `name`, phone, grade, wechat_num, invite_user_id, invite_time, ", |
|
|
|
|
"`status`, create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"partner_level, partner_income_per, `status`, create_time, update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from bs_user", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -94,6 +99,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
@Result(column="wechat_num", property="wechatNum", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="invite_user_id", property="inviteUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="invite_time", property="inviteTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="partner_level", property="partnerLevel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="partner_income_per", property="partnerIncomePer", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -121,6 +128,8 @@ public interface BsUserMapper extends BsUserMapperExt { |
|
|
|
|
"wechat_num = #{wechatNum,jdbcType=VARCHAR},", |
|
|
|
|
"invite_user_id = #{inviteUserId,jdbcType=BIGINT},", |
|
|
|
|
"invite_time = #{inviteTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"partner_level = #{partnerLevel,jdbcType=INTEGER},", |
|
|
|
|
"partner_income_per = #{partnerIncomePer,jdbcType=DECIMAL},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|