diff --git a/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelMapper.java b/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelMapper.java index eaad347..1155c4a 100644 --- a/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelMapper.java +++ b/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelMapper.java @@ -39,18 +39,20 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper int deleteByPrimaryKey(Long id); @Insert({ - "insert into coupon_discount_user_rel (platform_code, discount_id, ", + "insert into coupon_discount_user_rel (discount_id, platform_code, ", "discount_name, discount_img, ", "discount_type, discount_condition, ", "discount_price, discount_percentage, ", - "user_id, `status`, use_time, ", + "user_id, coupon_order_id, ", + "`status`, use_time, ", "create_time, use_end_time, ", "ext_1, ext_2, ext_3)", - "values (#{platformCode,jdbcType=VARCHAR}, #{discountId,jdbcType=BIGINT}, ", + "values (#{discountId,jdbcType=BIGINT}, #{platformCode,jdbcType=VARCHAR}, ", "#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ", "#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ", "#{discountPrice,jdbcType=DECIMAL}, #{discountPercentage,jdbcType=DECIMAL}, ", - "#{userId,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, ", + "#{userId,jdbcType=BIGINT}, #{couponOrderId,jdbcType=BIGINT}, ", + "#{status,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, ", "#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) @@ -64,8 +66,8 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper @SelectProvider(type=CouponDiscountUserRelSqlProvider.class, method="selectByExample") @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), - @Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), @Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), + @Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), @Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), @Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), @Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), @@ -73,6 +75,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper @Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), @Result(column="discount_percentage", property="discountPercentage", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="coupon_order_id", property="couponOrderId", jdbcType=JdbcType.BIGINT), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -85,16 +88,16 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper @Select({ "select", - "id, platform_code, discount_id, discount_name, discount_img, discount_type, ", - "discount_condition, discount_price, discount_percentage, user_id, `status`, ", - "use_time, create_time, use_end_time, ext_1, ext_2, ext_3", + "id, discount_id, platform_code, discount_name, discount_img, discount_type, ", + "discount_condition, discount_price, discount_percentage, user_id, coupon_order_id, ", + "`status`, use_time, create_time, use_end_time, ext_1, ext_2, ext_3", "from coupon_discount_user_rel", "where id = #{id,jdbcType=BIGINT}" }) @Results({ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), - @Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), @Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), + @Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), @Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), @Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), @Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), @@ -102,6 +105,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper @Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), @Result(column="discount_percentage", property="discountPercentage", jdbcType=JdbcType.DECIMAL), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), + @Result(column="coupon_order_id", property="couponOrderId", jdbcType=JdbcType.BIGINT), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -123,8 +127,8 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper @Update({ "update coupon_discount_user_rel", - "set platform_code = #{platformCode,jdbcType=VARCHAR},", - "discount_id = #{discountId,jdbcType=BIGINT},", + "set discount_id = #{discountId,jdbcType=BIGINT},", + "platform_code = #{platformCode,jdbcType=VARCHAR},", "discount_name = #{discountName,jdbcType=VARCHAR},", "discount_img = #{discountImg,jdbcType=VARCHAR},", "discount_type = #{discountType,jdbcType=INTEGER},", @@ -132,6 +136,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper "discount_price = #{discountPrice,jdbcType=DECIMAL},", "discount_percentage = #{discountPercentage,jdbcType=DECIMAL},", "user_id = #{userId,jdbcType=BIGINT},", + "coupon_order_id = #{couponOrderId,jdbcType=BIGINT},", "`status` = #{status,jdbcType=INTEGER},", "use_time = #{useTime,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelSqlProvider.java b/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelSqlProvider.java index d2fddc2..f26768c 100644 --- a/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/CouponDiscountUserRelSqlProvider.java @@ -28,14 +28,14 @@ public class CouponDiscountUserRelSqlProvider { SQL sql = new SQL(); sql.INSERT_INTO("coupon_discount_user_rel"); - if (record.getPlatformCode() != null) { - sql.VALUES("platform_code", "#{platformCode,jdbcType=VARCHAR}"); - } - if (record.getDiscountId() != null) { sql.VALUES("discount_id", "#{discountId,jdbcType=BIGINT}"); } + if (record.getPlatformCode() != null) { + sql.VALUES("platform_code", "#{platformCode,jdbcType=VARCHAR}"); + } + if (record.getDiscountName() != null) { sql.VALUES("discount_name", "#{discountName,jdbcType=VARCHAR}"); } @@ -64,6 +64,10 @@ public class CouponDiscountUserRelSqlProvider { sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}"); } + if (record.getCouponOrderId() != null) { + sql.VALUES("coupon_order_id", "#{couponOrderId,jdbcType=BIGINT}"); + } + if (record.getStatus() != null) { sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); } @@ -102,8 +106,8 @@ public class CouponDiscountUserRelSqlProvider { } else { sql.SELECT("id"); } - sql.SELECT("platform_code"); sql.SELECT("discount_id"); + sql.SELECT("platform_code"); sql.SELECT("discount_name"); sql.SELECT("discount_img"); sql.SELECT("discount_type"); @@ -111,6 +115,7 @@ public class CouponDiscountUserRelSqlProvider { sql.SELECT("discount_price"); sql.SELECT("discount_percentage"); sql.SELECT("user_id"); + sql.SELECT("coupon_order_id"); sql.SELECT("`status`"); sql.SELECT("use_time"); sql.SELECT("create_time"); @@ -139,14 +144,14 @@ public class CouponDiscountUserRelSqlProvider { sql.SET("id = #{record.id,jdbcType=BIGINT}"); } - if (record.getPlatformCode() != null) { - sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}"); - } - if (record.getDiscountId() != null) { sql.SET("discount_id = #{record.discountId,jdbcType=BIGINT}"); } + if (record.getPlatformCode() != null) { + sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}"); + } + if (record.getDiscountName() != null) { sql.SET("discount_name = #{record.discountName,jdbcType=VARCHAR}"); } @@ -175,6 +180,10 @@ public class CouponDiscountUserRelSqlProvider { sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); } + if (record.getCouponOrderId() != null) { + sql.SET("coupon_order_id = #{record.couponOrderId,jdbcType=BIGINT}"); + } + if (record.getStatus() != null) { sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); } @@ -212,8 +221,8 @@ public class CouponDiscountUserRelSqlProvider { sql.UPDATE("coupon_discount_user_rel"); sql.SET("id = #{record.id,jdbcType=BIGINT}"); - sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}"); sql.SET("discount_id = #{record.discountId,jdbcType=BIGINT}"); + sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}"); sql.SET("discount_name = #{record.discountName,jdbcType=VARCHAR}"); sql.SET("discount_img = #{record.discountImg,jdbcType=VARCHAR}"); sql.SET("discount_type = #{record.discountType,jdbcType=INTEGER}"); @@ -221,6 +230,7 @@ public class CouponDiscountUserRelSqlProvider { sql.SET("discount_price = #{record.discountPrice,jdbcType=DECIMAL}"); sql.SET("discount_percentage = #{record.discountPercentage,jdbcType=DECIMAL}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); + sql.SET("coupon_order_id = #{record.couponOrderId,jdbcType=BIGINT}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); @@ -238,14 +248,14 @@ public class CouponDiscountUserRelSqlProvider { SQL sql = new SQL(); sql.UPDATE("coupon_discount_user_rel"); - if (record.getPlatformCode() != null) { - sql.SET("platform_code = #{platformCode,jdbcType=VARCHAR}"); - } - if (record.getDiscountId() != null) { sql.SET("discount_id = #{discountId,jdbcType=BIGINT}"); } + if (record.getPlatformCode() != null) { + sql.SET("platform_code = #{platformCode,jdbcType=VARCHAR}"); + } + if (record.getDiscountName() != null) { sql.SET("discount_name = #{discountName,jdbcType=VARCHAR}"); } @@ -274,6 +284,10 @@ public class CouponDiscountUserRelSqlProvider { sql.SET("user_id = #{userId,jdbcType=BIGINT}"); } + if (record.getCouponOrderId() != null) { + sql.SET("coupon_order_id = #{couponOrderId,jdbcType=BIGINT}"); + } + if (record.getStatus() != null) { sql.SET("`status` = #{status,jdbcType=INTEGER}"); } diff --git a/service/src/main/java/com/hfkj/entity/CouponDiscountUserRel.java b/service/src/main/java/com/hfkj/entity/CouponDiscountUserRel.java index c88fe16..d0ffd3a 100644 --- a/service/src/main/java/com/hfkj/entity/CouponDiscountUserRel.java +++ b/service/src/main/java/com/hfkj/entity/CouponDiscountUserRel.java @@ -20,14 +20,14 @@ public class CouponDiscountUserRel implements Serializable { private Long id; /** - * 登录平台code + * 优惠券id */ - private String platformCode; + private Long discountId; /** - * 优惠券id + * 登录平台code */ - private Long discountId; + private String platformCode; /** * 优惠券名称 @@ -64,6 +64,11 @@ public class CouponDiscountUserRel implements Serializable { */ private Long userId; + /** + * 虚拟订单编号 + */ + private Long couponOrderId; + /** * 状态 0:已过期 1:未使用 2:已使用 */ @@ -100,14 +105,6 @@ public class CouponDiscountUserRel implements Serializable { this.id = id; } - public String getPlatformCode() { - return platformCode; - } - - public void setPlatformCode(String platformCode) { - this.platformCode = platformCode; - } - public Long getDiscountId() { return discountId; } @@ -116,6 +113,14 @@ public class CouponDiscountUserRel implements Serializable { this.discountId = discountId; } + public String getPlatformCode() { + return platformCode; + } + + public void setPlatformCode(String platformCode) { + this.platformCode = platformCode; + } + public String getDiscountName() { return discountName; } @@ -172,6 +177,14 @@ public class CouponDiscountUserRel implements Serializable { this.userId = userId; } + public Long getCouponOrderId() { + return couponOrderId; + } + + public void setCouponOrderId(Long couponOrderId) { + this.couponOrderId = couponOrderId; + } + public Integer getStatus() { return status; } @@ -241,8 +254,8 @@ public class CouponDiscountUserRel implements Serializable { } CouponDiscountUserRel other = (CouponDiscountUserRel) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getPlatformCode() == null ? other.getPlatformCode() == null : this.getPlatformCode().equals(other.getPlatformCode())) && (this.getDiscountId() == null ? other.getDiscountId() == null : this.getDiscountId().equals(other.getDiscountId())) + && (this.getPlatformCode() == null ? other.getPlatformCode() == null : this.getPlatformCode().equals(other.getPlatformCode())) && (this.getDiscountName() == null ? other.getDiscountName() == null : this.getDiscountName().equals(other.getDiscountName())) && (this.getDiscountImg() == null ? other.getDiscountImg() == null : this.getDiscountImg().equals(other.getDiscountImg())) && (this.getDiscountType() == null ? other.getDiscountType() == null : this.getDiscountType().equals(other.getDiscountType())) @@ -250,6 +263,7 @@ public class CouponDiscountUserRel implements Serializable { && (this.getDiscountPrice() == null ? other.getDiscountPrice() == null : this.getDiscountPrice().equals(other.getDiscountPrice())) && (this.getDiscountPercentage() == null ? other.getDiscountPercentage() == null : this.getDiscountPercentage().equals(other.getDiscountPercentage())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) + && (this.getCouponOrderId() == null ? other.getCouponOrderId() == null : this.getCouponOrderId().equals(other.getCouponOrderId())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) @@ -264,8 +278,8 @@ public class CouponDiscountUserRel implements Serializable { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getPlatformCode() == null) ? 0 : getPlatformCode().hashCode()); result = prime * result + ((getDiscountId() == null) ? 0 : getDiscountId().hashCode()); + result = prime * result + ((getPlatformCode() == null) ? 0 : getPlatformCode().hashCode()); result = prime * result + ((getDiscountName() == null) ? 0 : getDiscountName().hashCode()); result = prime * result + ((getDiscountImg() == null) ? 0 : getDiscountImg().hashCode()); result = prime * result + ((getDiscountType() == null) ? 0 : getDiscountType().hashCode()); @@ -273,6 +287,7 @@ public class CouponDiscountUserRel implements Serializable { result = prime * result + ((getDiscountPrice() == null) ? 0 : getDiscountPrice().hashCode()); result = prime * result + ((getDiscountPercentage() == null) ? 0 : getDiscountPercentage().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); + result = prime * result + ((getCouponOrderId() == null) ? 0 : getCouponOrderId().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); @@ -290,8 +305,8 @@ public class CouponDiscountUserRel implements Serializable { sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); - sb.append(", platformCode=").append(platformCode); sb.append(", discountId=").append(discountId); + sb.append(", platformCode=").append(platformCode); sb.append(", discountName=").append(discountName); sb.append(", discountImg=").append(discountImg); sb.append(", discountType=").append(discountType); @@ -299,6 +314,7 @@ public class CouponDiscountUserRel implements Serializable { sb.append(", discountPrice=").append(discountPrice); sb.append(", discountPercentage=").append(discountPercentage); sb.append(", userId=").append(userId); + sb.append(", couponOrderId=").append(couponOrderId); sb.append(", status=").append(status); sb.append(", useTime=").append(useTime); sb.append(", createTime=").append(createTime); diff --git a/service/src/main/java/com/hfkj/entity/CouponDiscountUserRelExample.java b/service/src/main/java/com/hfkj/entity/CouponDiscountUserRelExample.java index 2418906..1b53f0d 100644 --- a/service/src/main/java/com/hfkj/entity/CouponDiscountUserRelExample.java +++ b/service/src/main/java/com/hfkj/entity/CouponDiscountUserRelExample.java @@ -186,133 +186,133 @@ public class CouponDiscountUserRelExample { return (Criteria) this; } - public Criteria andPlatformCodeIsNull() { - addCriterion("platform_code is null"); + public Criteria andDiscountIdIsNull() { + addCriterion("discount_id is null"); return (Criteria) this; } - public Criteria andPlatformCodeIsNotNull() { - addCriterion("platform_code is not null"); + public Criteria andDiscountIdIsNotNull() { + addCriterion("discount_id is not null"); return (Criteria) this; } - public Criteria andPlatformCodeEqualTo(String value) { - addCriterion("platform_code =", value, "platformCode"); + public Criteria andDiscountIdEqualTo(Long value) { + addCriterion("discount_id =", value, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeNotEqualTo(String value) { - addCriterion("platform_code <>", value, "platformCode"); + public Criteria andDiscountIdNotEqualTo(Long value) { + addCriterion("discount_id <>", value, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeGreaterThan(String value) { - addCriterion("platform_code >", value, "platformCode"); + public Criteria andDiscountIdGreaterThan(Long value) { + addCriterion("discount_id >", value, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeGreaterThanOrEqualTo(String value) { - addCriterion("platform_code >=", value, "platformCode"); + public Criteria andDiscountIdGreaterThanOrEqualTo(Long value) { + addCriterion("discount_id >=", value, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeLessThan(String value) { - addCriterion("platform_code <", value, "platformCode"); + public Criteria andDiscountIdLessThan(Long value) { + addCriterion("discount_id <", value, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeLessThanOrEqualTo(String value) { - addCriterion("platform_code <=", value, "platformCode"); + public Criteria andDiscountIdLessThanOrEqualTo(Long value) { + addCriterion("discount_id <=", value, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeLike(String value) { - addCriterion("platform_code like", value, "platformCode"); + public Criteria andDiscountIdIn(List values) { + addCriterion("discount_id in", values, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeNotLike(String value) { - addCriterion("platform_code not like", value, "platformCode"); + public Criteria andDiscountIdNotIn(List values) { + addCriterion("discount_id not in", values, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeIn(List values) { - addCriterion("platform_code in", values, "platformCode"); + public Criteria andDiscountIdBetween(Long value1, Long value2) { + addCriterion("discount_id between", value1, value2, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeNotIn(List values) { - addCriterion("platform_code not in", values, "platformCode"); + public Criteria andDiscountIdNotBetween(Long value1, Long value2) { + addCriterion("discount_id not between", value1, value2, "discountId"); return (Criteria) this; } - public Criteria andPlatformCodeBetween(String value1, String value2) { - addCriterion("platform_code between", value1, value2, "platformCode"); + public Criteria andPlatformCodeIsNull() { + addCriterion("platform_code is null"); return (Criteria) this; } - public Criteria andPlatformCodeNotBetween(String value1, String value2) { - addCriterion("platform_code not between", value1, value2, "platformCode"); + public Criteria andPlatformCodeIsNotNull() { + addCriterion("platform_code is not null"); return (Criteria) this; } - public Criteria andDiscountIdIsNull() { - addCriterion("discount_id is null"); + public Criteria andPlatformCodeEqualTo(String value) { + addCriterion("platform_code =", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdIsNotNull() { - addCriterion("discount_id is not null"); + public Criteria andPlatformCodeNotEqualTo(String value) { + addCriterion("platform_code <>", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdEqualTo(Long value) { - addCriterion("discount_id =", value, "discountId"); + public Criteria andPlatformCodeGreaterThan(String value) { + addCriterion("platform_code >", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdNotEqualTo(Long value) { - addCriterion("discount_id <>", value, "discountId"); + public Criteria andPlatformCodeGreaterThanOrEqualTo(String value) { + addCriterion("platform_code >=", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdGreaterThan(Long value) { - addCriterion("discount_id >", value, "discountId"); + public Criteria andPlatformCodeLessThan(String value) { + addCriterion("platform_code <", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdGreaterThanOrEqualTo(Long value) { - addCriterion("discount_id >=", value, "discountId"); + public Criteria andPlatformCodeLessThanOrEqualTo(String value) { + addCriterion("platform_code <=", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdLessThan(Long value) { - addCriterion("discount_id <", value, "discountId"); + public Criteria andPlatformCodeLike(String value) { + addCriterion("platform_code like", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdLessThanOrEqualTo(Long value) { - addCriterion("discount_id <=", value, "discountId"); + public Criteria andPlatformCodeNotLike(String value) { + addCriterion("platform_code not like", value, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdIn(List values) { - addCriterion("discount_id in", values, "discountId"); + public Criteria andPlatformCodeIn(List values) { + addCriterion("platform_code in", values, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdNotIn(List values) { - addCriterion("discount_id not in", values, "discountId"); + public Criteria andPlatformCodeNotIn(List values) { + addCriterion("platform_code not in", values, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdBetween(Long value1, Long value2) { - addCriterion("discount_id between", value1, value2, "discountId"); + public Criteria andPlatformCodeBetween(String value1, String value2) { + addCriterion("platform_code between", value1, value2, "platformCode"); return (Criteria) this; } - public Criteria andDiscountIdNotBetween(Long value1, Long value2) { - addCriterion("discount_id not between", value1, value2, "discountId"); + public Criteria andPlatformCodeNotBetween(String value1, String value2) { + addCriterion("platform_code not between", value1, value2, "platformCode"); return (Criteria) this; } @@ -756,6 +756,66 @@ public class CouponDiscountUserRelExample { return (Criteria) this; } + public Criteria andCouponOrderIdIsNull() { + addCriterion("coupon_order_id is null"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdIsNotNull() { + addCriterion("coupon_order_id is not null"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdEqualTo(Long value) { + addCriterion("coupon_order_id =", value, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdNotEqualTo(Long value) { + addCriterion("coupon_order_id <>", value, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdGreaterThan(Long value) { + addCriterion("coupon_order_id >", value, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("coupon_order_id >=", value, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdLessThan(Long value) { + addCriterion("coupon_order_id <", value, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdLessThanOrEqualTo(Long value) { + addCriterion("coupon_order_id <=", value, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdIn(List values) { + addCriterion("coupon_order_id in", values, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdNotIn(List values) { + addCriterion("coupon_order_id not in", values, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdBetween(Long value1, Long value2) { + addCriterion("coupon_order_id between", value1, value2, "couponOrderId"); + return (Criteria) this; + } + + public Criteria andCouponOrderIdNotBetween(Long value1, Long value2) { + addCriterion("coupon_order_id not between", value1, value2, "couponOrderId"); + return (Criteria) this; + } + public Criteria andStatusIsNull() { addCriterion("`status` is null"); return (Criteria) this;