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