|
|
|
@ -39,16 +39,16 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_distribution_rebate (title, order_no, ", |
|
|
|
|
"agent_id, popularize_user_id, ", |
|
|
|
|
"second_popularize_user_id, user_id, ", |
|
|
|
|
"insert into bs_distribution_rebate (title, `type`, ", |
|
|
|
|
"order_no, agent_id, ", |
|
|
|
|
"popularize_user_id, user_id, ", |
|
|
|
|
"user_name, integral_num, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{title,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{agentId,jdbcType=BIGINT}, #{popularizeUserId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{secondPopularizeUserId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"values (#{title,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, ", |
|
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{popularizeUserId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userName,jdbcType=VARCHAR}, #{integralNum,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
@ -65,10 +65,10 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="popularize_user_id", property="popularizeUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="second_popularize_user_id", property="secondPopularizeUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="integral_num", property="integralNum", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -83,19 +83,18 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, title, order_no, agent_id, popularize_user_id, second_popularize_user_id, ", |
|
|
|
|
"user_id, user_name, integral_num, create_time, update_time, `status`, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"id, title, `type`, order_no, agent_id, popularize_user_id, user_id, user_name, ", |
|
|
|
|
"integral_num, create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_distribution_rebate", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="popularize_user_id", property="popularizeUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="second_popularize_user_id", property="secondPopularizeUserId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="integral_num", property="integralNum", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -120,10 +119,10 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
@Update({ |
|
|
|
|
"update bs_distribution_rebate", |
|
|
|
|
"set title = #{title,jdbcType=VARCHAR},", |
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
|
"popularize_user_id = #{popularizeUserId,jdbcType=BIGINT},", |
|
|
|
|
"second_popularize_user_id = #{secondPopularizeUserId,jdbcType=BIGINT},", |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"user_name = #{userName,jdbcType=VARCHAR},", |
|
|
|
|
"integral_num = #{integralNum,jdbcType=DECIMAL},", |
|
|
|
|