|
|
|
@ -39,20 +39,22 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into goods_detail (goods_type, `name`, ", |
|
|
|
|
"list_describe, goods_describe, ", |
|
|
|
|
"list_img, banner_img, ", |
|
|
|
|
"detail_img, `status`, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{goodsType,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{listDescribe,jdbcType=VARCHAR}, #{goodsDescribe,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{listImg,jdbcType=VARCHAR}, #{bannerImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{detailImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into goods_detail (company_id, goods_type, ", |
|
|
|
|
"`name`, list_describe, ", |
|
|
|
|
"goods_describe, list_img, ", |
|
|
|
|
"banner_img, detail_img, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, op_id, ", |
|
|
|
|
"op_name, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{goodsType,jdbcType=BIGINT}, ", |
|
|
|
|
"#{name,jdbcType=VARCHAR}, #{listDescribe,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsDescribe,jdbcType=VARCHAR}, #{listImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{bannerImg,jdbcType=VARCHAR}, #{detailImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(GoodsDetail record); |
|
|
|
@ -64,6 +66,7 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt { |
|
|
|
|
@SelectProvider(type=GoodsDetailSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="list_describe", property="listDescribe", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -84,14 +87,15 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, goods_type, `name`, list_describe, goods_describe, list_img, banner_img, ", |
|
|
|
|
"detail_img, `status`, create_time, update_time, op_id, op_name, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"id, company_id, goods_type, `name`, list_describe, goods_describe, list_img, ", |
|
|
|
|
"banner_img, detail_img, `status`, create_time, update_time, op_id, op_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"from goods_detail", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="list_describe", property="listDescribe", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -121,7 +125,8 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update goods_detail", |
|
|
|
|
"set goods_type = #{goodsType,jdbcType=BIGINT},", |
|
|
|
|
"set company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
|
"goods_type = #{goodsType,jdbcType=BIGINT},", |
|
|
|
|
"`name` = #{name,jdbcType=VARCHAR},", |
|
|
|
|
"list_describe = #{listDescribe,jdbcType=VARCHAR},", |
|
|
|
|
"goods_describe = #{goodsDescribe,jdbcType=VARCHAR},", |
|
|
|
|