|
|
|
@ -41,16 +41,18 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_distribution_rebate (title, order_no, ", |
|
|
|
|
"agent_id, popularize_user_id, ", |
|
|
|
|
"user_id, user_name, ", |
|
|
|
|
"integral_num, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"second_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}, ", |
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{integralNum,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{secondPopularizeUserId,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}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsDistributionRebate record); |
|
|
|
@ -66,6 +68,7 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
@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), |
|
|
|
@ -80,8 +83,9 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, title, order_no, agent_id, popularize_user_id, user_id, user_name, integral_num, ", |
|
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"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", |
|
|
|
|
"from bs_distribution_rebate", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -91,6 +95,7 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
@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), |
|
|
|
@ -118,6 +123,7 @@ public interface BsDistributionRebateMapper extends BsDistributionRebateMapperEx |
|
|
|
|
"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},", |
|
|
|
|