|
|
@ -39,14 +39,14 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_discount_user_rel (discount_id, agent_id, ", |
|
|
|
"insert into high_discount_user_rel (discount_id, using_attribution, ", |
|
|
|
"discount_agent_code_id, user_id, ", |
|
|
|
"agent_id, discount_agent_code_id, ", |
|
|
|
"`status`, use_time, ", |
|
|
|
"user_id, `status`, use_time, ", |
|
|
|
"create_time, use_end_time, ", |
|
|
|
"create_time, use_end_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{discountId,jdbcType=BIGINT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{discountId,jdbcType=BIGINT}, #{usingAttribution,jdbcType=INTEGER}, ", |
|
|
|
"#{discountAgentCodeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{agentId,jdbcType=BIGINT}, #{discountAgentCodeId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -61,6 +61,7 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_agent_code_id", property="discountAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_agent_code_id", property="discountAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
@ -76,14 +77,15 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, discount_id, agent_id, discount_agent_code_id, user_id, `status`, use_time, ", |
|
|
|
"id, discount_id, using_attribution, agent_id, discount_agent_code_id, user_id, ", |
|
|
|
"create_time, use_end_time, ext_1, ext_2, ext_3", |
|
|
|
"`status`, use_time, create_time, use_end_time, ext_1, ext_2, ext_3", |
|
|
|
"from high_discount_user_rel", |
|
|
|
"from high_discount_user_rel", |
|
|
|
"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="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_agent_code_id", property="discountAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_agent_code_id", property="discountAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
@ -109,6 +111,7 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_discount_user_rel", |
|
|
|
"update high_discount_user_rel", |
|
|
|
"set discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
"set discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"using_attribution = #{usingAttribution,jdbcType=INTEGER},", |
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
"discount_agent_code_id = #{discountAgentCodeId,jdbcType=BIGINT},", |
|
|
|
"discount_agent_code_id = #{discountAgentCodeId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|