|
|
|
@ -39,14 +39,12 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into api_product_config (product_id, product_type, ", |
|
|
|
|
"product_name, merchants_id, ", |
|
|
|
|
"insert into api_product_config (product_id, merchants_id, ", |
|
|
|
|
"discount, operator_id, ", |
|
|
|
|
"operator_name, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{productId,jdbcType=BIGINT}, #{productType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{productName,jdbcType=VARCHAR}, #{merchantsId,jdbcType=BIGINT}, ", |
|
|
|
|
"values (#{productId,jdbcType=BIGINT}, #{merchantsId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{discount,jdbcType=DECIMAL}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
@ -63,8 +61,6 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="product_name", property="productName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="merchants_id", property="merchantsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount", property="discount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -80,16 +76,14 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, product_id, product_type, product_name, merchants_id, discount, operator_id, ", |
|
|
|
|
"operator_name, create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"id, product_id, merchants_id, discount, operator_id, operator_name, create_time, ", |
|
|
|
|
"update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from api_product_config", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="product_name", property="productName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="merchants_id", property="merchantsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount", property="discount", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -115,8 +109,6 @@ public interface ApiProductConfigMapper extends ApiProductConfigMapperExt { |
|
|
|
|
@Update({ |
|
|
|
|
"update api_product_config", |
|
|
|
|
"set product_id = #{productId,jdbcType=BIGINT},", |
|
|
|
|
"product_type = #{productType,jdbcType=INTEGER},", |
|
|
|
|
"product_name = #{productName,jdbcType=VARCHAR},", |
|
|
|
|
"merchants_id = #{merchantsId,jdbcType=BIGINT},", |
|
|
|
|
"discount = #{discount,jdbcType=DECIMAL},", |
|
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
|