Coupon.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.example.cinema.po;
  2. import java.sql.Timestamp;
  3. /**
  4. * Created by liying on 2019/4/16.
  5. */
  6. public class Coupon {
  7. /**
  8. * 优惠券id
  9. */
  10. private int id;
  11. /**
  12. * 优惠券描述
  13. */
  14. private String description;
  15. /**
  16. * 优惠券名称
  17. */
  18. private String name;
  19. /**
  20. * 优惠券使用门槛
  21. */
  22. private double targetAmount;
  23. /**
  24. * 优惠券优惠金额
  25. */
  26. private double discountAmount;
  27. /**
  28. * 可用时间
  29. */
  30. private Timestamp startTime;
  31. /**
  32. * 失效时间
  33. */
  34. private Timestamp endTime;
  35. public Timestamp getStartTime() {
  36. return startTime;
  37. }
  38. public void setStartTime(Timestamp startTime) {
  39. this.startTime = startTime;
  40. }
  41. public Timestamp getEndTime() {
  42. return endTime;
  43. }
  44. public void setEndTime(Timestamp endTime) {
  45. this.endTime = endTime;
  46. }
  47. public int getId() {
  48. return id;
  49. }
  50. public void setId(int id) {
  51. this.id = id;
  52. }
  53. public String getDescription() {
  54. return description;
  55. }
  56. public void setDescription(String description) {
  57. this.description = description;
  58. }
  59. public String getName() {
  60. return name;
  61. }
  62. public void setName(String name) {
  63. this.name = name;
  64. }
  65. public double getTargetAmount() {
  66. return targetAmount;
  67. }
  68. public void setTargetAmount(double targetAmount) {
  69. this.targetAmount = targetAmount;
  70. }
  71. public double getDiscountAmount() {
  72. return discountAmount;
  73. }
  74. public void setDiscountAmount(double discountAmount) {
  75. this.discountAmount = discountAmount;
  76. }
  77. public Coupon() {
  78. }
  79. }