提交代码

dev-discount
胡锐 3 years ago
parent 58f2af24fa
commit 2f86a2ee98
  1. 18
      hai-service/src/main/java/com/hai/dao/HighCouponMapper.java
  2. 32
      hai-service/src/main/java/com/hai/dao/HighCouponSqlProvider.java
  3. 34
      hai-service/src/main/java/com/hai/entity/HighCoupon.java
  4. 96
      hai-service/src/main/java/com/hai/entity/HighCouponExample.java

@ -52,7 +52,7 @@ public interface HighCouponMapper extends HighCouponMapperExt {
"pay_type, ext_1, ext_2, ", "pay_type, ext_1, ext_2, ",
"ext_3, `status`, display_area, ", "ext_3, `status`, display_area, ",
"coupon_source, distributor, ", "coupon_source, distributor, ",
"goodsTypeId, brandId)", "goods_type_id, brand_id)",
"values (#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", "values (#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ",
"#{couponKey,jdbcType=VARCHAR}, #{couponName,jdbcType=VARCHAR}, ", "#{couponKey,jdbcType=VARCHAR}, #{couponName,jdbcType=VARCHAR}, ",
"#{couponPrice,jdbcType=DECIMAL}, #{couponImg,jdbcType=VARCHAR}, ", "#{couponPrice,jdbcType=DECIMAL}, #{couponImg,jdbcType=VARCHAR}, ",
@ -66,7 +66,7 @@ public interface HighCouponMapper extends HighCouponMapperExt {
"#{payType,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{payType,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{displayArea,jdbcType=INTEGER}, ", "#{ext3,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{displayArea,jdbcType=INTEGER}, ",
"#{couponSource,jdbcType=INTEGER}, #{distributor,jdbcType=INTEGER}, ", "#{couponSource,jdbcType=INTEGER}, #{distributor,jdbcType=INTEGER}, ",
"#{goodstypeid,jdbcType=INTEGER}, #{brandid,jdbcType=INTEGER})" "#{goodsTypeId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighCoupon record); int insert(HighCoupon record);
@ -106,8 +106,8 @@ public interface HighCouponMapper extends HighCouponMapperExt {
@Result(column="display_area", property="displayArea", jdbcType=JdbcType.INTEGER), @Result(column="display_area", property="displayArea", jdbcType=JdbcType.INTEGER),
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER), @Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER),
@Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER), @Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER),
@Result(column="goodsTypeId", property="goodstypeid", jdbcType=JdbcType.INTEGER), @Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER),
@Result(column="brandId", property="brandid", jdbcType=JdbcType.INTEGER) @Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER)
}) })
List<HighCoupon> selectByExample(HighCouponExample example); List<HighCoupon> selectByExample(HighCouponExample example);
@ -117,7 +117,7 @@ public interface HighCouponMapper extends HighCouponMapperExt {
"coupon_carousel_img, coupon_desc, coupon_type, sales_end_time, recycle_day, ", "coupon_carousel_img, coupon_desc, coupon_type, sales_end_time, recycle_day, ",
"limit_number, sales_price, discount_price, sales_count, is_present, create_time, ", "limit_number, sales_price, discount_price, sales_count, is_present, create_time, ",
"update_time, operator_id, operator_name, pay_type, ext_1, ext_2, ext_3, `status`, ", "update_time, operator_id, operator_name, pay_type, ext_1, ext_2, ext_3, `status`, ",
"display_area, coupon_source, distributor, goodsTypeId, brandId", "display_area, coupon_source, distributor, goods_type_id, brand_id",
"from high_coupon", "from high_coupon",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@ -151,8 +151,8 @@ public interface HighCouponMapper extends HighCouponMapperExt {
@Result(column="display_area", property="displayArea", jdbcType=JdbcType.INTEGER), @Result(column="display_area", property="displayArea", jdbcType=JdbcType.INTEGER),
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER), @Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER),
@Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER), @Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER),
@Result(column="goodsTypeId", property="goodstypeid", jdbcType=JdbcType.INTEGER), @Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER),
@Result(column="brandId", property="brandid", jdbcType=JdbcType.INTEGER) @Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER)
}) })
HighCoupon selectByPrimaryKey(Long id); HighCoupon selectByPrimaryKey(Long id);
@ -195,8 +195,8 @@ public interface HighCouponMapper extends HighCouponMapperExt {
"display_area = #{displayArea,jdbcType=INTEGER},", "display_area = #{displayArea,jdbcType=INTEGER},",
"coupon_source = #{couponSource,jdbcType=INTEGER},", "coupon_source = #{couponSource,jdbcType=INTEGER},",
"distributor = #{distributor,jdbcType=INTEGER},", "distributor = #{distributor,jdbcType=INTEGER},",
"goodsTypeId = #{goodstypeid,jdbcType=INTEGER},", "goods_type_id = #{goodsTypeId,jdbcType=INTEGER},",
"brandId = #{brandid,jdbcType=INTEGER}", "brand_id = #{brandId,jdbcType=INTEGER}",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
int updateByPrimaryKey(HighCoupon record); int updateByPrimaryKey(HighCoupon record);

@ -140,12 +140,12 @@ public class HighCouponSqlProvider {
sql.VALUES("distributor", "#{distributor,jdbcType=INTEGER}"); sql.VALUES("distributor", "#{distributor,jdbcType=INTEGER}");
} }
if (record.getGoodstypeid() != null) { if (record.getGoodsTypeId() != null) {
sql.VALUES("goodsTypeId", "#{goodstypeid,jdbcType=INTEGER}"); sql.VALUES("goods_type_id", "#{goodsTypeId,jdbcType=INTEGER}");
} }
if (record.getBrandid() != null) { if (record.getBrandId() != null) {
sql.VALUES("brandId", "#{brandid,jdbcType=INTEGER}"); sql.VALUES("brand_id", "#{brandId,jdbcType=INTEGER}");
} }
return sql.toString(); return sql.toString();
@ -186,8 +186,8 @@ public class HighCouponSqlProvider {
sql.SELECT("display_area"); sql.SELECT("display_area");
sql.SELECT("coupon_source"); sql.SELECT("coupon_source");
sql.SELECT("distributor"); sql.SELECT("distributor");
sql.SELECT("goodsTypeId"); sql.SELECT("goods_type_id");
sql.SELECT("brandId"); sql.SELECT("brand_id");
sql.FROM("high_coupon"); sql.FROM("high_coupon");
applyWhere(sql, example, false); applyWhere(sql, example, false);
@ -321,12 +321,12 @@ public class HighCouponSqlProvider {
sql.SET("distributor = #{record.distributor,jdbcType=INTEGER}"); sql.SET("distributor = #{record.distributor,jdbcType=INTEGER}");
} }
if (record.getGoodstypeid() != null) { if (record.getGoodsTypeId() != null) {
sql.SET("goodsTypeId = #{record.goodstypeid,jdbcType=INTEGER}"); sql.SET("goods_type_id = #{record.goodsTypeId,jdbcType=INTEGER}");
} }
if (record.getBrandid() != null) { if (record.getBrandId() != null) {
sql.SET("brandId = #{record.brandid,jdbcType=INTEGER}"); sql.SET("brand_id = #{record.brandId,jdbcType=INTEGER}");
} }
applyWhere(sql, example, true); applyWhere(sql, example, true);
@ -366,8 +366,8 @@ public class HighCouponSqlProvider {
sql.SET("display_area = #{record.displayArea,jdbcType=INTEGER}"); sql.SET("display_area = #{record.displayArea,jdbcType=INTEGER}");
sql.SET("coupon_source = #{record.couponSource,jdbcType=INTEGER}"); sql.SET("coupon_source = #{record.couponSource,jdbcType=INTEGER}");
sql.SET("distributor = #{record.distributor,jdbcType=INTEGER}"); sql.SET("distributor = #{record.distributor,jdbcType=INTEGER}");
sql.SET("goodsTypeId = #{record.goodstypeid,jdbcType=INTEGER}"); sql.SET("goods_type_id = #{record.goodsTypeId,jdbcType=INTEGER}");
sql.SET("brandId = #{record.brandid,jdbcType=INTEGER}"); sql.SET("brand_id = #{record.brandId,jdbcType=INTEGER}");
HighCouponExample example = (HighCouponExample) parameter.get("example"); HighCouponExample example = (HighCouponExample) parameter.get("example");
applyWhere(sql, example, true); applyWhere(sql, example, true);
@ -490,12 +490,12 @@ public class HighCouponSqlProvider {
sql.SET("distributor = #{distributor,jdbcType=INTEGER}"); sql.SET("distributor = #{distributor,jdbcType=INTEGER}");
} }
if (record.getGoodstypeid() != null) { if (record.getGoodsTypeId() != null) {
sql.SET("goodsTypeId = #{goodstypeid,jdbcType=INTEGER}"); sql.SET("goods_type_id = #{goodsTypeId,jdbcType=INTEGER}");
} }
if (record.getBrandid() != null) { if (record.getBrandId() != null) {
sql.SET("brandId = #{brandid,jdbcType=INTEGER}"); sql.SET("brand_id = #{brandId,jdbcType=INTEGER}");
} }
sql.WHERE("id = #{id,jdbcType=BIGINT}"); sql.WHERE("id = #{id,jdbcType=BIGINT}");

