|
|
@@ -1,10 +1,8 @@
|
|
|
package com.example.hotel.po;
|
|
|
-
|
|
|
import java.sql.Timestamp;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+
|
|
|
|
|
|
-/**
|
|
|
- * Created by liying on 2019/4/16.
|
|
|
- */
|
|
|
public class Coupon {
|
|
|
/**
|
|
|
* 优惠券id
|
|
|
@@ -14,40 +12,60 @@ public class Coupon {
|
|
|
* 优惠券描述
|
|
|
*/
|
|
|
private String description;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 如果为-1 代表是网站推出的优惠
|
|
|
+ */
|
|
|
+ private Integer hotelId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 优惠券类型 1生日特惠 2多间特惠 3满减优惠 4限时优惠
|
|
|
+ */
|
|
|
+ private Integer couponType;
|
|
|
/**
|
|
|
* 优惠券名称
|
|
|
*/
|
|
|
- private String name;
|
|
|
+ private String couponName;
|
|
|
/**
|
|
|
* 优惠券使用门槛
|
|
|
*/
|
|
|
- private double targetAmount;
|
|
|
+ private double targetMoney;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 折扣
|
|
|
+ */
|
|
|
+ private double discount;
|
|
|
/**
|
|
|
* 优惠券优惠金额
|
|
|
*/
|
|
|
- private double discountAmount;
|
|
|
+ private double discountMoney;
|
|
|
/**
|
|
|
* 可用时间
|
|
|
*/
|
|
|
- private Timestamp startTime;
|
|
|
+ private LocalDateTime startTime;
|
|
|
/**
|
|
|
* 失效时间
|
|
|
*/
|
|
|
- private Timestamp endTime;
|
|
|
+ private LocalDateTime endTime;
|
|
|
|
|
|
- public Timestamp getStartTime() {
|
|
|
+ /**
|
|
|
+ * 优惠券状态 是否已经失效 1可用 0失效
|
|
|
+ */
|
|
|
+ private Integer status;
|
|
|
+
|
|
|
+ public LocalDateTime getStartTime() {
|
|
|
return startTime;
|
|
|
}
|
|
|
|
|
|
- public void setStartTime(Timestamp startTime) {
|
|
|
+ public void setStartTime(LocalDateTime startTime) {
|
|
|
this.startTime = startTime;
|
|
|
}
|
|
|
|
|
|
- public Timestamp getEndTime() {
|
|
|
+ public LocalDateTime getEndTime() {
|
|
|
return endTime;
|
|
|
}
|
|
|
|
|
|
- public void setEndTime(Timestamp endTime) {
|
|
|
+ public void setEndTime(LocalDateTime endTime) {
|
|
|
this.endTime = endTime;
|
|
|
}
|
|
|
|
|
|
@@ -67,28 +85,60 @@ public class Coupon {
|
|
|
this.description = description;
|
|
|
}
|
|
|
|
|
|
- public String getName() {
|
|
|
- return name;
|
|
|
+ public String getCouponName() {
|
|
|
+ return couponName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCouponName(String couponName) {
|
|
|
+ this.couponName = couponName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getTargetMoney() {
|
|
|
+ return targetMoney;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTargetMoney(double targetMoney) {
|
|
|
+ this.targetMoney = targetMoney;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getDiscountMoney() {
|
|
|
+ return discountMoney;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDiscountMoney(double discountMoney) {
|
|
|
+ this.discountMoney = discountMoney;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getHotelId() {
|
|
|
+ return hotelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setHotelId(Integer hotelId) {
|
|
|
+ this.hotelId = hotelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getCouponType() {
|
|
|
+ return couponType;
|
|
|
}
|
|
|
|
|
|
- public void setName(String name) {
|
|
|
- this.name = name;
|
|
|
+ public void setCouponType(Integer couponType) {
|
|
|
+ this.couponType = couponType;
|
|
|
}
|
|
|
|
|
|
- public double getTargetAmount() {
|
|
|
- return targetAmount;
|
|
|
+ public Integer getStatus() {
|
|
|
+ return status;
|
|
|
}
|
|
|
|
|
|
- public void setTargetAmount(double targetAmount) {
|
|
|
- this.targetAmount = targetAmount;
|
|
|
+ public void setStatus(Integer status) {
|
|
|
+ this.status = status;
|
|
|
}
|
|
|
|
|
|
- public double getDiscountAmount() {
|
|
|
- return discountAmount;
|
|
|
+ public double getDiscount() {
|
|
|
+ return discount;
|
|
|
}
|
|
|
|
|
|
- public void setDiscountAmount(double discountAmount) {
|
|
|
- this.discountAmount = discountAmount;
|
|
|
+ public void setDiscount(double discount) {
|
|
|
+ this.discount = discount;
|
|
|
}
|
|
|
|
|
|
public Coupon() {
|