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