|
|
|
@ -40,15 +40,15 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_partner_pool (`level`, num, ", |
|
|
|
|
"gold_coin, user_id, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"num_no, gold_coin, ", |
|
|
|
|
"user_id, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{numNo,jdbcType=INTEGER}, #{goldCoin,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsPartnerPool record); |
|
|
|
@ -62,6 +62,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="num_no", property="numNo", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -75,8 +76,8 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"id, `level`, num, num_no, gold_coin, user_id, create_time, update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_partner_pool", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -84,6 +85,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="num_no", property="numNo", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -108,6 +110,7 @@ public interface BsPartnerPoolMapper extends BsPartnerPoolMapperExt { |
|
|
|
|
"update bs_partner_pool", |
|
|
|
|
"set `level` = #{level,jdbcType=INTEGER},", |
|
|
|
|
"num = #{num,jdbcType=VARCHAR},", |
|
|
|
|
"num_no = #{numNo,jdbcType=INTEGER},", |
|
|
|
|
"gold_coin = #{goldCoin,jdbcType=DECIMAL},", |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|