|
|
@ -46,8 +46,9 @@ public interface HighDiscountPackageMapper extends HighDiscountPackageMapperExt |
|
|
|
"banner_img, details_img, ", |
|
|
|
"banner_img, details_img, ", |
|
|
|
"created_user_id, created_time, ", |
|
|
|
"created_user_id, created_time, ", |
|
|
|
"updated_user_id, updated_time, ", |
|
|
|
"updated_user_id, updated_time, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"`status`, total_stock, ", |
|
|
|
"ext_3)", |
|
|
|
"surplus_stock, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{companyId,jdbcType=INTEGER}, #{usingAttribution,jdbcType=INTEGER}, ", |
|
|
|
"values (#{companyId,jdbcType=INTEGER}, #{usingAttribution,jdbcType=INTEGER}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{salesType,jdbcType=INTEGER}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{salesType,jdbcType=INTEGER}, ", |
|
|
|
"#{effectiveTiem,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"#{effectiveTiem,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL}, ", |
|
|
@ -55,8 +56,9 @@ public interface HighDiscountPackageMapper extends HighDiscountPackageMapperExt |
|
|
|
"#{bannerImg,jdbcType=VARCHAR}, #{detailsImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{bannerImg,jdbcType=VARCHAR}, #{detailsImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{totalStock,jdbcType=INTEGER}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{surplusStock,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighDiscountPackage record); |
|
|
|
int insert(HighDiscountPackage record); |
|
|
@ -83,6 +85,8 @@ public interface HighDiscountPackageMapper extends HighDiscountPackageMapperExt |
|
|
|
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="total_stock", property="totalStock", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="surplus_stock", property="surplusStock", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
@ -93,7 +97,8 @@ public interface HighDiscountPackageMapper extends HighDiscountPackageMapperExt |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, company_id, using_attribution, title, sales_type, effective_tiem, price, ", |
|
|
|
"id, company_id, using_attribution, title, sales_type, effective_tiem, 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`, total_stock, surplus_stock, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3", |
|
|
|
"from high_discount_package", |
|
|
|
"from high_discount_package", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -114,6 +119,8 @@ public interface HighDiscountPackageMapper extends HighDiscountPackageMapperExt |
|
|
|
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="total_stock", property="totalStock", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="surplus_stock", property="surplusStock", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
@ -146,6 +153,8 @@ public interface HighDiscountPackageMapper extends HighDiscountPackageMapperExt |
|
|
|
"updated_user_id = #{updatedUserId,jdbcType=INTEGER},", |
|
|
|
"updated_user_id = #{updatedUserId,jdbcType=INTEGER},", |
|
|
|
"updated_time = #{updatedTime,jdbcType=TIMESTAMP},", |
|
|
|
"updated_time = #{updatedTime,jdbcType=TIMESTAMP},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"total_stock = #{totalStock,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"surplus_stock = #{surplusStock,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|