袁野 5 months ago
parent 0790c5ae35
commit 020c971322
  1. 21
      service/src/main/java/com/hfkj/dao/GoodsMsgMapper.java
  2. 28
      service/src/main/java/com/hfkj/dao/GoodsMsgSqlProvider.java
  3. 32
      service/src/main/java/com/hfkj/entity/GoodsMsg.java
  4. 120
      service/src/main/java/com/hfkj/entity/GoodsMsgExample.java

@ -39,7 +39,8 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt {
int deleteByPrimaryKey(Long id);
@Insert({
"insert into goods_msg (goods_type, child_type, ",
"insert into goods_msg (goods_type, manually_code, ",
"automatic_code, child_type, ",
"show_type, sort, ",
"goods_type_name, goods_type_parent, ",
"third_id, goods_type_parent_name, ",
@ -51,7 +52,8 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt {
"create_time, update_time, ",
"mer_id, mer_name, ext_1, ",
"ext_2, ext_3)",
"values (#{goodsType,jdbcType=BIGINT}, #{childType,jdbcType=INTEGER}, ",
"values (#{goodsType,jdbcType=BIGINT}, #{manuallyCode,jdbcType=BIGINT}, ",
"#{automaticCode,jdbcType=BIGINT}, #{childType,jdbcType=INTEGER}, ",
"#{showType,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, ",
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsTypeParent,jdbcType=BIGINT}, ",
"#{thirdId,jdbcType=VARCHAR}, #{goodsTypeParentName,jdbcType=VARCHAR}, ",
@ -75,6 +77,8 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt {
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT),
@Result(column="manually_code", property="manuallyCode", jdbcType=JdbcType.BIGINT),
@Result(column="automatic_code", property="automaticCode", jdbcType=JdbcType.BIGINT),
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER),
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER),
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
@ -105,16 +109,19 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt {
@Select({
"select",
"id, goods_type, child_type, show_type, sort, goods_type_name, goods_type_parent, ",
"third_id, goods_type_parent_name, sale_num, `type`, goods_brand_name, goods_brand, ",
"goods_label, goods_explain, title, list_img, banner_img, detail_img, `status`, ",
"create_time, update_time, mer_id, mer_name, ext_1, ext_2, ext_3",
"id, goods_type, manually_code, automatic_code, child_type, show_type, sort, ",
"goods_type_name, goods_type_parent, third_id, goods_type_parent_name, sale_num, ",
"`type`, goods_brand_name, goods_brand, goods_label, goods_explain, title, list_img, ",
"banner_img, detail_img, `status`, create_time, update_time, mer_id, mer_name, ",
"ext_1, ext_2, ext_3",
"from goods_msg",
"where id = #{id,jdbcType=BIGINT}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT),
@Result(column="manually_code", property="manuallyCode", jdbcType=JdbcType.BIGINT),
@Result(column="automatic_code", property="automaticCode", jdbcType=JdbcType.BIGINT),
@Result(column="child_type", property="childType", jdbcType=JdbcType.INTEGER),
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER),
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
@ -155,6 +162,8 @@ public interface GoodsMsgMapper extends GoodsMsgMapperExt {
@Update({
"update goods_msg",
"set goods_type = #{goodsType,jdbcType=BIGINT},",
"manually_code = #{manuallyCode,jdbcType=BIGINT},",
"automatic_code = #{automaticCode,jdbcType=BIGINT},",
"child_type = #{childType,jdbcType=INTEGER},",
"show_type = #{showType,jdbcType=INTEGER},",
"sort = #{sort,jdbcType=INTEGER},",

@ -32,6 +32,14 @@ public class GoodsMsgSqlProvider {
sql.VALUES("goods_type", "#{goodsType,jdbcType=BIGINT}");
}
if (record.getManuallyCode() != null) {
sql.VALUES("manually_code", "#{manuallyCode,jdbcType=BIGINT}");
}
if (record.getAutomaticCode() != null) {
sql.VALUES("automatic_code", "#{automaticCode,jdbcType=BIGINT}");
}
if (record.getChildType() != null) {
sql.VALUES("child_type", "#{childType,jdbcType=INTEGER}");
}
@ -143,6 +151,8 @@ public class GoodsMsgSqlProvider {
sql.SELECT("id");
}
sql.SELECT("goods_type");
sql.SELECT("manually_code");
sql.SELECT("automatic_code");
sql.SELECT("child_type");
sql.SELECT("show_type");
sql.SELECT("sort");
@ -193,6 +203,14 @@ public class GoodsMsgSqlProvider {
sql.SET("goods_type = #{record.goodsType,jdbcType=BIGINT}");
}
if (record.getManuallyCode() != null) {
sql.SET("manually_code = #{record.manuallyCode,jdbcType=BIGINT}");
}
if (record.getAutomaticCode() != null) {
sql.SET("automatic_code = #{record.automaticCode,jdbcType=BIGINT}");
}
if (record.getChildType() != null) {
sql.SET("child_type = #{record.childType,jdbcType=INTEGER}");
}
@ -303,6 +321,8 @@ public class GoodsMsgSqlProvider {
sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("goods_type = #{record.goodsType,jdbcType=BIGINT}");
sql.SET("manually_code = #{record.manuallyCode,jdbcType=BIGINT}");
sql.SET("automatic_code = #{record.automaticCode,jdbcType=BIGINT}");
sql.SET("child_type = #{record.childType,jdbcType=INTEGER}");
sql.SET("show_type = #{record.showType,jdbcType=INTEGER}");
sql.SET("sort = #{record.sort,jdbcType=INTEGER}");
@ -342,6 +362,14 @@ public class GoodsMsgSqlProvider {
sql.SET("goods_type = #{goodsType,jdbcType=BIGINT}");
}
if (record.getManuallyCode() != null) {
sql.SET("manually_code = #{manuallyCode,jdbcType=BIGINT}");
}
if (record.getAutomaticCode() != null) {
sql.SET("automatic_code = #{automaticCode,jdbcType=BIGINT}");
}
if (record.getChildType() != null) {
sql.SET("child_type = #{childType,jdbcType=INTEGER}");
}

@ -23,6 +23,16 @@ public class GoodsMsg implements Serializable {
*/
private Long goodsType;
/**
* 手动编码
*/
private Long manuallyCode;
/**
* 自动编码
*/
private Long automaticCode;
/**
* 商品分类
*/
@ -163,6 +173,22 @@ public class GoodsMsg implements Serializable {
this.goodsType = goodsType;
}
public Long getManuallyCode() {
return manuallyCode;
}
public void setManuallyCode(Long manuallyCode) {
this.manuallyCode = manuallyCode;
}
public Long getAutomaticCode() {
return automaticCode;
}
public void setAutomaticCode(Long automaticCode) {
this.automaticCode = automaticCode;
}
public Integer getChildType() {
return childType;
}
@ -377,6 +403,8 @@ public class GoodsMsg implements Serializable {
GoodsMsg other = (GoodsMsg) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType()))
&& (this.getManuallyCode() == null ? other.getManuallyCode() == null : this.getManuallyCode().equals(other.getManuallyCode()))
&& (this.getAutomaticCode() == null ? other.getAutomaticCode() == null : this.getAutomaticCode().equals(other.getAutomaticCode()))
&& (this.getChildType() == null ? other.getChildType() == null : this.getChildType().equals(other.getChildType()))
&& (this.getShowType() == null ? other.getShowType() == null : this.getShowType().equals(other.getShowType()))
&& (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
@ -410,6 +438,8 @@ public class GoodsMsg implements Serializable {
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode());
result = prime * result + ((getManuallyCode() == null) ? 0 : getManuallyCode().hashCode());
result = prime * result + ((getAutomaticCode() == null) ? 0 : getAutomaticCode().hashCode());
result = prime * result + ((getChildType() == null) ? 0 : getChildType().hashCode());
result = prime * result + ((getShowType() == null) ? 0 : getShowType().hashCode());
result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
@ -446,6 +476,8 @@ public class GoodsMsg implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", goodsType=").append(goodsType);
sb.append(", manuallyCode=").append(manuallyCode);
sb.append(", automaticCode=").append(automaticCode);
sb.append(", childType=").append(childType);
sb.append(", showType=").append(showType);
sb.append(", sort=").append(sort);

@ -245,6 +245,126 @@ public class GoodsMsgExample {
return (Criteria) this;
}
public Criteria andManuallyCodeIsNull() {
addCriterion("manually_code is null");
return (Criteria) this;
}
public Criteria andManuallyCodeIsNotNull() {
addCriterion("manually_code is not null");
return (Criteria) this;
}
public Criteria andManuallyCodeEqualTo(Long value) {
addCriterion("manually_code =", value, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeNotEqualTo(Long value) {
addCriterion("manually_code <>", value, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeGreaterThan(Long value) {
addCriterion("manually_code >", value, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeGreaterThanOrEqualTo(Long value) {
addCriterion("manually_code >=", value, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeLessThan(Long value) {
addCriterion("manually_code <", value, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeLessThanOrEqualTo(Long value) {
addCriterion("manually_code <=", value, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeIn(List<Long> values) {
addCriterion("manually_code in", values, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeNotIn(List<Long> values) {
addCriterion("manually_code not in", values, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeBetween(Long value1, Long value2) {
addCriterion("manually_code between", value1, value2, "manuallyCode");
return (Criteria) this;
}
public Criteria andManuallyCodeNotBetween(Long value1, Long value2) {
addCriterion("manually_code not between", value1, value2, "manuallyCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeIsNull() {
addCriterion("automatic_code is null");
return (Criteria) this;
}
public Criteria andAutomaticCodeIsNotNull() {
addCriterion("automatic_code is not null");
return (Criteria) this;
}
public Criteria andAutomaticCodeEqualTo(Long value) {
addCriterion("automatic_code =", value, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeNotEqualTo(Long value) {
addCriterion("automatic_code <>", value, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeGreaterThan(Long value) {
addCriterion("automatic_code >", value, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeGreaterThanOrEqualTo(Long value) {
addCriterion("automatic_code >=", value, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeLessThan(Long value) {
addCriterion("automatic_code <", value, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeLessThanOrEqualTo(Long value) {
addCriterion("automatic_code <=", value, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeIn(List<Long> values) {
addCriterion("automatic_code in", values, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeNotIn(List<Long> values) {
addCriterion("automatic_code not in", values, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeBetween(Long value1, Long value2) {
addCriterion("automatic_code between", value1, value2, "automaticCode");
return (Criteria) this;
}
public Criteria andAutomaticCodeNotBetween(Long value1, Long value2) {
addCriterion("automatic_code not between", value1, value2, "automaticCode");
return (Criteria) this;
}
public Criteria andChildTypeIsNull() {
addCriterion("child_type is null");
return (Criteria) this;

Loading…
Cancel
Save