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