|
|
@ -40,15 +40,17 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into api_product_config (product_id, merchants_id, ", |
|
|
|
"insert into api_product_config (product_id, merchants_id, ", |
|
|
|
"discount, operator_id, ", |
|
|
|
"discount, discount_price, ", |
|
|
|
"operator_name, create_time, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"update_time, `status`, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{productId,jdbcType=BIGINT}, #{merchantsId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{productId,jdbcType=BIGINT}, #{merchantsId,jdbcType=BIGINT}, ", |
|
|
|
"#{discount,jdbcType=DECIMAL}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{discount,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,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(ApiProductConfig record); |
|
|
|
int insert(ApiProductConfig record); |
|
|
@ -63,6 +65,7 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchants_id", property="merchantsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchants_id", property="merchantsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount", property="discount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount", property="discount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -76,8 +79,8 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, product_id, merchants_id, discount, operator_id, operator_name, create_time, ", |
|
|
|
"id, product_id, merchants_id, discount, discount_price, operator_id, operator_name, ", |
|
|
|
"update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from api_product_config", |
|
|
|
"from api_product_config", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -86,6 +89,7 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchants_id", property="merchantsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchants_id", property="merchantsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount", property="discount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount", property="discount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -111,6 +115,7 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
"set product_id = #{productId,jdbcType=BIGINT},", |
|
|
|
"set product_id = #{productId,jdbcType=BIGINT},", |
|
|
|
"merchants_id = #{merchantsId,jdbcType=BIGINT},", |
|
|
|
"merchants_id = #{merchantsId,jdbcType=BIGINT},", |
|
|
|
"discount = #{discount,jdbcType=DECIMAL},", |
|
|
|
"discount = #{discount,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"discount_price = #{discountPrice,jdbcType=DECIMAL},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|