From 9362595ee98e9180a0478cbb1f2178d00c2e5539 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Thu, 1 Aug 2024 11:00:04 +0800 Subject: [PATCH] 1 --- .../java/com/hfkj/dao/GoodsJumpMapper.java | 21 +++---- .../com/hfkj/dao/GoodsJumpSqlProvider.java | 14 ----- .../main/java/com/hfkj/entity/GoodsJump.java | 16 ----- .../com/hfkj/entity/GoodsJumpExample.java | 60 ------------------- 4 files changed, 9 insertions(+), 102 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/GoodsJumpMapper.java b/service/src/main/java/com/hfkj/dao/GoodsJumpMapper.java index 2f692de..7301de2 100644 --- a/service/src/main/java/com/hfkj/dao/GoodsJumpMapper.java +++ b/service/src/main/java/com/hfkj/dao/GoodsJumpMapper.java @@ -40,15 +40,15 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { @Insert({ "insert into goods_jump (specs_id, btn_name, ", - "`type`, jump_type, ", - "jump_url, appid, ", - "create_time, update_time, ", - "ext_1, ext_2, ext_3)", + "jump_type, jump_url, ", + "appid, create_time, ", + "update_time, ext_1, ", + "ext_2, ext_3)", "values (#{specsId,jdbcType=BIGINT}, #{btnName,jdbcType=VARCHAR}, ", - "#{type,jdbcType=INTEGER}, #{jumpType,jdbcType=INTEGER}, ", - "#{jumpUrl,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, ", - "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", - "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" + "#{jumpType,jdbcType=INTEGER}, #{jumpUrl,jdbcType=VARCHAR}, ", + "#{appid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", + "#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", + "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) @Options(useGeneratedKeys=true,keyProperty="id") int insert(GoodsJump record); @@ -62,7 +62,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT), @Result(column="btn_name", property="btnName", jdbcType=JdbcType.VARCHAR), - @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), @Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), @Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), @@ -76,7 +75,7 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { @Select({ "select", - "id, specs_id, btn_name, `type`, jump_type, jump_url, appid, create_time, update_time, ", + "id, specs_id, btn_name, jump_type, jump_url, appid, create_time, update_time, ", "ext_1, ext_2, ext_3", "from goods_jump", "where id = #{id,jdbcType=BIGINT}" @@ -85,7 +84,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT), @Result(column="btn_name", property="btnName", jdbcType=JdbcType.VARCHAR), - @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), @Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), @Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), @Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), @@ -110,7 +108,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt { "update goods_jump", "set specs_id = #{specsId,jdbcType=BIGINT},", "btn_name = #{btnName,jdbcType=VARCHAR},", - "`type` = #{type,jdbcType=INTEGER},", "jump_type = #{jumpType,jdbcType=INTEGER},", "jump_url = #{jumpUrl,jdbcType=VARCHAR},", "appid = #{appid,jdbcType=VARCHAR},", diff --git a/service/src/main/java/com/hfkj/dao/GoodsJumpSqlProvider.java b/service/src/main/java/com/hfkj/dao/GoodsJumpSqlProvider.java index 6145bb0..4b9afca 100644 --- a/service/src/main/java/com/hfkj/dao/GoodsJumpSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/GoodsJumpSqlProvider.java @@ -36,10 +36,6 @@ public class GoodsJumpSqlProvider { sql.VALUES("btn_name", "#{btnName,jdbcType=VARCHAR}"); } - if (record.getType() != null) { - sql.VALUES("`type`", "#{type,jdbcType=INTEGER}"); - } - if (record.getJumpType() != null) { sql.VALUES("jump_type", "#{jumpType,jdbcType=INTEGER}"); } @@ -84,7 +80,6 @@ public class GoodsJumpSqlProvider { } sql.SELECT("specs_id"); sql.SELECT("btn_name"); - sql.SELECT("`type`"); sql.SELECT("jump_type"); sql.SELECT("jump_url"); sql.SELECT("appid"); @@ -122,10 +117,6 @@ public class GoodsJumpSqlProvider { sql.SET("btn_name = #{record.btnName,jdbcType=VARCHAR}"); } - if (record.getType() != null) { - sql.SET("`type` = #{record.type,jdbcType=INTEGER}"); - } - if (record.getJumpType() != null) { sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}"); } @@ -169,7 +160,6 @@ public class GoodsJumpSqlProvider { sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("specs_id = #{record.specsId,jdbcType=BIGINT}"); sql.SET("btn_name = #{record.btnName,jdbcType=VARCHAR}"); - sql.SET("`type` = #{record.type,jdbcType=INTEGER}"); sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}"); sql.SET("jump_url = #{record.jumpUrl,jdbcType=VARCHAR}"); sql.SET("appid = #{record.appid,jdbcType=VARCHAR}"); @@ -196,10 +186,6 @@ public class GoodsJumpSqlProvider { sql.SET("btn_name = #{btnName,jdbcType=VARCHAR}"); } - if (record.getType() != null) { - sql.SET("`type` = #{type,jdbcType=INTEGER}"); - } - if (record.getJumpType() != null) { sql.SET("jump_type = #{jumpType,jdbcType=INTEGER}"); } diff --git a/service/src/main/java/com/hfkj/entity/GoodsJump.java b/service/src/main/java/com/hfkj/entity/GoodsJump.java index 83fe67a..5690405 100644 --- a/service/src/main/java/com/hfkj/entity/GoodsJump.java +++ b/service/src/main/java/com/hfkj/entity/GoodsJump.java @@ -28,11 +28,6 @@ public class GoodsJump implements Serializable { */ private String btnName; - /** - * 类型 1:内部虚拟商品 2:外部虚拟产品 - */ - private Integer type; - /** * 跳转类型:1.小程序 2.h5 */ @@ -90,14 +85,6 @@ public class GoodsJump implements Serializable { this.btnName = btnName; } - public Integer getType() { - return type; - } - - public void setType(Integer type) { - this.type = type; - } - public Integer getJumpType() { return jumpType; } @@ -177,7 +164,6 @@ public class GoodsJump implements Serializable { return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getSpecsId() == null ? other.getSpecsId() == null : this.getSpecsId().equals(other.getSpecsId())) && (this.getBtnName() == null ? other.getBtnName() == null : this.getBtnName().equals(other.getBtnName())) - && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType())) && (this.getJumpType() == null ? other.getJumpType() == null : this.getJumpType().equals(other.getJumpType())) && (this.getJumpUrl() == null ? other.getJumpUrl() == null : this.getJumpUrl().equals(other.getJumpUrl())) && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid())) @@ -195,7 +181,6 @@ public class GoodsJump implements Serializable { result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getSpecsId() == null) ? 0 : getSpecsId().hashCode()); result = prime * result + ((getBtnName() == null) ? 0 : getBtnName().hashCode()); - result = prime * result + ((getType() == null) ? 0 : getType().hashCode()); result = prime * result + ((getJumpType() == null) ? 0 : getJumpType().hashCode()); result = prime * result + ((getJumpUrl() == null) ? 0 : getJumpUrl().hashCode()); result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode()); @@ -216,7 +201,6 @@ public class GoodsJump implements Serializable { sb.append(", id=").append(id); sb.append(", specsId=").append(specsId); sb.append(", btnName=").append(btnName); - sb.append(", type=").append(type); sb.append(", jumpType=").append(jumpType); sb.append(", jumpUrl=").append(jumpUrl); sb.append(", appid=").append(appid); diff --git a/service/src/main/java/com/hfkj/entity/GoodsJumpExample.java b/service/src/main/java/com/hfkj/entity/GoodsJumpExample.java index 1d66bb8..dd5307b 100644 --- a/service/src/main/java/com/hfkj/entity/GoodsJumpExample.java +++ b/service/src/main/java/com/hfkj/entity/GoodsJumpExample.java @@ -315,66 +315,6 @@ public class GoodsJumpExample { return (Criteria) this; } - public Criteria andTypeIsNull() { - addCriterion("`type` is null"); - return (Criteria) this; - } - - public Criteria andTypeIsNotNull() { - addCriterion("`type` is not null"); - return (Criteria) this; - } - - public Criteria andTypeEqualTo(Integer value) { - addCriterion("`type` =", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotEqualTo(Integer value) { - addCriterion("`type` <>", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThan(Integer value) { - addCriterion("`type` >", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThanOrEqualTo(Integer value) { - addCriterion("`type` >=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThan(Integer value) { - addCriterion("`type` <", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThanOrEqualTo(Integer value) { - addCriterion("`type` <=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeIn(List values) { - addCriterion("`type` in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotIn(List values) { - addCriterion("`type` not in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeBetween(Integer value1, Integer value2) { - addCriterion("`type` between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotBetween(Integer value1, Integer value2) { - addCriterion("`type` not between", value1, value2, "type"); - return (Criteria) this; - } - public Criteria andJumpTypeIsNull() { addCriterion("jump_type is null"); return (Criteria) this;