|
|
@ -39,12 +39,14 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_partner_pool_pre (`level`, num, ", |
|
|
|
"insert into bs_partner_pool_pre (`level`, lottery_no, ", |
|
|
|
|
|
|
|
"num, campaign_no, ", |
|
|
|
"gold_coin, user_id, ", |
|
|
|
"gold_coin, user_id, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_3)", |
|
|
|
"values (#{level,jdbcType=INTEGER}, #{num,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{level,jdbcType=INTEGER}, #{lotteryNo,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{num,jdbcType=VARCHAR}, #{campaignNo,jdbcType=INTEGER}, ", |
|
|
|
"#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{goldCoin,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
@ -61,7 +63,9 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="campaign_no", property="campaignNo", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -75,15 +79,17 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `level`, num, gold_coin, user_id, create_time, update_time, `status`, ext_1, ", |
|
|
|
"id, `level`, lottery_no, num, campaign_no, gold_coin, user_id, create_time, ", |
|
|
|
"ext_2, ext_3", |
|
|
|
"update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from bs_partner_pool_pre", |
|
|
|
"from bs_partner_pool_pre", |
|
|
|
"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="level", property="level", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="level", property="level", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="lottery_no", property="lotteryNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="campaign_no", property="campaignNo", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="gold_coin", property="goldCoin", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -107,7 +113,9 @@ public interface BsPartnerPoolPreMapper extends BsPartnerPoolPreMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update bs_partner_pool_pre", |
|
|
|
"update bs_partner_pool_pre", |
|
|
|
"set `level` = #{level,jdbcType=INTEGER},", |
|
|
|
"set `level` = #{level,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"lottery_no = #{lotteryNo,jdbcType=VARCHAR},", |
|
|
|
"num = #{num,jdbcType=VARCHAR},", |
|
|
|
"num = #{num,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"campaign_no = #{campaignNo,jdbcType=INTEGER},", |
|
|
|
"gold_coin = #{goldCoin,jdbcType=DECIMAL},", |
|
|
|
"gold_coin = #{goldCoin,jdbcType=DECIMAL},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|