|
|
@ -39,9 +39,10 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_msg (goods_type, goods_type_name, ", |
|
|
|
"insert into goods_msg (goods_type, third_id, ", |
|
|
|
"goods_type_parent, goods_type_parent_name, ", |
|
|
|
"goods_type_name, goods_type_parent, ", |
|
|
|
"sale_num, `type`, goods_brand_name, ", |
|
|
|
"goods_type_parent_name, sale_num, ", |
|
|
|
|
|
|
|
"`type`, goods_brand_name, ", |
|
|
|
"goods_brand, goods_label, ", |
|
|
|
"goods_brand, goods_label, ", |
|
|
|
"goods_explain, title, ", |
|
|
|
"goods_explain, title, ", |
|
|
|
"list_img, banner_img, ", |
|
|
|
"list_img, banner_img, ", |
|
|
@ -49,9 +50,10 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
"create_time, update_time, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"mer_id, mer_name, ext_1, ", |
|
|
|
"mer_id, mer_name, ext_1, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{goodsType,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{goodsType,jdbcType=BIGINT}, #{thirdId,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeParent,jdbcType=BIGINT}, #{goodsTypeParentName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsTypeParent,jdbcType=BIGINT}, ", |
|
|
|
"#{saleNum,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{goodsBrandName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeParentName,jdbcType=VARCHAR}, #{saleNum,jdbcType=INTEGER}, ", |
|
|
|
|
|
|
|
"#{type,jdbcType=INTEGER}, #{goodsBrandName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsBrand,jdbcType=BIGINT}, #{goodsLabel,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsBrand,jdbcType=BIGINT}, #{goodsLabel,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsExplain,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsExplain,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"#{listImg,jdbcType=VARCHAR}, #{bannerImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{listImg,jdbcType=VARCHAR}, #{bannerImg,jdbcType=VARCHAR}, ", |
|
|
@ -71,6 +73,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="third_id", property="thirdId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_parent", property="goodsTypeParent", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type_parent", property="goodsTypeParent", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
@ -97,7 +100,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, goods_type, goods_type_name, goods_type_parent, goods_type_parent_name, ", |
|
|
|
"id, goods_type, third_id, goods_type_name, goods_type_parent, goods_type_parent_name, ", |
|
|
|
"sale_num, `type`, goods_brand_name, goods_brand, goods_label, goods_explain, ", |
|
|
|
"sale_num, `type`, goods_brand_name, goods_brand, goods_label, goods_explain, ", |
|
|
|
"title, list_img, banner_img, detail_img, `status`, create_time, update_time, ", |
|
|
|
"title, list_img, banner_img, detail_img, `status`, create_time, update_time, ", |
|
|
|
"mer_id, mer_name, ext_1, ext_2, ext_3", |
|
|
|
"mer_id, mer_name, ext_1, ext_2, ext_3", |
|
|
@ -107,6 +110,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="third_id", property="thirdId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_parent", property="goodsTypeParent", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type_parent", property="goodsTypeParent", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
@ -143,6 +147,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update goods_msg", |
|
|
|
"update goods_msg", |
|
|
|
"set goods_type = #{goodsType,jdbcType=BIGINT},", |
|
|
|
"set goods_type = #{goodsType,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"third_id = #{thirdId,jdbcType=VARCHAR},", |
|
|
|
"goods_type_name = #{goodsTypeName,jdbcType=VARCHAR},", |
|
|
|
"goods_type_name = #{goodsTypeName,jdbcType=VARCHAR},", |
|
|
|
"goods_type_parent = #{goodsTypeParent,jdbcType=BIGINT},", |
|
|
|
"goods_type_parent = #{goodsTypeParent,jdbcType=BIGINT},", |
|
|
|
"goods_type_parent_name = #{goodsTypeParentName,jdbcType=VARCHAR},", |
|
|
|
"goods_type_parent_name = #{goodsTypeParentName,jdbcType=VARCHAR},", |
|
|
|