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