|
|
@ -39,7 +39,8 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_msg (goods_type, child_type, ", |
|
|
|
"insert into goods_msg (goods_type, manually_code, ", |
|
|
|
|
|
|
|
"automatic_code, child_type, ", |
|
|
|
"show_type, sort, ", |
|
|
|
"show_type, sort, ", |
|
|
|
"goods_type_name, goods_type_parent, ", |
|
|
|
"goods_type_name, goods_type_parent, ", |
|
|
|
"third_id, goods_type_parent_name, ", |
|
|
|
"third_id, goods_type_parent_name, ", |
|
|
@ -51,7 +52,8 @@ 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}, #{childType,jdbcType=INTEGER}, ", |
|
|
|
"values (#{goodsType,jdbcType=BIGINT}, #{manuallyCode,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{automaticCode,jdbcType=BIGINT}, #{childType,jdbcType=INTEGER}, ", |
|
|
|
"#{showType,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, ", |
|
|
|
"#{showType,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, ", |
|
|
|
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsTypeParent,jdbcType=BIGINT}, ", |
|
|
|
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsTypeParent,jdbcType=BIGINT}, ", |
|
|
|
"#{thirdId,jdbcType=VARCHAR}, #{goodsTypeParentName,jdbcType=VARCHAR}, ", |
|
|
|
"#{thirdId,jdbcType=VARCHAR}, #{goodsTypeParentName,jdbcType=VARCHAR}, ", |
|
|
@ -75,6 +77,8 @@ 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="manually_code", property="manuallyCode", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="automatic_code", property="automaticCode", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
@ -105,16 +109,19 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, goods_type, child_type, show_type, sort, goods_type_name, goods_type_parent, ", |
|
|
|
"id, goods_type, manually_code, automatic_code, child_type, show_type, sort, ", |
|
|
|
"third_id, goods_type_parent_name, sale_num, `type`, goods_brand_name, goods_brand, ", |
|
|
|
"goods_type_name, goods_type_parent, third_id, goods_type_parent_name, sale_num, ", |
|
|
|
"goods_label, goods_explain, title, list_img, banner_img, detail_img, `status`, ", |
|
|
|
"`type`, goods_brand_name, goods_brand, goods_label, goods_explain, title, list_img, ", |
|
|
|
"create_time, update_time, mer_id, mer_name, ext_1, ext_2, ext_3", |
|
|
|
"banner_img, detail_img, `status`, create_time, update_time, mer_id, mer_name, ", |
|
|
|
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"from goods_msg", |
|
|
|
"from goods_msg", |
|
|
|
"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="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="manually_code", property="manuallyCode", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="automatic_code", property="automaticCode", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
@ -155,6 +162,8 @@ 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},", |
|
|
|
|
|
|
|
"manually_code = #{manuallyCode,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"automatic_code = #{automaticCode,jdbcType=BIGINT},", |
|
|
|
"child_type = #{childType,jdbcType=INTEGER},", |
|
|
|
"child_type = #{childType,jdbcType=INTEGER},", |
|
|
|
"show_type = #{showType,jdbcType=INTEGER},", |
|
|
|
"show_type = #{showType,jdbcType=INTEGER},", |
|
|
|
"sort = #{sort,jdbcType=INTEGER},", |
|
|
|
"sort = #{sort,jdbcType=INTEGER},", |
|
|
|