|
|
@ -39,24 +39,24 @@ public interface HighCouponPackageMapper extends HighCouponPackageMapperExt { |
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_coupon_package (company_id, title, ", |
|
|
|
"insert into high_coupon_package (company_id, using_attribution, ", |
|
|
|
"brand_id, goods_type_id, ", |
|
|
|
"title, sales_type, ", |
|
|
|
"sales_type, effective_tiem, ", |
|
|
|
"effective_tiem, price, ", |
|
|
|
"price, purchase_num, ", |
|
|
|
"purchase_num, list_img, ", |
|
|
|
"list_img, banner_img, ", |
|
|
|
"banner_img, details_img, ", |
|
|
|
"details_img, created_user_id, ", |
|
|
|
"created_user_id, created_time, ", |
|
|
|
"created_time, updated_user_id, ", |
|
|
|
"updated_user_id, updated_time, ", |
|
|
|
"updated_time, `status`, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_3)", |
|
|
|
"values (#{companyId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{companyId,jdbcType=INTEGER}, #{usingAttribution,jdbcType=INTEGER}, ", |
|
|
|
"#{brandId,jdbcType=INTEGER}, #{goodsTypeId,jdbcType=INTEGER}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{salesType,jdbcType=INTEGER}, ", |
|
|
|
"#{salesType,jdbcType=INTEGER}, #{effectiveTiem,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{effectiveTiem,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"#{price,jdbcType=DECIMAL}, #{purchaseNum,jdbcType=INTEGER}, ", |
|
|
|
"#{purchaseNum,jdbcType=INTEGER}, #{listImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{listImg,jdbcType=VARCHAR}, #{bannerImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{bannerImg,jdbcType=VARCHAR}, #{detailsImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{detailsImg,jdbcType=VARCHAR}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updatedTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighCouponPackage record); |
|
|
|
int insert(HighCouponPackage record); |
|
|
@ -69,9 +69,8 @@ public interface HighCouponPackageMapper extends HighCouponPackageMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="effective_tiem", property="effectiveTiem", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="effective_tiem", property="effectiveTiem", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
@ -92,8 +91,8 @@ public interface HighCouponPackageMapper extends HighCouponPackageMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, company_id, title, brand_id, goods_type_id, sales_type, effective_tiem, ", |
|
|
|
"id, company_id, using_attribution, title, sales_type, effective_tiem, price, ", |
|
|
|
"price, purchase_num, list_img, banner_img, details_img, created_user_id, created_time, ", |
|
|
|
"purchase_num, list_img, banner_img, details_img, created_user_id, created_time, ", |
|
|
|
"updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_coupon_package", |
|
|
|
"from high_coupon_package", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
@ -101,9 +100,8 @@ public interface HighCouponPackageMapper extends HighCouponPackageMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="using_attribution", property="usingAttribution", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sales_type", property="salesType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="effective_tiem", property="effectiveTiem", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="effective_tiem", property="effectiveTiem", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
@ -134,9 +132,8 @@ public interface HighCouponPackageMapper extends HighCouponPackageMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_coupon_package", |
|
|
|
"update high_coupon_package", |
|
|
|
"set company_id = #{companyId,jdbcType=INTEGER},", |
|
|
|
"set company_id = #{companyId,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"using_attribution = #{usingAttribution,jdbcType=INTEGER},", |
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"goods_type_id = #{goodsTypeId,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"sales_type = #{salesType,jdbcType=INTEGER},", |
|
|
|
"sales_type = #{salesType,jdbcType=INTEGER},", |
|
|
|
"effective_tiem = #{effectiveTiem,jdbcType=TIMESTAMP},", |
|
|
|
"effective_tiem = #{effectiveTiem,jdbcType=TIMESTAMP},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|