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