|
|
@ -42,13 +42,15 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { |
|
|
|
"insert into goods_type (parent_id, title, ", |
|
|
|
"insert into goods_type (parent_id, title, ", |
|
|
|
"business_type, img_url, ", |
|
|
|
"business_type, img_url, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"`status`, op_id, op_name, ", |
|
|
|
"`status`, sort, op_id, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"op_name, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{parentId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{parentId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, ", |
|
|
|
"#{businessType,jdbcType=INTEGER}, #{imgUrl,jdbcType=VARCHAR}, ", |
|
|
|
"#{businessType,jdbcType=INTEGER}, #{imgUrl,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(GoodsType record); |
|
|
|
int insert(GoodsType record); |
|
|
@ -67,6 +69,7 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -78,7 +81,7 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, parent_id, title, business_type, img_url, create_time, update_time, `status`, ", |
|
|
|
"id, parent_id, title, business_type, img_url, create_time, update_time, `status`, ", |
|
|
|
"op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
"sort, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
"from goods_type", |
|
|
|
"from goods_type", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -91,6 +94,7 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -117,6 +121,7 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"sort = #{sort,jdbcType=INTEGER},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|