|
|
@ -40,21 +40,21 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_goods_price_refer (object_type, object_id, ", |
|
|
|
"insert into high_goods_price_refer (object_type, object_id, ", |
|
|
|
"price_type, old_sale_price, ", |
|
|
|
"price_type, discount_num, ", |
|
|
|
"new_sale_price, promptly_type, ", |
|
|
|
"old_sale_price, new_sale_price, ", |
|
|
|
"effective_time, invalid_time, ", |
|
|
|
"promptly_type, effective_time, ", |
|
|
|
"remark, create_time, ", |
|
|
|
"invalid_time, remark, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"create_time, operator_id, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"operator_name, `status`, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{objectType,jdbcType=INTEGER}, #{objectId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{objectType,jdbcType=INTEGER}, #{objectId,jdbcType=BIGINT}, ", |
|
|
|
"#{priceType,jdbcType=INTEGER}, #{oldSalePrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{priceType,jdbcType=INTEGER}, #{discountNum,jdbcType=DECIMAL}, ", |
|
|
|
"#{newSalePrice,jdbcType=DECIMAL}, #{promptlyType,jdbcType=BIT}, ", |
|
|
|
"#{oldSalePrice,jdbcType=DECIMAL}, #{newSalePrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{effectiveTime,jdbcType=TIMESTAMP}, #{invalidTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{promptlyType,jdbcType=BIT}, #{effectiveTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{invalidTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighGoodsPriceRefer record); |
|
|
|
int insert(HighGoodsPriceRefer record); |
|
|
@ -69,6 +69,7 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="price_type", property="priceType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="price_type", property="priceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="discount_num", property="discountNum", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="old_sale_price", property="oldSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="old_sale_price", property="oldSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="new_sale_price", property="newSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="new_sale_price", property="newSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="promptly_type", property="promptlyType", jdbcType=JdbcType.BIT), |
|
|
|
@Result(column="promptly_type", property="promptlyType", jdbcType=JdbcType.BIT), |
|
|
@ -87,9 +88,9 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, object_type, object_id, price_type, old_sale_price, new_sale_price, promptly_type, ", |
|
|
|
"id, object_type, object_id, price_type, discount_num, old_sale_price, new_sale_price, ", |
|
|
|
"effective_time, invalid_time, remark, create_time, operator_id, operator_name, ", |
|
|
|
"promptly_type, effective_time, invalid_time, remark, create_time, operator_id, ", |
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
"operator_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_goods_price_refer", |
|
|
|
"from high_goods_price_refer", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -98,6 +99,7 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="price_type", property="priceType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="price_type", property="priceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="discount_num", property="discountNum", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="old_sale_price", property="oldSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="old_sale_price", property="oldSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="new_sale_price", property="newSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="new_sale_price", property="newSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="promptly_type", property="promptlyType", jdbcType=JdbcType.BIT), |
|
|
|
@Result(column="promptly_type", property="promptlyType", jdbcType=JdbcType.BIT), |
|
|
@ -128,6 +130,7 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
"set object_type = #{objectType,jdbcType=INTEGER},", |
|
|
|
"set object_type = #{objectType,jdbcType=INTEGER},", |
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
"price_type = #{priceType,jdbcType=INTEGER},", |
|
|
|
"price_type = #{priceType,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"discount_num = #{discountNum,jdbcType=DECIMAL},", |
|
|
|
"old_sale_price = #{oldSalePrice,jdbcType=DECIMAL},", |
|
|
|
"old_sale_price = #{oldSalePrice,jdbcType=DECIMAL},", |
|
|
|
"new_sale_price = #{newSalePrice,jdbcType=DECIMAL},", |
|
|
|
"new_sale_price = #{newSalePrice,jdbcType=DECIMAL},", |
|
|
|
"promptly_type = #{promptlyType,jdbcType=BIT},", |
|
|
|
"promptly_type = #{promptlyType,jdbcType=BIT},", |
|
|
|