袁野 3 months ago
parent 0bcc922a26
commit 317593922d
  1. 27
      service/src/main/java/com/hfkj/dao/CouponDiscountUserRelMapper.java
  2. 42
      service/src/main/java/com/hfkj/dao/CouponDiscountUserRelSqlProvider.java
  3. 46
      service/src/main/java/com/hfkj/entity/CouponDiscountUserRel.java
  4. 164
      service/src/main/java/com/hfkj/entity/CouponDiscountUserRelExample.java

@ -39,18 +39,20 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper
int deleteByPrimaryKey(Long id); int deleteByPrimaryKey(Long id);
@Insert({ @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_name, discount_img, ",
"discount_type, discount_condition, ", "discount_type, discount_condition, ",
"discount_price, discount_percentage, ", "discount_price, discount_percentage, ",
"user_id, `status`, use_time, ", "user_id, coupon_order_id, ",
"`status`, use_time, ",
"create_time, use_end_time, ", "create_time, use_end_time, ",
"ext_1, ext_2, ext_3)", "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}, ", "#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ",
"#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ", "#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ",
"#{discountPrice,jdbcType=DECIMAL}, #{discountPercentage,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}, ", "#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@ -64,8 +66,8 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper
@SelectProvider(type=CouponDiscountUserRelSqlProvider.class, method="selectByExample") @SelectProvider(type=CouponDiscountUserRelSqlProvider.class, method="selectByExample")
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @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="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_name", property="discountName", jdbcType=JdbcType.VARCHAR),
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), @Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR),
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), @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_price", property="discountPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="discount_percentage", property="discountPercentage", jdbcType=JdbcType.DECIMAL), @Result(column="discount_percentage", property="discountPercentage", jdbcType=JdbcType.DECIMAL),
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @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="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@ -85,16 +88,16 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper
@Select({ @Select({
"select", "select",
"id, platform_code, discount_id, discount_name, discount_img, discount_type, ", "id, discount_id, platform_code, discount_name, discount_img, discount_type, ",
"discount_condition, discount_price, discount_percentage, user_id, `status`, ", "discount_condition, discount_price, discount_percentage, user_id, coupon_order_id, ",
"use_time, create_time, use_end_time, ext_1, ext_2, ext_3", "`status`, use_time, create_time, use_end_time, ext_1, ext_2, ext_3",
"from coupon_discount_user_rel", "from coupon_discount_user_rel",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @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="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_name", property="discountName", jdbcType=JdbcType.VARCHAR),
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), @Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR),
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), @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_price", property="discountPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="discount_percentage", property="discountPercentage", jdbcType=JdbcType.DECIMAL), @Result(column="discount_percentage", property="discountPercentage", jdbcType=JdbcType.DECIMAL),
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @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="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="use_time", property="useTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@ -123,8 +127,8 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper
@Update({ @Update({
"update coupon_discount_user_rel", "update coupon_discount_user_rel",
"set platform_code = #{platformCode,jdbcType=VARCHAR},", "set discount_id = #{discountId,jdbcType=BIGINT},",
"discount_id = #{discountId,jdbcType=BIGINT},", "platform_code = #{platformCode,jdbcType=VARCHAR},",
"discount_name = #{discountName,jdbcType=VARCHAR},", "discount_name = #{discountName,jdbcType=VARCHAR},",
"discount_img = #{discountImg,jdbcType=VARCHAR},", "discount_img = #{discountImg,jdbcType=VARCHAR},",
"discount_type = #{discountType,jdbcType=INTEGER},", "discount_type = #{discountType,jdbcType=INTEGER},",
@ -132,6 +136,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper
"discount_price = #{discountPrice,jdbcType=DECIMAL},", "discount_price = #{discountPrice,jdbcType=DECIMAL},",
"discount_percentage = #{discountPercentage,jdbcType=DECIMAL},", "discount_percentage = #{discountPercentage,jdbcType=DECIMAL},",
"user_id = #{userId,jdbcType=BIGINT},", "user_id = #{userId,jdbcType=BIGINT},",
"coupon_order_id = #{couponOrderId,jdbcType=BIGINT},",
"`status` = #{status,jdbcType=INTEGER},", "`status` = #{status,jdbcType=INTEGER},",
"use_time = #{useTime,jdbcType=TIMESTAMP},", "use_time = #{useTime,jdbcType=TIMESTAMP},",
"create_time = #{createTime,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},",

@ -28,14 +28,14 @@ public class CouponDiscountUserRelSqlProvider {
SQL sql = new SQL(); SQL sql = new SQL();
sql.INSERT_INTO("coupon_discount_user_rel"); sql.INSERT_INTO("coupon_discount_user_rel");
if (record.getPlatformCode() != null) {
sql.VALUES("platform_code", "#{platformCode,jdbcType=VARCHAR}");
}
if (record.getDiscountId() != null) { if (record.getDiscountId() != null) {
sql.VALUES("discount_id", "#{discountId,jdbcType=BIGINT}"); sql.VALUES("discount_id", "#{discountId,jdbcType=BIGINT}");
} }
if (record.getPlatformCode() != null) {
sql.VALUES("platform_code", "#{platformCode,jdbcType=VARCHAR}");
}
if (record.getDiscountName() != null) { if (record.getDiscountName() != null) {
sql.VALUES("discount_name", "#{discountName,jdbcType=VARCHAR}"); sql.VALUES("discount_name", "#{discountName,jdbcType=VARCHAR}");
} }
@ -64,6 +64,10 @@ public class CouponDiscountUserRelSqlProvider {
sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}"); sql.VALUES("user_id", "#{userId,jdbcType=BIGINT}");
} }
if (record.getCouponOrderId() != null) {
sql.VALUES("coupon_order_id", "#{couponOrderId,jdbcType=BIGINT}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); sql.VALUES("`status`", "#{status,jdbcType=INTEGER}");
} }
@ -102,8 +106,8 @@ public class CouponDiscountUserRelSqlProvider {
} else { } else {
sql.SELECT("id"); sql.SELECT("id");
} }
sql.SELECT("platform_code");
sql.SELECT("discount_id"); sql.SELECT("discount_id");
sql.SELECT("platform_code");
sql.SELECT("discount_name"); sql.SELECT("discount_name");
sql.SELECT("discount_img"); sql.SELECT("discount_img");
sql.SELECT("discount_type"); sql.SELECT("discount_type");
@ -111,6 +115,7 @@ public class CouponDiscountUserRelSqlProvider {
sql.SELECT("discount_price"); sql.SELECT("discount_price");
sql.SELECT("discount_percentage"); sql.SELECT("discount_percentage");
sql.SELECT("user_id"); sql.SELECT("user_id");
sql.SELECT("coupon_order_id");
sql.SELECT("`status`"); sql.SELECT("`status`");
sql.SELECT("use_time"); sql.SELECT("use_time");
sql.SELECT("create_time"); sql.SELECT("create_time");
@ -139,14 +144,14 @@ public class CouponDiscountUserRelSqlProvider {
sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
} }
if (record.getPlatformCode() != null) {
sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}");
}
if (record.getDiscountId() != null) { if (record.getDiscountId() != null) {
sql.SET("discount_id = #{record.discountId,jdbcType=BIGINT}"); sql.SET("discount_id = #{record.discountId,jdbcType=BIGINT}");
} }
if (record.getPlatformCode() != null) {
sql.SET("platform_code = #{record.platformCode,jdbcType=VARCHAR}");
}
if (record.getDiscountName() != null) { if (record.getDiscountName() != null) {
sql.SET("discount_name = #{record.discountName,jdbcType=VARCHAR}"); sql.SET("discount_name = #{record.discountName,jdbcType=VARCHAR}");
} }
@ -175,6 +180,10 @@ public class CouponDiscountUserRelSqlProvider {
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); 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) { if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
} }
@ -212,8 +221,8 @@ public class CouponDiscountUserRelSqlProvider {
sql.UPDATE("coupon_discount_user_rel"); sql.UPDATE("coupon_discount_user_rel");
sql.SET("id = #{record.id,jdbcType=BIGINT}"); 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("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_name = #{record.discountName,jdbcType=VARCHAR}");
sql.SET("discount_img = #{record.discountImg,jdbcType=VARCHAR}"); sql.SET("discount_img = #{record.discountImg,jdbcType=VARCHAR}");
sql.SET("discount_type = #{record.discountType,jdbcType=INTEGER}"); 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_price = #{record.discountPrice,jdbcType=DECIMAL}");
sql.SET("discount_percentage = #{record.discountPercentage,jdbcType=DECIMAL}"); sql.SET("discount_percentage = #{record.discountPercentage,jdbcType=DECIMAL}");
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); 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("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}"); sql.SET("use_time = #{record.useTime,jdbcType=TIMESTAMP}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
@ -238,14 +248,14 @@ public class CouponDiscountUserRelSqlProvider {
SQL sql = new SQL(); SQL sql = new SQL();
sql.UPDATE("coupon_discount_user_rel"); sql.UPDATE("coupon_discount_user_rel");
if (record.getPlatformCode() != null) {
sql.SET("platform_code = #{platformCode,jdbcType=VARCHAR}");
}
if (record.getDiscountId() != null) { if (record.getDiscountId() != null) {
sql.SET("discount_id = #{discountId,jdbcType=BIGINT}"); sql.SET("discount_id = #{discountId,jdbcType=BIGINT}");
} }
if (record.getPlatformCode() != null) {
sql.SET("platform_code = #{platformCode,jdbcType=VARCHAR}");
}
if (record.getDiscountName() != null) { if (record.getDiscountName() != null) {
sql.SET("discount_name = #{discountName,jdbcType=VARCHAR}"); sql.SET("discount_name = #{discountName,jdbcType=VARCHAR}");
} }
@ -274,6 +284,10 @@ public class CouponDiscountUserRelSqlProvider {
sql.SET("user_id = #{userId,jdbcType=BIGINT}"); sql.SET("user_id = #{userId,jdbcType=BIGINT}");
} }
if (record.getCouponOrderId() != null) {
sql.SET("coupon_order_id = #{couponOrderId,jdbcType=BIGINT}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.SET("`status` = #{status,jdbcType=INTEGER}"); sql.SET("`status` = #{status,jdbcType=INTEGER}");
} }

@ -20,14 +20,14 @@ public class CouponDiscountUserRel implements Serializable {
private Long id; 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 userId;
/**
* 虚拟订单编号
*/
private Long couponOrderId;
/** /**
* 状态 0:已过期 1未使用 2已使用 * 状态 0:已过期 1未使用 2已使用
*/ */
@ -100,14 +105,6 @@ public class CouponDiscountUserRel implements Serializable {
this.id = id; this.id = id;
} }
public String getPlatformCode() {
return platformCode;
}
public void setPlatformCode(String platformCode) {
this.platformCode = platformCode;
}
public Long getDiscountId() { public Long getDiscountId() {
return discountId; return discountId;
} }
@ -116,6 +113,14 @@ public class CouponDiscountUserRel implements Serializable {
this.discountId = discountId; this.discountId = discountId;
} }
public String getPlatformCode() {
return platformCode;
}
public void setPlatformCode(String platformCode) {
this.platformCode = platformCode;
}
public String getDiscountName() { public String getDiscountName() {
return discountName; return discountName;
} }
@ -172,6 +177,14 @@ public class CouponDiscountUserRel implements Serializable {
this.userId = userId; this.userId = userId;
} }
public Long getCouponOrderId() {
return couponOrderId;
}
public void setCouponOrderId(Long couponOrderId) {
this.couponOrderId = couponOrderId;
}
public Integer getStatus() { public Integer getStatus() {
return status; return status;
} }
@ -241,8 +254,8 @@ public class CouponDiscountUserRel implements Serializable {
} }
CouponDiscountUserRel other = (CouponDiscountUserRel) that; CouponDiscountUserRel other = (CouponDiscountUserRel) that;
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.getPlatformCode() == null ? other.getPlatformCode() == null : this.getPlatformCode().equals(other.getPlatformCode()))
&& (this.getDiscountId() == null ? other.getDiscountId() == null : this.getDiscountId().equals(other.getDiscountId())) && (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.getDiscountName() == null ? other.getDiscountName() == null : this.getDiscountName().equals(other.getDiscountName()))
&& (this.getDiscountImg() == null ? other.getDiscountImg() == null : this.getDiscountImg().equals(other.getDiscountImg())) && (this.getDiscountImg() == null ? other.getDiscountImg() == null : this.getDiscountImg().equals(other.getDiscountImg()))
&& (this.getDiscountType() == null ? other.getDiscountType() == null : this.getDiscountType().equals(other.getDiscountType())) && (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.getDiscountPrice() == null ? other.getDiscountPrice() == null : this.getDiscountPrice().equals(other.getDiscountPrice()))
&& (this.getDiscountPercentage() == null ? other.getDiscountPercentage() == null : this.getDiscountPercentage().equals(other.getDiscountPercentage())) && (this.getDiscountPercentage() == null ? other.getDiscountPercentage() == null : this.getDiscountPercentage().equals(other.getDiscountPercentage()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (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.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime())) && (this.getUseTime() == null ? other.getUseTime() == null : this.getUseTime().equals(other.getUseTime()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
@ -264,8 +278,8 @@ public class CouponDiscountUserRel implements Serializable {
final int prime = 31; final int prime = 31;
int result = 1; int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); 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 + ((getDiscountId() == null) ? 0 : getDiscountId().hashCode());
result = prime * result + ((getPlatformCode() == null) ? 0 : getPlatformCode().hashCode());
result = prime * result + ((getDiscountName() == null) ? 0 : getDiscountName().hashCode()); result = prime * result + ((getDiscountName() == null) ? 0 : getDiscountName().hashCode());
result = prime * result + ((getDiscountImg() == null) ? 0 : getDiscountImg().hashCode()); result = prime * result + ((getDiscountImg() == null) ? 0 : getDiscountImg().hashCode());
result = prime * result + ((getDiscountType() == null) ? 0 : getDiscountType().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 + ((getDiscountPrice() == null) ? 0 : getDiscountPrice().hashCode());
result = prime * result + ((getDiscountPercentage() == null) ? 0 : getDiscountPercentage().hashCode()); result = prime * result + ((getDiscountPercentage() == null) ? 0 : getDiscountPercentage().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().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 + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode()); result = prime * result + ((getUseTime() == null) ? 0 : getUseTime().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
@ -290,8 +305,8 @@ public class CouponDiscountUserRel implements Serializable {
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", platformCode=").append(platformCode);
sb.append(", discountId=").append(discountId); sb.append(", discountId=").append(discountId);
sb.append(", platformCode=").append(platformCode);
sb.append(", discountName=").append(discountName); sb.append(", discountName=").append(discountName);
sb.append(", discountImg=").append(discountImg); sb.append(", discountImg=").append(discountImg);
sb.append(", discountType=").append(discountType); sb.append(", discountType=").append(discountType);
@ -299,6 +314,7 @@ public class CouponDiscountUserRel implements Serializable {
sb.append(", discountPrice=").append(discountPrice); sb.append(", discountPrice=").append(discountPrice);
sb.append(", discountPercentage=").append(discountPercentage); sb.append(", discountPercentage=").append(discountPercentage);
sb.append(", userId=").append(userId); sb.append(", userId=").append(userId);
sb.append(", couponOrderId=").append(couponOrderId);
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", useTime=").append(useTime); sb.append(", useTime=").append(useTime);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);

@ -186,133 +186,133 @@ public class CouponDiscountUserRelExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeIsNull() { public Criteria andDiscountIdIsNull() {
addCriterion("platform_code is null"); addCriterion("discount_id is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeIsNotNull() { public Criteria andDiscountIdIsNotNull() {
addCriterion("platform_code is not null"); addCriterion("discount_id is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeEqualTo(String value) { public Criteria andDiscountIdEqualTo(Long value) {
addCriterion("platform_code =", value, "platformCode"); addCriterion("discount_id =", value, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeNotEqualTo(String value) { public Criteria andDiscountIdNotEqualTo(Long value) {
addCriterion("platform_code <>", value, "platformCode"); addCriterion("discount_id <>", value, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeGreaterThan(String value) { public Criteria andDiscountIdGreaterThan(Long value) {
addCriterion("platform_code >", value, "platformCode"); addCriterion("discount_id >", value, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeGreaterThanOrEqualTo(String value) { public Criteria andDiscountIdGreaterThanOrEqualTo(Long value) {
addCriterion("platform_code >=", value, "platformCode"); addCriterion("discount_id >=", value, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeLessThan(String value) { public Criteria andDiscountIdLessThan(Long value) {
addCriterion("platform_code <", value, "platformCode"); addCriterion("discount_id <", value, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeLessThanOrEqualTo(String value) { public Criteria andDiscountIdLessThanOrEqualTo(Long value) {
addCriterion("platform_code <=", value, "platformCode"); addCriterion("discount_id <=", value, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeLike(String value) { public Criteria andDiscountIdIn(List<Long> values) {
addCriterion("platform_code like", value, "platformCode"); addCriterion("discount_id in", values, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeNotLike(String value) { public Criteria andDiscountIdNotIn(List<Long> values) {
addCriterion("platform_code not like", value, "platformCode"); addCriterion("discount_id not in", values, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeIn(List<String> values) { public Criteria andDiscountIdBetween(Long value1, Long value2) {
addCriterion("platform_code in", values, "platformCode"); addCriterion("discount_id between", value1, value2, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeNotIn(List<String> values) { public Criteria andDiscountIdNotBetween(Long value1, Long value2) {
addCriterion("platform_code not in", values, "platformCode"); addCriterion("discount_id not between", value1, value2, "discountId");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeBetween(String value1, String value2) { public Criteria andPlatformCodeIsNull() {
addCriterion("platform_code between", value1, value2, "platformCode"); addCriterion("platform_code is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformCodeNotBetween(String value1, String value2) { public Criteria andPlatformCodeIsNotNull() {
addCriterion("platform_code not between", value1, value2, "platformCode"); addCriterion("platform_code is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdIsNull() { public Criteria andPlatformCodeEqualTo(String value) {
addCriterion("discount_id is null"); addCriterion("platform_code =", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdIsNotNull() { public Criteria andPlatformCodeNotEqualTo(String value) {
addCriterion("discount_id is not null"); addCriterion("platform_code <>", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdEqualTo(Long value) { public Criteria andPlatformCodeGreaterThan(String value) {
addCriterion("discount_id =", value, "discountId"); addCriterion("platform_code >", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdNotEqualTo(Long value) { public Criteria andPlatformCodeGreaterThanOrEqualTo(String value) {
addCriterion("discount_id <>", value, "discountId"); addCriterion("platform_code >=", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdGreaterThan(Long value) { public Criteria andPlatformCodeLessThan(String value) {
addCriterion("discount_id >", value, "discountId"); addCriterion("platform_code <", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdGreaterThanOrEqualTo(Long value) { public Criteria andPlatformCodeLessThanOrEqualTo(String value) {
addCriterion("discount_id >=", value, "discountId"); addCriterion("platform_code <=", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdLessThan(Long value) { public Criteria andPlatformCodeLike(String value) {
addCriterion("discount_id <", value, "discountId"); addCriterion("platform_code like", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdLessThanOrEqualTo(Long value) { public Criteria andPlatformCodeNotLike(String value) {
addCriterion("discount_id <=", value, "discountId"); addCriterion("platform_code not like", value, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdIn(List<Long> values) { public Criteria andPlatformCodeIn(List<String> values) {
addCriterion("discount_id in", values, "discountId"); addCriterion("platform_code in", values, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdNotIn(List<Long> values) { public Criteria andPlatformCodeNotIn(List<String> values) {
addCriterion("discount_id not in", values, "discountId"); addCriterion("platform_code not in", values, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdBetween(Long value1, Long value2) { public Criteria andPlatformCodeBetween(String value1, String value2) {
addCriterion("discount_id between", value1, value2, "discountId"); addCriterion("platform_code between", value1, value2, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDiscountIdNotBetween(Long value1, Long value2) { public Criteria andPlatformCodeNotBetween(String value1, String value2) {
addCriterion("discount_id not between", value1, value2, "discountId"); addCriterion("platform_code not between", value1, value2, "platformCode");
return (Criteria) this; return (Criteria) this;
} }
@ -756,6 +756,66 @@ public class CouponDiscountUserRelExample {
return (Criteria) this; 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<Long> values) {
addCriterion("coupon_order_id in", values, "couponOrderId");
return (Criteria) this;
}
public Criteria andCouponOrderIdNotIn(List<Long> 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() { public Criteria andStatusIsNull() {
addCriterion("`status` is null"); addCriterion("`status` is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save