|
|
@ -39,22 +39,22 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_discount_user_rel (discount_company_id, discount_id, ", |
|
|
|
"insert into high_discount_user_rel (discount_company_id, discount_platform, ", |
|
|
|
"discount_name, discount_img, ", |
|
|
|
"discount_id, discount_name, ", |
|
|
|
"discount_using_range, discount_use_scope, ", |
|
|
|
"discount_img, discount_using_range, ", |
|
|
|
"discount_type, discount_condition, ", |
|
|
|
"discount_use_scope, discount_type, ", |
|
|
|
"discount_price, agent_id, ", |
|
|
|
"discount_condition, discount_price, ", |
|
|
|
"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 (#{discountCompanyId,jdbcType=BIGINT}, #{discountId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{discountCompanyId,jdbcType=BIGINT}, #{discountPlatform,jdbcType=INTEGER}, ", |
|
|
|
"#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountId,jdbcType=BIGINT}, #{discountName,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountUsingRange,jdbcType=INTEGER}, #{discountUseScope,jdbcType=INTEGER}, ", |
|
|
|
"#{discountImg,jdbcType=VARCHAR}, #{discountUsingRange,jdbcType=INTEGER}, ", |
|
|
|
"#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ", |
|
|
|
"#{discountUseScope,jdbcType=INTEGER}, #{discountType,jdbcType=INTEGER}, ", |
|
|
|
"#{discountPrice,jdbcType=DECIMAL}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"#{discountCondition,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{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})" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -69,6 +69,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_company_id", property="discountCompanyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_company_id", property="discountCompanyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="discount_platform", property="discountPlatform", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
@ -92,16 +93,17 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, discount_company_id, discount_id, discount_name, discount_img, discount_using_range, ", |
|
|
|
"id, discount_company_id, discount_platform, discount_id, discount_name, discount_img, ", |
|
|
|
"discount_use_scope, discount_type, discount_condition, discount_price, agent_id, ", |
|
|
|
"discount_using_range, discount_use_scope, discount_type, discount_condition, ", |
|
|
|
"discount_agent_code_id, user_id, `status`, use_time, create_time, use_end_time, ", |
|
|
|
"discount_price, agent_id, discount_agent_code_id, user_id, `status`, use_time, ", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"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_company_id", property="discountCompanyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_company_id", property="discountCompanyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="discount_platform", property="discountPlatform", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
@ -135,6 +137,7 @@ public interface HighDiscountUserRelMapper extends HighDiscountUserRelMapperExt |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_discount_user_rel", |
|
|
|
"update high_discount_user_rel", |
|
|
|
"set discount_company_id = #{discountCompanyId,jdbcType=BIGINT},", |
|
|
|
"set discount_company_id = #{discountCompanyId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"discount_platform = #{discountPlatform,jdbcType=INTEGER},", |
|
|
|
"discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
"discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
"discount_name = #{discountName,jdbcType=VARCHAR},", |
|
|
|
"discount_name = #{discountName,jdbcType=VARCHAR},", |
|
|
|
"discount_img = #{discountImg,jdbcType=VARCHAR},", |
|
|
|
"discount_img = #{discountImg,jdbcType=VARCHAR},", |
|
|
|