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