|
|
|
@ -39,12 +39,14 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_goods_type (title, user_service, ", |
|
|
|
|
"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 (#{title,jdbcType=VARCHAR}, #{userService,jdbcType=VARCHAR}, ", |
|
|
|
|
"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}, ", |
|
|
|
@ -60,7 +62,9 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
|
@SelectProvider(type=HighGoodsTypeSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@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), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -76,14 +80,16 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, title, user_service, img, created_user_id, created_time, updated_user_id, ", |
|
|
|
|
"updated_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"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", |
|
|
|
|
"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="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -108,7 +114,9 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update high_goods_type", |
|
|
|
|
"set title = #{title,jdbcType=VARCHAR},", |
|
|
|
|
"set parent_id = #{parentId,jdbcType=INTEGER},", |
|
|
|
|
"title = #{title,jdbcType=VARCHAR},", |
|
|
|
|
"business_type = #{businessType,jdbcType=INTEGER},", |
|
|
|
|
"user_service = #{userService,jdbcType=VARCHAR},", |
|
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
|
"created_user_id = #{createdUserId,jdbcType=INTEGER},", |
|
|
|
|