|
|
@ -39,18 +39,20 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_goods_type (parent_id, title, ", |
|
|
|
"insert into high_goods_type (parent_id, company_id, ", |
|
|
|
"business_type, user_service, ", |
|
|
|
"title, business_type, ", |
|
|
|
"img, created_user_id, ", |
|
|
|
"user_service, img, ", |
|
|
|
"created_time, updated_user_id, ", |
|
|
|
"created_user_id, created_time, ", |
|
|
|
"updated_time, `status`, ", |
|
|
|
"updated_user_id, updated_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"values (#{parentId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"ext_3)", |
|
|
|
"#{businessType,jdbcType=INTEGER}, #{userService,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{parentId,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{img,jdbcType=VARCHAR}, #{createdUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{businessType,jdbcType=INTEGER}, ", |
|
|
|
"#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=INTEGER}, ", |
|
|
|
"#{userService,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", |
|
|
|
"#{updatedTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighGoodsType record); |
|
|
|
int insert(HighGoodsType record); |
|
|
@ -63,6 +65,7 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), |
|
|
@ -80,14 +83,15 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, parent_id, title, business_type, user_service, img, created_user_id, created_time, ", |
|
|
|
"id, parent_id, company_id, title, business_type, user_service, img, created_user_id, ", |
|
|
|
"updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"created_time, updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_goods_type", |
|
|
|
"from high_goods_type", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), |
|
|
@ -115,6 +119,7 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_goods_type", |
|
|
|
"update high_goods_type", |
|
|
|
"set parent_id = #{parentId,jdbcType=INTEGER},", |
|
|
|
"set parent_id = #{parentId,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
"business_type = #{businessType,jdbcType=INTEGER},", |
|
|
|
"business_type = #{businessType,jdbcType=INTEGER},", |
|
|
|
"user_service = #{userService,jdbcType=VARCHAR},", |
|
|
|
"user_service = #{userService,jdbcType=VARCHAR},", |
|
|
|