CouponTemplate.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package com.zsElectric.boot.business.model.entity;
  2. import com.baomidou.mybatisplus.annotation.TableLogic;
  3. import com.baomidou.mybatisplus.annotation.Version;
  4. import com.zsElectric.boot.common.base.BaseEntity;
  5. import lombok.Getter;
  6. import lombok.Setter;
  7. import com.baomidou.mybatisplus.annotation.TableName;
  8. /**
  9. * 优惠劵模板实体对象
  10. *
  11. * @author zsElectric
  12. * @since 2025-12-15 11:14
  13. */
  14. @Getter
  15. @Setter
  16. @TableName("c_coupon_template")
  17. public class CouponTemplate extends BaseEntity {
  18. private static final long serialVersionUID = 1L;
  19. /**
  20. * 优惠劵名
  21. */
  22. private String name;
  23. /**
  24. * 优惠劵描述
  25. */
  26. private String description;
  27. /**
  28. * 状态 1.上线 2.下线
  29. */
  30. private Integer status;
  31. /**
  32. * 发放数量, -1 - 则表示不限制
  33. */
  34. private Integer totalCount;
  35. /**
  36. * 失效时间,领取后的几天。
  37. */
  38. private Integer failureTime;
  39. /**
  40. * 设置满多少金额可用,单位:分
  41. */
  42. private Integer usePrice;
  43. /**
  44. * 优惠金额,单位:分
  45. */
  46. private Integer discountPrice;
  47. /**
  48. * 领取时间:周 星期一 1 2 3 4 5 6 7
  49. */
  50. private String validTimeWeeks;
  51. /**
  52. * 领取时间 时分 08:20
  53. */
  54. private String validTimeHour;
  55. /**
  56. * 发放的总数量
  57. */
  58. private Integer totalCountAll;
  59. /**
  60. * 失效的数量
  61. */
  62. private Integer failureCount;
  63. /**
  64. * 创建人
  65. */
  66. private Long createBy;
  67. /**
  68. * 更新人
  69. */
  70. private Long updateBy;
  71. /**
  72. * 乐观锁
  73. */
  74. @Version
  75. private Integer version;
  76. /**
  77. * 逻辑删除(0-未删除 1-已删除)
  78. */
  79. @TableLogic
  80. private Integer isDeleted;
  81. }