From 7155a285eae0ab28a04a96bce3a5e47fdbf5c502 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Mon, 15 Jul 2024 17:49:35 +0800 Subject: [PATCH] 1 --- .../java/com/hfkj/dao/GoodsTypeMapper.java | 14 +-- .../com/hfkj/dao/GoodsTypeSqlProvider.java | 28 +++--- .../main/java/com/hfkj/entity/GoodsType.java | 30 +++--- .../com/hfkj/entity/GoodsTypeExample.java | 96 +++++++++---------- 4 files changed, 84 insertions(+), 84 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/GoodsTypeMapper.java b/service/src/main/java/com/hfkj/dao/GoodsTypeMapper.java index d2e9289..152f8ba 100644 --- a/service/src/main/java/com/hfkj/dao/GoodsTypeMapper.java +++ b/service/src/main/java/com/hfkj/dao/GoodsTypeMapper.java @@ -42,13 +42,13 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { "insert into goods_type (parent_id, title, ", "business_type, img_url, ", "create_time, update_time, ", - "`status`, sort, op_id, ", + "sort, `status`, op_id, ", "op_name, ext_1, ext_2, ", "ext_3)", "values (#{parentId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, ", "#{businessType,jdbcType=INTEGER}, #{imgUrl,jdbcType=VARCHAR}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", - "#{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{opId,jdbcType=BIGINT}, ", + "#{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{opId,jdbcType=BIGINT}, ", "#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{ext3,jdbcType=VARCHAR})" }) @@ -68,8 +68,8 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { @Result(column="img_url", property="imgUrl", jdbcType=JdbcType.VARCHAR), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), @Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @@ -80,8 +80,8 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { @Select({ "select", - "id, parent_id, title, business_type, img_url, create_time, update_time, `status`, ", - "sort, op_id, op_name, ext_1, ext_2, ext_3", + "id, parent_id, title, business_type, img_url, create_time, update_time, sort, ", + "`status`, op_id, op_name, ext_1, ext_2, ext_3", "from goods_type", "where id = #{id,jdbcType=BIGINT}" }) @@ -93,8 +93,8 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { @Result(column="img_url", property="imgUrl", jdbcType=JdbcType.VARCHAR), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), @Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @@ -120,8 +120,8 @@ public interface GoodsTypeMapper extends GoodsTypeMapperExt { "img_url = #{imgUrl,jdbcType=VARCHAR},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},", - "`status` = #{status,jdbcType=INTEGER},", "sort = #{sort,jdbcType=INTEGER},", + "`status` = #{status,jdbcType=INTEGER},", "op_id = #{opId,jdbcType=BIGINT},", "op_name = #{opName,jdbcType=VARCHAR},", "ext_1 = #{ext1,jdbcType=VARCHAR},", diff --git a/service/src/main/java/com/hfkj/dao/GoodsTypeSqlProvider.java b/service/src/main/java/com/hfkj/dao/GoodsTypeSqlProvider.java index 6e7a65c..e0bc018 100644 --- a/service/src/main/java/com/hfkj/dao/GoodsTypeSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/GoodsTypeSqlProvider.java @@ -52,14 +52,14 @@ public class GoodsTypeSqlProvider { sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}"); } - if (record.getStatus() != null) { - sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); - } - if (record.getSort() != null) { sql.VALUES("sort", "#{sort,jdbcType=INTEGER}"); } + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + if (record.getOpId() != null) { sql.VALUES("op_id", "#{opId,jdbcType=BIGINT}"); } @@ -96,8 +96,8 @@ public class GoodsTypeSqlProvider { sql.SELECT("img_url"); sql.SELECT("create_time"); sql.SELECT("update_time"); - sql.SELECT("`status`"); sql.SELECT("sort"); + sql.SELECT("`status`"); sql.SELECT("op_id"); sql.SELECT("op_name"); sql.SELECT("ext_1"); @@ -148,14 +148,14 @@ public class GoodsTypeSqlProvider { sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); } - if (record.getStatus() != null) { - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); - } - if (record.getSort() != null) { sql.SET("sort = #{record.sort,jdbcType=INTEGER}"); } + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + if (record.getOpId() != null) { sql.SET("op_id = #{record.opId,jdbcType=BIGINT}"); } @@ -191,8 +191,8 @@ public class GoodsTypeSqlProvider { sql.SET("img_url = #{record.imgUrl,jdbcType=VARCHAR}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); - sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("sort = #{record.sort,jdbcType=INTEGER}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("op_id = #{record.opId,jdbcType=BIGINT}"); sql.SET("op_name = #{record.opName,jdbcType=VARCHAR}"); sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); @@ -232,14 +232,14 @@ public class GoodsTypeSqlProvider { sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}"); } - if (record.getStatus() != null) { - sql.SET("`status` = #{status,jdbcType=INTEGER}"); - } - if (record.getSort() != null) { sql.SET("sort = #{sort,jdbcType=INTEGER}"); } + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + if (record.getOpId() != null) { sql.SET("op_id = #{opId,jdbcType=BIGINT}"); } diff --git a/service/src/main/java/com/hfkj/entity/GoodsType.java b/service/src/main/java/com/hfkj/entity/GoodsType.java index f2b8644..86bf429 100644 --- a/service/src/main/java/com/hfkj/entity/GoodsType.java +++ b/service/src/main/java/com/hfkj/entity/GoodsType.java @@ -49,14 +49,14 @@ public class GoodsType implements Serializable { private Date updateTime; /** - * 状态 1:正常 0 删除 + * 排序 */ - private Integer status; + private Integer sort; /** - * 排序 + * 状态 1:正常 0 删除 */ - private Integer sort; + private Integer status; /** * 操作人 @@ -141,14 +141,6 @@ public class GoodsType implements Serializable { this.updateTime = updateTime; } - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - public Integer getSort() { return sort; } @@ -157,6 +149,14 @@ public class GoodsType implements Serializable { this.sort = sort; } + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + public Long getOpId() { return opId; } @@ -216,8 +216,8 @@ public class GoodsType implements Serializable { && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) - && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getOpId() == null ? other.getOpId() == null : this.getOpId().equals(other.getOpId())) && (this.getOpName() == null ? other.getOpName() == null : this.getOpName().equals(other.getOpName())) && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) @@ -236,8 +236,8 @@ public class GoodsType implements Serializable { result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); - result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getOpId() == null) ? 0 : getOpId().hashCode()); result = prime * result + ((getOpName() == null) ? 0 : getOpName().hashCode()); result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); @@ -259,8 +259,8 @@ public class GoodsType implements Serializable { sb.append(", imgUrl=").append(imgUrl); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); - sb.append(", status=").append(status); sb.append(", sort=").append(sort); + sb.append(", status=").append(status); sb.append(", opId=").append(opId); sb.append(", opName=").append(opName); sb.append(", ext1=").append(ext1); diff --git a/service/src/main/java/com/hfkj/entity/GoodsTypeExample.java b/service/src/main/java/com/hfkj/entity/GoodsTypeExample.java index 65efde9..a0c61fe 100644 --- a/service/src/main/java/com/hfkj/entity/GoodsTypeExample.java +++ b/service/src/main/java/com/hfkj/entity/GoodsTypeExample.java @@ -565,123 +565,123 @@ public class GoodsTypeExample { return (Criteria) this; } - public Criteria andStatusIsNull() { - addCriterion("`status` is null"); + public Criteria andSortIsNull() { + addCriterion("sort is null"); return (Criteria) this; } - public Criteria andStatusIsNotNull() { - addCriterion("`status` is not null"); + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); return (Criteria) this; } - public Criteria andStatusEqualTo(Integer value) { - addCriterion("`status` =", value, "status"); + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); return (Criteria) this; } - public Criteria andStatusNotEqualTo(Integer value) { - addCriterion("`status` <>", value, "status"); + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); return (Criteria) this; } - public Criteria andStatusGreaterThan(Integer value) { - addCriterion("`status` >", value, "status"); + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); return (Criteria) this; } - public Criteria andStatusGreaterThanOrEqualTo(Integer value) { - addCriterion("`status` >=", value, "status"); + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); return (Criteria) this; } - public Criteria andStatusLessThan(Integer value) { - addCriterion("`status` <", value, "status"); + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); return (Criteria) this; } - public Criteria andStatusLessThanOrEqualTo(Integer value) { - addCriterion("`status` <=", value, "status"); + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); return (Criteria) this; } - public Criteria andStatusIn(List values) { - addCriterion("`status` in", values, "status"); + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); return (Criteria) this; } - public Criteria andStatusNotIn(List values) { - addCriterion("`status` not in", values, "status"); + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); return (Criteria) this; } - public Criteria andStatusBetween(Integer value1, Integer value2) { - addCriterion("`status` between", value1, value2, "status"); + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } - public Criteria andStatusNotBetween(Integer value1, Integer value2) { - addCriterion("`status` not between", value1, value2, "status"); + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } - public Criteria andSortIsNull() { - addCriterion("sort is null"); + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); return (Criteria) this; } - public Criteria andSortIsNotNull() { - addCriterion("sort is not null"); + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); return (Criteria) this; } - public Criteria andSortEqualTo(Integer value) { - addCriterion("sort =", value, "sort"); + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); return (Criteria) this; } - public Criteria andSortNotEqualTo(Integer value) { - addCriterion("sort <>", value, "sort"); + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); return (Criteria) this; } - public Criteria andSortGreaterThan(Integer value) { - addCriterion("sort >", value, "sort"); + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); return (Criteria) this; } - public Criteria andSortGreaterThanOrEqualTo(Integer value) { - addCriterion("sort >=", value, "sort"); + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); return (Criteria) this; } - public Criteria andSortLessThan(Integer value) { - addCriterion("sort <", value, "sort"); + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); return (Criteria) this; } - public Criteria andSortLessThanOrEqualTo(Integer value) { - addCriterion("sort <=", value, "sort"); + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); return (Criteria) this; } - public Criteria andSortIn(List values) { - addCriterion("sort in", values, "sort"); + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); return (Criteria) this; } - public Criteria andSortNotIn(List values) { - addCriterion("sort not in", values, "sort"); + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); return (Criteria) this; } - public Criteria andSortBetween(Integer value1, Integer value2) { - addCriterion("sort between", value1, value2, "sort"); + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); return (Criteria) this; } - public Criteria andSortNotBetween(Integer value1, Integer value2) { - addCriterion("sort not between", value1, value2, "sort"); + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); return (Criteria) this; }