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