|
|
|
@ -42,17 +42,19 @@ public interface GoodsSpecsMapper extends GoodsSpecsMapperExt { |
|
|
|
|
"insert into goods_specs (goods_id, third_id, ", |
|
|
|
|
"`name`, pur_limit, ", |
|
|
|
|
"sale_price, original_price, ", |
|
|
|
|
"stock, show_img, ", |
|
|
|
|
"sales_end_time, `status`, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"third_price, stock, ", |
|
|
|
|
"show_img, sales_end_time, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{goodsId,jdbcType=BIGINT}, #{thirdId,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{name,jdbcType=VARCHAR}, #{purLimit,jdbcType=INTEGER}, ", |
|
|
|
|
"#{salePrice,jdbcType=DECIMAL}, #{originalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{stock,jdbcType=INTEGER}, #{showImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{thirdPrice,jdbcType=DECIMAL}, #{stock,jdbcType=INTEGER}, ", |
|
|
|
|
"#{showImg,jdbcType=VARCHAR}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(GoodsSpecs record); |
|
|
|
@ -70,6 +72,7 @@ public interface GoodsSpecsMapper extends GoodsSpecsMapperExt { |
|
|
|
|
@Result(column="pur_limit", property="purLimit", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="sale_price", property="salePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="third_price", property="thirdPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="show_img", property="showImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -84,9 +87,9 @@ public interface GoodsSpecsMapper extends GoodsSpecsMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, goods_id, third_id, `name`, pur_limit, sale_price, original_price, stock, ", |
|
|
|
|
"show_img, sales_end_time, `status`, create_time, update_time, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"id, goods_id, third_id, `name`, pur_limit, sale_price, original_price, third_price, ", |
|
|
|
|
"stock, show_img, sales_end_time, `status`, create_time, update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from goods_specs", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -98,6 +101,7 @@ public interface GoodsSpecsMapper extends GoodsSpecsMapperExt { |
|
|
|
|
@Result(column="pur_limit", property="purLimit", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="sale_price", property="salePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="third_price", property="thirdPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="show_img", property="showImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -127,6 +131,7 @@ public interface GoodsSpecsMapper extends GoodsSpecsMapperExt { |
|
|
|
|
"pur_limit = #{purLimit,jdbcType=INTEGER},", |
|
|
|
|
"sale_price = #{salePrice,jdbcType=DECIMAL},", |
|
|
|
|
"original_price = #{originalPrice,jdbcType=DECIMAL},", |
|
|
|
|
"third_price = #{thirdPrice,jdbcType=DECIMAL},", |
|
|
|
|
"stock = #{stock,jdbcType=INTEGER},", |
|
|
|
|
"show_img = #{showImg,jdbcType=VARCHAR},", |
|
|
|
|
"sales_end_time = #{salesEndTime,jdbcType=TIMESTAMP},", |
|
|
|
|