袁野 4 months ago committed by yuanye
parent 0adf70f641
commit 977f2cc249
  1. 21
      service/src/main/java/com/hfkj/dao/GoodsJumpMapper.java
  2. 14
      service/src/main/java/com/hfkj/dao/GoodsJumpSqlProvider.java
  3. 16
      service/src/main/java/com/hfkj/entity/GoodsJump.java
  4. 60
      service/src/main/java/com/hfkj/entity/GoodsJumpExample.java

@ -40,15 +40,15 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt {
@Insert({ @Insert({
"insert into goods_jump (specs_id, btn_name, ", "insert into goods_jump (specs_id, btn_name, ",
"`type`, jump_type, ", "jump_type, jump_url, ",
"jump_url, appid, ", "appid, create_time, ",
"create_time, update_time, ", "update_time, ext_1, ",
"ext_1, ext_2, ext_3)", "ext_2, ext_3)",
"values (#{specsId,jdbcType=BIGINT}, #{btnName,jdbcType=VARCHAR}, ", "values (#{specsId,jdbcType=BIGINT}, #{btnName,jdbcType=VARCHAR}, ",
"#{type,jdbcType=INTEGER}, #{jumpType,jdbcType=INTEGER}, ", "#{jumpType,jdbcType=INTEGER}, #{jumpUrl,jdbcType=VARCHAR}, ",
"#{jumpUrl,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, ", "#{appid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(GoodsJump record); 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="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT), @Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT),
@Result(column="btn_name", property="btnName", jdbcType=JdbcType.VARCHAR), @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_type", property="jumpType", jdbcType=JdbcType.INTEGER),
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), @Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR),
@Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), @Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR),
@ -76,7 +75,7 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt {
@Select({ @Select({
"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", "ext_1, ext_2, ext_3",
"from goods_jump", "from goods_jump",
"where id = #{id,jdbcType=BIGINT}" "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="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT), @Result(column="specs_id", property="specsId", jdbcType=JdbcType.BIGINT),
@Result(column="btn_name", property="btnName", jdbcType=JdbcType.VARCHAR), @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_type", property="jumpType", jdbcType=JdbcType.INTEGER),
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), @Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR),
@Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), @Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR),
@ -110,7 +108,6 @@ public interface GoodsJumpMapper extends GoodsJumpMapperExt {
"update goods_jump", "update goods_jump",
"set specs_id = #{specsId,jdbcType=BIGINT},", "set specs_id = #{specsId,jdbcType=BIGINT},",
"btn_name = #{btnName,jdbcType=VARCHAR},", "btn_name = #{btnName,jdbcType=VARCHAR},",
"`type` = #{type,jdbcType=INTEGER},",
"jump_type = #{jumpType,jdbcType=INTEGER},", "jump_type = #{jumpType,jdbcType=INTEGER},",
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", "jump_url = #{jumpUrl,jdbcType=VARCHAR},",
"appid = #{appid,jdbcType=VARCHAR},", "appid = #{appid,jdbcType=VARCHAR},",

@ -36,10 +36,6 @@ public class GoodsJumpSqlProvider {
sql.VALUES("btn_name", "#{btnName,jdbcType=VARCHAR}"); sql.VALUES("btn_name", "#{btnName,jdbcType=VARCHAR}");
} }
if (record.getType() != null) {
sql.VALUES("`type`", "#{type,jdbcType=INTEGER}");
}
if (record.getJumpType() != null) { if (record.getJumpType() != null) {
sql.VALUES("jump_type", "#{jumpType,jdbcType=INTEGER}"); sql.VALUES("jump_type", "#{jumpType,jdbcType=INTEGER}");
} }
@ -84,7 +80,6 @@ public class GoodsJumpSqlProvider {
} }
sql.SELECT("specs_id"); sql.SELECT("specs_id");
sql.SELECT("btn_name"); sql.SELECT("btn_name");
sql.SELECT("`type`");
sql.SELECT("jump_type"); sql.SELECT("jump_type");
sql.SELECT("jump_url"); sql.SELECT("jump_url");
sql.SELECT("appid"); sql.SELECT("appid");
@ -122,10 +117,6 @@ public class GoodsJumpSqlProvider {
sql.SET("btn_name = #{record.btnName,jdbcType=VARCHAR}"); sql.SET("btn_name = #{record.btnName,jdbcType=VARCHAR}");
} }
if (record.getType() != null) {
sql.SET("`type` = #{record.type,jdbcType=INTEGER}");
}
if (record.getJumpType() != null) { if (record.getJumpType() != null) {
sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}"); sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}");
} }
@ -169,7 +160,6 @@ public class GoodsJumpSqlProvider {
sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("specs_id = #{record.specsId,jdbcType=BIGINT}"); sql.SET("specs_id = #{record.specsId,jdbcType=BIGINT}");
sql.SET("btn_name = #{record.btnName,jdbcType=VARCHAR}"); 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_type = #{record.jumpType,jdbcType=INTEGER}");
sql.SET("jump_url = #{record.jumpUrl,jdbcType=VARCHAR}"); sql.SET("jump_url = #{record.jumpUrl,jdbcType=VARCHAR}");
sql.SET("appid = #{record.appid,jdbcType=VARCHAR}"); sql.SET("appid = #{record.appid,jdbcType=VARCHAR}");
@ -196,10 +186,6 @@ public class GoodsJumpSqlProvider {
sql.SET("btn_name = #{btnName,jdbcType=VARCHAR}"); sql.SET("btn_name = #{btnName,jdbcType=VARCHAR}");
} }
if (record.getType() != null) {
sql.SET("`type` = #{type,jdbcType=INTEGER}");
}
if (record.getJumpType() != null) { if (record.getJumpType() != null) {
sql.SET("jump_type = #{jumpType,jdbcType=INTEGER}"); sql.SET("jump_type = #{jumpType,jdbcType=INTEGER}");
} }

