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