|
|
@ -40,17 +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, ", |
|
|
|
"new_sale_price, promptly_type, ", |
|
|
|
"new_sale_price, promptly_type, ", |
|
|
|
"effective_time, remark, ", |
|
|
|
"effective_time, invalid_time, ", |
|
|
|
"create_time, operator_id, ", |
|
|
|
"remark, create_time, ", |
|
|
|
"operator_name, `status`, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, 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}, ", |
|
|
|
"#{newSalePrice,jdbcType=DECIMAL}, #{promptlyType,jdbcType=BIT}, ", |
|
|
|
"#{newSalePrice,jdbcType=DECIMAL}, #{promptlyType,jdbcType=BIT}, ", |
|
|
|
"#{effectiveTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
"#{effectiveTime,jdbcType=TIMESTAMP}, #{invalidTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{status,jdbcType=INTEGER}, #{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); |
|
|
@ -64,9 +68,12 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="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), |
|
|
|
@Result(column="effective_time", property="effectiveTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="effective_time", property="effectiveTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="invalid_time", property="invalidTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
@ -80,8 +87,9 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, object_type, object_id, new_sale_price, promptly_type, effective_time, remark, ", |
|
|
|
"id, object_type, object_id, price_type, old_sale_price, new_sale_price, promptly_type, ", |
|
|
|
"create_time, operator_id, operator_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"effective_time, invalid_time, remark, create_time, operator_id, 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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -89,9 +97,12 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="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), |
|
|
|
@Result(column="effective_time", property="effectiveTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="effective_time", property="effectiveTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="invalid_time", property="invalidTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
@ -116,9 +127,12 @@ public interface HighGoodsPriceReferMapper extends HighGoodsPriceReferMapperExt |
|
|
|
"update high_goods_price_refer", |
|
|
|
"update high_goods_price_refer", |
|
|
|
"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},", |
|
|
|
|
|
|
|
"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},", |
|
|
|
"effective_time = #{effectiveTime,jdbcType=TIMESTAMP},", |
|
|
|
"effective_time = #{effectiveTime,jdbcType=TIMESTAMP},", |
|
|
|
|
|
|
|
"invalid_time = #{invalidTime,jdbcType=TIMESTAMP},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|