|
|
@ -42,13 +42,13 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu |
|
|
|
"insert into high_discount_package_actual (discount_package_id, created_user_id, ", |
|
|
|
"insert into high_discount_package_actual (discount_package_id, created_user_id, ", |
|
|
|
"created_time, user_id, ", |
|
|
|
"created_time, user_id, ", |
|
|
|
"allocation_time, child_order_id, ", |
|
|
|
"allocation_time, child_order_id, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"batch, `status`, ext_1, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{discountPackageId,jdbcType=INTEGER}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
"values (#{discountPackageId,jdbcType=INTEGER}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{createdTime,jdbcType=TIMESTAMP}, #{userId,jdbcType=INTEGER}, ", |
|
|
|
"#{createdTime,jdbcType=TIMESTAMP}, #{userId,jdbcType=INTEGER}, ", |
|
|
|
"#{allocationTime,jdbcType=TIMESTAMP}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{allocationTime,jdbcType=TIMESTAMP}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{batch,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighDiscountPackageActual record); |
|
|
|
int insert(HighDiscountPackageActual record); |
|
|
@ -66,6 +66,7 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="allocation_time", property="allocationTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="allocation_time", property="allocationTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="batch", property="batch", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", 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), |
|
|
@ -76,7 +77,7 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, discount_package_id, created_user_id, created_time, user_id, allocation_time, ", |
|
|
|
"id, discount_package_id, created_user_id, created_time, user_id, allocation_time, ", |
|
|
|
"child_order_id, `status`, ext_1, ext_2, ext_3", |
|
|
|
"child_order_id, batch, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_discount_package_actual", |
|
|
|
"from high_discount_package_actual", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -88,6 +89,7 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="allocation_time", property="allocationTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="allocation_time", property="allocationTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="batch", property="batch", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", 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), |
|
|
@ -112,6 +114,7 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu |
|
|
|
"user_id = #{userId,jdbcType=INTEGER},", |
|
|
|
"user_id = #{userId,jdbcType=INTEGER},", |
|
|
|
"allocation_time = #{allocationTime,jdbcType=TIMESTAMP},", |
|
|
|
"allocation_time = #{allocationTime,jdbcType=TIMESTAMP},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"batch = #{batch,jdbcType=VARCHAR},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|