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