@ -155,12 +155,12 @@ public class HighCoupon extends HighCouponModel implements Serializable {
/** /**
* 商品类别id * 商品类别id
*/ */
private Integer goodstypeid; private Integer goodsTypeId;
/** /**
* 品牌ID * 品牌id
*/ */
private Integer brandid; private Integer brandId;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -396,20 +396,20 @@ public class HighCoupon extends HighCouponModel implements Serializable {
this.distributor = distributor; this.distributor = distributor;
} }
public Integer getGoodstypeid() { public Integer getGoodsTypeId() {
return goodstypeid; return goodsTypeId;
} }
public void setGoodstypeid(Integer goodstypeid) { public void setGoodsTypeId(Integer goodsTypeId) {
this.goodstypeid = goodstypeid; this.goodsTypeId = goodsTypeId;
} }
public Integer getBrandid() { public Integer getBrandId() {
return brandid; return brandId;
} }
public void setBrandid(Integer brandid) { public void setBrandId(Integer brandId) {
this.brandid = brandid; this.brandId = brandId;
} }
@Override @Override
@ -453,8 +453,8 @@ public class HighCoupon extends HighCouponModel implements Serializable {
&& (this.getDisplayArea() == null ? other.getDisplayArea() == null : this.getDisplayArea().equals(other.getDisplayArea())) && (this.getDisplayArea() == null ? other.getDisplayArea() == null : this.getDisplayArea().equals(other.getDisplayArea()))
&& (this.getCouponSource() == null ? other.getCouponSource() == null : this.getCouponSource().equals(other.getCouponSource())) && (this.getCouponSource() == null ? other.getCouponSource() == null : this.getCouponSource().equals(other.getCouponSource()))
&& (this.getDistributor() == null ? other.getDistributor() == null : this.getDistributor().equals(other.getDistributor())) && (this.getDistributor() == null ? other.getDistributor() == null : this.getDistributor().equals(other.getDistributor()))
&& (this.getGoodstypeid() == null ? other.getGoodstypeid() == null : this.getGoodstypeid().equals(other.getGoodstypeid())) && (this.getGoodsTypeId() == null ? other.getGoodsTypeId() == null : this.getGoodsTypeId().equals(other.getGoodsTypeId()))
&& (this.getBrandid() == null ? other.getBrandid() == null : this.getBrandid().equals(other.getBrandid())); && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()));
} }
@Override @Override
@ -490,8 +490,8 @@ public class HighCoupon extends HighCouponModel implements Serializable {
result = prime * result + ((getDisplayArea() == null) ? 0 : getDisplayArea().hashCode()); result = prime * result + ((getDisplayArea() == null) ? 0 : getDisplayArea().hashCode());
result = prime * result + ((getCouponSource() == null) ? 0 : getCouponSource().hashCode()); result = prime * result + ((getCouponSource() == null) ? 0 : getCouponSource().hashCode());
result = prime * result + ((getDistributor() == null) ? 0 : getDistributor().hashCode()); result = prime * result + ((getDistributor() == null) ? 0 : getDistributor().hashCode());
result = prime * result + ((getGoodstypeid() == null) ? 0 : getGoodstypeid().hashCode()); result = prime * result + ((getGoodsTypeId() == null) ? 0 : getGoodsTypeId().hashCode());
result = prime * result + ((getBrandid() == null) ? 0 : getBrandid().hashCode()); result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());
return result; return result;
} }
@ -530,8 +530,8 @@ public class HighCoupon extends HighCouponModel implements Serializable {
sb.append(", displayArea=").append(displayArea); sb.append(", displayArea=").append(displayArea);
sb.append(", couponSource=").append(couponSource); sb.append(", couponSource=").append(couponSource);
sb.append(", distributor=").append(distributor); sb.append(", distributor=").append(distributor);
sb.append(", goodstypeid=").append(goodstypeid); sb.append(", goodsTypeId=").append(goodsTypeId);
sb.append(", brandid=").append(brandid); sb.append(", brandId=").append(brandId);
sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();

@ -1956,123 +1956,123 @@ public class HighCouponExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidIsNull() { public Criteria andGoodsTypeIdIsNull() {
addCriterion("goodsTypeId is null"); addCriterion("goods_type_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidIsNotNull() { public Criteria andGoodsTypeIdIsNotNull() {
addCriterion("goodsTypeId is not null"); addCriterion("goods_type_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidEqualTo(Integer value) { public Criteria andGoodsTypeIdEqualTo(Integer value) {
addCriterion("goodsTypeId =", value, "goodstypeid"); addCriterion("goods_type_id =", value, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidNotEqualTo(Integer value) { public Criteria andGoodsTypeIdNotEqualTo(Integer value) {
addCriterion("goodsTypeId <>", value, "goodstypeid"); addCriterion("goods_type_id <>", value, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidGreaterThan(Integer value) { public Criteria andGoodsTypeIdGreaterThan(Integer value) {
addCriterion("goodsTypeId >", value, "goodstypeid"); addCriterion("goods_type_id >", value, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidGreaterThanOrEqualTo(Integer value) { public Criteria andGoodsTypeIdGreaterThanOrEqualTo(Integer value) {
addCriterion("goodsTypeId >=", value, "goodstypeid"); addCriterion("goods_type_id >=", value, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidLessThan(Integer value) { public Criteria andGoodsTypeIdLessThan(Integer value) {
addCriterion("goodsTypeId <", value, "goodstypeid"); addCriterion("goods_type_id <", value, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidLessThanOrEqualTo(Integer value) { public Criteria andGoodsTypeIdLessThanOrEqualTo(Integer value) {
addCriterion("goodsTypeId <=", value, "goodstypeid"); addCriterion("goods_type_id <=", value, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidIn(List<Integer> values) { public Criteria andGoodsTypeIdIn(List<Integer> values) {
addCriterion("goodsTypeId in", values, "goodstypeid"); addCriterion("goods_type_id in", values, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidNotIn(List<Integer> values) { public Criteria andGoodsTypeIdNotIn(List<Integer> values) {
addCriterion("goodsTypeId not in", values, "goodstypeid"); addCriterion("goods_type_id not in", values, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidBetween(Integer value1, Integer value2) { public Criteria andGoodsTypeIdBetween(Integer value1, Integer value2) {
addCriterion("goodsTypeId between", value1, value2, "goodstypeid"); addCriterion("goods_type_id between", value1, value2, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodstypeidNotBetween(Integer value1, Integer value2) { public Criteria andGoodsTypeIdNotBetween(Integer value1, Integer value2) {
addCriterion("goodsTypeId not between", value1, value2, "goodstypeid"); addCriterion("goods_type_id not between", value1, value2, "goodsTypeId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidIsNull() { public Criteria andBrandIdIsNull() {
addCriterion("brandId is null"); addCriterion("brand_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidIsNotNull() { public Criteria andBrandIdIsNotNull() {
addCriterion("brandId is not null"); addCriterion("brand_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidEqualTo(Integer value) { public Criteria andBrandIdEqualTo(Integer value) {
addCriterion("brandId =", value, "brandid"); addCriterion("brand_id =", value, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidNotEqualTo(Integer value) { public Criteria andBrandIdNotEqualTo(Integer value) {
addCriterion("brandId <>", value, "brandid"); addCriterion("brand_id <>", value, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidGreaterThan(Integer value) { public Criteria andBrandIdGreaterThan(Integer value) {
addCriterion("brandId >", value, "brandid"); addCriterion("brand_id >", value, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidGreaterThanOrEqualTo(Integer value) { public Criteria andBrandIdGreaterThanOrEqualTo(Integer value) {
addCriterion("brandId >=", value, "brandid"); addCriterion("brand_id >=", value, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidLessThan(Integer value) { public Criteria andBrandIdLessThan(Integer value) {
addCriterion("brandId <", value, "brandid"); addCriterion("brand_id <", value, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidLessThanOrEqualTo(Integer value) { public Criteria andBrandIdLessThanOrEqualTo(Integer value) {
addCriterion("brandId <=", value, "brandid"); addCriterion("brand_id <=", value, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidIn(List<Integer> values) { public Criteria andBrandIdIn(List<Integer> values) {
addCriterion("brandId in", values, "brandid"); addCriterion("brand_id in", values, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidNotIn(List<Integer> values) { public Criteria andBrandIdNotIn(List<Integer> values) {
addCriterion("brandId not in", values, "brandid"); addCriterion("brand_id not in", values, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidBetween(Integer value1, Integer value2) { public Criteria andBrandIdBetween(Integer value1, Integer value2) {
addCriterion("brandId between", value1, value2, "brandid"); addCriterion("brand_id between", value1, value2, "brandId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBrandidNotBetween(Integer value1, Integer value2) { public Criteria andBrandIdNotBetween(Integer value1, Integer value2) {
addCriterion("brandId not between", value1, value2, "brandid"); addCriterion("brand_id not between", value1, value2, "brandId");
return (Criteria) this; return (Criteria) this;
} }
} }

Loading…
Cancel
Save