|
|
@ -39,12 +39,14 @@ public interface HighDiscountPackageDeliverMapper extends HighDiscountPackageDel |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_discount_package_deliver (serial_number, package_id, ", |
|
|
|
"insert into high_discount_package_deliver (source_type, source_id, ", |
|
|
|
|
|
|
|
"package_id, serial_number, ", |
|
|
|
"package_name, create_time, ", |
|
|
|
"package_name, create_time, ", |
|
|
|
"`status`, op_user_id, ", |
|
|
|
"`status`, op_user_id, ", |
|
|
|
"op_user_name, ext_1, ", |
|
|
|
"op_user_name, ext_1, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{serialNumber,jdbcType=VARCHAR}, #{packageId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{sourceType,jdbcType=INTEGER}, #{sourceId,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{packageId,jdbcType=BIGINT}, #{serialNumber,jdbcType=VARCHAR}, ", |
|
|
|
"#{packageName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{packageName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{opUserId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{opUserId,jdbcType=BIGINT}, ", |
|
|
|
"#{opUserName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{opUserName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
@ -60,8 +62,10 @@ public interface HighDiscountPackageDeliverMapper extends HighDiscountPackageDel |
|
|
|
@SelectProvider(type=HighDiscountPackageDeliverSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=HighDiscountPackageDeliverSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="source_type", property="sourceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="package_id", property="packageId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="package_id", property="packageId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="package_name", property="packageName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="package_name", property="packageName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
@ -75,15 +79,17 @@ public interface HighDiscountPackageDeliverMapper extends HighDiscountPackageDel |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, serial_number, package_id, package_name, create_time, `status`, op_user_id, ", |
|
|
|
"id, source_type, source_id, package_id, serial_number, package_name, create_time, ", |
|
|
|
"op_user_name, ext_1, ext_2, ext_3", |
|
|
|
"`status`, op_user_id, op_user_name, ext_1, ext_2, ext_3", |
|
|
|
"from high_discount_package_deliver", |
|
|
|
"from high_discount_package_deliver", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="source_type", property="sourceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="package_id", property="packageId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="package_id", property="packageId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="package_name", property="packageName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="package_name", property="packageName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
@ -106,8 +112,10 @@ public interface HighDiscountPackageDeliverMapper extends HighDiscountPackageDel |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_discount_package_deliver", |
|
|
|
"update high_discount_package_deliver", |
|
|
|
"set serial_number = #{serialNumber,jdbcType=VARCHAR},", |
|
|
|
"set source_type = #{sourceType,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"source_id = #{sourceId,jdbcType=VARCHAR},", |
|
|
|
"package_id = #{packageId,jdbcType=BIGINT},", |
|
|
|
"package_id = #{packageId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"serial_number = #{serialNumber,jdbcType=VARCHAR},", |
|
|
|
"package_name = #{packageName,jdbcType=VARCHAR},", |
|
|
|
"package_name = #{packageName,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|