|
|
@ -39,14 +39,12 @@ public interface BsUserInviteCodeMapper extends BsUserInviteCodeMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_user_invite_code (user_id, invite_code, ", |
|
|
|
"insert into bs_user_invite_code (user_id, qr_code_img, ", |
|
|
|
"qr_code_img, `status`, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"create_time, ext_1, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{qrCodeImg,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{inviteCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{qrCodeImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsUserInviteCode record); |
|
|
|
int insert(BsUserInviteCode record); |
|
|
@ -59,7 +57,6 @@ public interface BsUserInviteCodeMapper extends BsUserInviteCodeMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="invite_code", property="inviteCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="qr_code_img", property="qrCodeImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code_img", property="qrCodeImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -71,15 +68,13 @@ public interface BsUserInviteCodeMapper extends BsUserInviteCodeMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_id, invite_code, qr_code_img, `status`, create_time, ext_1, ext_2, ", |
|
|
|
"id, user_id, qr_code_img, `status`, create_time, ext_1, ext_2, ext_3", |
|
|
|
"ext_3", |
|
|
|
|
|
|
|
"from bs_user_invite_code", |
|
|
|
"from bs_user_invite_code", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="invite_code", property="inviteCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="qr_code_img", property="qrCodeImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code_img", property="qrCodeImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -101,7 +96,6 @@ public interface BsUserInviteCodeMapper extends BsUserInviteCodeMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update bs_user_invite_code", |
|
|
|
"update bs_user_invite_code", |
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"invite_code = #{inviteCode,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"qr_code_img = #{qrCodeImg,jdbcType=VARCHAR},", |
|
|
|
"qr_code_img = #{qrCodeImg,jdbcType=VARCHAR},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|