|
|
@ -40,15 +40,17 @@ public interface HighCouponPackageDetailsMapper extends HighCouponPackageDetails |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_coupon_package_details (coupon_package_id, coupon_id, ", |
|
|
|
"insert into high_coupon_package_details (coupon_package_id, coupon_id, ", |
|
|
|
"num, created_user_id, ", |
|
|
|
"coupon_name, num, ", |
|
|
|
"created_time, updated_user_id, ", |
|
|
|
"created_user_id, created_time, ", |
|
|
|
"updated_time, `status`, ", |
|
|
|
"updated_user_id, updated_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{couponPackageId,jdbcType=INTEGER}, #{couponId,jdbcType=INTEGER}, ", |
|
|
|
"values (#{couponPackageId,jdbcType=INTEGER}, #{couponId,jdbcType=INTEGER}, ", |
|
|
|
"#{num,jdbcType=INTEGER}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{couponName,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, ", |
|
|
|
"#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updatedTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighCouponPackageDetails record); |
|
|
|
int insert(HighCouponPackageDetails record); |
|
|
@ -62,6 +64,7 @@ public interface HighCouponPackageDetailsMapper extends HighCouponPackageDetails |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="coupon_name", property="couponName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -76,8 +79,8 @@ public interface HighCouponPackageDetailsMapper extends HighCouponPackageDetails |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, coupon_package_id, coupon_id, num, created_user_id, created_time, updated_user_id, ", |
|
|
|
"id, coupon_package_id, coupon_id, coupon_name, num, created_user_id, created_time, ", |
|
|
|
"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_details", |
|
|
|
"from high_coupon_package_details", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -85,6 +88,7 @@ public interface HighCouponPackageDetailsMapper extends HighCouponPackageDetails |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_package_id", property="couponPackageId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="coupon_name", property="couponName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -110,6 +114,7 @@ public interface HighCouponPackageDetailsMapper extends HighCouponPackageDetails |
|
|
|
"update high_coupon_package_details", |
|
|
|
"update high_coupon_package_details", |
|
|
|
"set coupon_package_id = #{couponPackageId,jdbcType=INTEGER},", |
|
|
|
"set coupon_package_id = #{couponPackageId,jdbcType=INTEGER},", |
|
|
|
"coupon_id = #{couponId,jdbcType=INTEGER},", |
|
|
|
"coupon_id = #{couponId,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"coupon_name = #{couponName,jdbcType=VARCHAR},", |
|
|
|
"num = #{num,jdbcType=INTEGER},", |
|
|
|
"num = #{num,jdbcType=INTEGER},", |
|
|
|
"created_user_id = #{createdUserId,jdbcType=INTEGER},", |
|
|
|
"created_user_id = #{createdUserId,jdbcType=INTEGER},", |
|
|
|
"created_time = #{createdTime,jdbcType=TIMESTAMP},", |
|
|
|
"created_time = #{createdTime,jdbcType=TIMESTAMP},", |
|
|
|