|
|
@ -42,25 +42,27 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
"insert into goods_msg (goods_type, third_id, ", |
|
|
|
"insert into goods_msg (goods_type, third_id, ", |
|
|
|
"goods_type_name, goods_type_parent, ", |
|
|
|
"goods_type_name, goods_type_parent, ", |
|
|
|
"goods_type_parent_name, sale_num, ", |
|
|
|
"goods_type_parent_name, sale_num, ", |
|
|
|
"`type`, goods_brand_name, ", |
|
|
|
"`type`, child_type, ", |
|
|
|
"goods_brand, goods_label, ", |
|
|
|
"goods_brand_name, goods_brand, ", |
|
|
|
"goods_explain, title, ", |
|
|
|
"goods_label, goods_explain, ", |
|
|
|
"list_img, banner_img, ", |
|
|
|
"title, list_img, ", |
|
|
|
"detail_img, `status`, ", |
|
|
|
"banner_img, detail_img, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"mer_id, mer_name, ext_1, ", |
|
|
|
"update_time, mer_id, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"mer_name, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{goodsType,jdbcType=BIGINT}, #{thirdId,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{goodsType,jdbcType=BIGINT}, #{thirdId,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsTypeParent,jdbcType=BIGINT}, ", |
|
|
|
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsTypeParent,jdbcType=BIGINT}, ", |
|
|
|
"#{goodsTypeParentName,jdbcType=VARCHAR}, #{saleNum,jdbcType=INTEGER}, ", |
|
|
|
"#{goodsTypeParentName,jdbcType=VARCHAR}, #{saleNum,jdbcType=INTEGER}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{goodsBrandName,jdbcType=VARCHAR}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{childType,jdbcType=INTEGER}, ", |
|
|
|
"#{goodsBrand,jdbcType=BIGINT}, #{goodsLabel,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsBrandName,jdbcType=VARCHAR}, #{goodsBrand,jdbcType=BIGINT}, ", |
|
|
|
"#{goodsExplain,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsLabel,jdbcType=VARCHAR}, #{goodsExplain,jdbcType=VARCHAR}, ", |
|
|
|
"#{listImg,jdbcType=VARCHAR}, #{bannerImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{listImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{detailImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{bannerImg,jdbcType=VARCHAR}, #{detailImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{merName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(GoodsMsg record); |
|
|
|
int insert(GoodsMsg record); |
|
|
@ -79,6 +81,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sale_num", property="saleNum", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sale_num", property="saleNum", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_brand_name", property="goodsBrandName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_brand_name", property="goodsBrandName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_brand", property="goodsBrand", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_brand", property="goodsBrand", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_label", property="goodsLabel", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_label", property="goodsLabel", jdbcType=JdbcType.VARCHAR), |
|
|
@ -101,7 +104,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, goods_type, third_id, 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`, child_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", |
|
|
|
"from goods_msg", |
|
|
|
"from goods_msg", |
|
|
@ -116,6 +119,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_type_parent_name", property="goodsTypeParentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sale_num", property="saleNum", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sale_num", property="saleNum", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_brand_name", property="goodsBrandName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_brand_name", property="goodsBrandName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_brand", property="goodsBrand", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_brand", property="goodsBrand", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_label", property="goodsLabel", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_label", property="goodsLabel", jdbcType=JdbcType.VARCHAR), |
|
|
@ -153,6 +157,7 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
"goods_type_parent_name = #{goodsTypeParentName,jdbcType=VARCHAR},", |
|
|
|
"goods_type_parent_name = #{goodsTypeParentName,jdbcType=VARCHAR},", |
|
|
|
"sale_num = #{saleNum,jdbcType=INTEGER},", |
|
|
|
"sale_num = #{saleNum,jdbcType=INTEGER},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"child_type = #{childType,jdbcType=INTEGER},", |
|
|
|
"goods_brand_name = #{goodsBrandName,jdbcType=VARCHAR},", |
|
|
|
"goods_brand_name = #{goodsBrandName,jdbcType=VARCHAR},", |
|
|
|
"goods_brand = #{goodsBrand,jdbcType=BIGINT},", |
|
|
|
"goods_brand = #{goodsBrand,jdbcType=BIGINT},", |
|
|
|
"goods_label = #{goodsLabel,jdbcType=VARCHAR},", |
|
|
|
"goods_label = #{goodsLabel,jdbcType=VARCHAR},", |
|
|
|