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