|
|
|
@ -40,11 +40,13 @@ public interface HighDiscountPackageDiscountActualMapper extends HighDiscountPac |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_discount_package_discount_actual (agent_discount_code_id, discount_package_id, ", |
|
|
|
|
"discount_package_actual_id, created_user_id, ", |
|
|
|
|
"discount_package_actual_id, agent_id, ", |
|
|
|
|
"discount_id, created_user_id, ", |
|
|
|
|
"created_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{agentDiscountCodeId,jdbcType=BIGINT}, #{discountPackageId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{discountPackageActualId,jdbcType=INTEGER}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{discountPackageActualId,jdbcType=INTEGER}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{discountId,jdbcType=BIGINT}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createdTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
@ -61,6 +63,8 @@ public interface HighDiscountPackageDiscountActualMapper extends HighDiscountPac |
|
|
|
|
@Result(column="agent_discount_code_id", property="agentDiscountCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount_package_id", property="discountPackageId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_package_actual_id", property="discountPackageActualId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -73,7 +77,8 @@ public interface HighDiscountPackageDiscountActualMapper extends HighDiscountPac |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, agent_discount_code_id, discount_package_id, discount_package_actual_id, ", |
|
|
|
|
"created_user_id, created_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"agent_id, discount_id, created_user_id, created_time, `status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"from high_discount_package_discount_actual", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
}) |
|
|
|
@ -82,6 +87,8 @@ public interface HighDiscountPackageDiscountActualMapper extends HighDiscountPac |
|
|
|
|
@Result(column="agent_discount_code_id", property="agentDiscountCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount_package_id", property="discountPackageId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_package_actual_id", property="discountPackageActualId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -105,6 +112,8 @@ public interface HighDiscountPackageDiscountActualMapper extends HighDiscountPac |
|
|
|
|
"set agent_discount_code_id = #{agentDiscountCodeId,jdbcType=BIGINT},", |
|
|
|
|
"discount_package_id = #{discountPackageId,jdbcType=INTEGER},", |
|
|
|
|
"discount_package_actual_id = #{discountPackageActualId,jdbcType=INTEGER},", |
|
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
|
"discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
|
"created_user_id = #{createdUserId,jdbcType=INTEGER},", |
|
|
|
|
"created_time = #{createdTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|