@ -28,11 +28,6 @@ public class GoodsJump implements Serializable {
*/ */
private String btnName; private String btnName;
/**
* 类型 1:内部虚拟商品 2:外部虚拟产品
*/
private Integer type;
/** /**
* 跳转类型1.小程序 2.h5 * 跳转类型1.小程序 2.h5
*/ */
@ -90,14 +85,6 @@ public class GoodsJump implements Serializable {
this.btnName = btnName; this.btnName = btnName;
} }
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getJumpType() { public Integer getJumpType() {
return jumpType; return jumpType;
} }
@ -177,7 +164,6 @@ public class GoodsJump implements Serializable {
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getSpecsId() == null ? other.getSpecsId() == null : this.getSpecsId().equals(other.getSpecsId())) && (this.getSpecsId() == null ? other.getSpecsId() == null : this.getSpecsId().equals(other.getSpecsId()))
&& (this.getBtnName() == null ? other.getBtnName() == null : this.getBtnName().equals(other.getBtnName())) && (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.getJumpType() == null ? other.getJumpType() == null : this.getJumpType().equals(other.getJumpType()))
&& (this.getJumpUrl() == null ? other.getJumpUrl() == null : this.getJumpUrl().equals(other.getJumpUrl())) && (this.getJumpUrl() == null ? other.getJumpUrl() == null : this.getJumpUrl().equals(other.getJumpUrl()))
&& (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid())) && (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 + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getSpecsId() == null) ? 0 : getSpecsId().hashCode()); result = prime * result + ((getSpecsId() == null) ? 0 : getSpecsId().hashCode());
result = prime * result + ((getBtnName() == null) ? 0 : getBtnName().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 + ((getJumpType() == null) ? 0 : getJumpType().hashCode());
result = prime * result + ((getJumpUrl() == null) ? 0 : getJumpUrl().hashCode()); result = prime * result + ((getJumpUrl() == null) ? 0 : getJumpUrl().hashCode());
result = prime * result + ((getAppid() == null) ? 0 : getAppid().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(", id=").append(id);
sb.append(", specsId=").append(specsId); sb.append(", specsId=").append(specsId);
sb.append(", btnName=").append(btnName); sb.append(", btnName=").append(btnName);
sb.append(", type=").append(type);
sb.append(", jumpType=").append(jumpType); sb.append(", jumpType=").append(jumpType);
sb.append(", jumpUrl=").append(jumpUrl); sb.append(", jumpUrl=").append(jumpUrl);
sb.append(", appid=").append(appid); sb.append(", appid=").append(appid);

@ -315,66 +315,6 @@ public class GoodsJumpExample {
return (Criteria) this; 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<Integer> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> 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() { public Criteria andJumpTypeIsNull() {
addCriterion("jump_type is null"); addCriterion("jump_type is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save