CouponUse.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. package com.dk.oauth.model.pojo.integral;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.baomidou.mybatisplus.annotation.*;
  4. import java.io.Serializable;
  5. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  6. import com.dk.common.infrastructure.handler.*;
  7. import com.dk.common.model.pojo.PageInfo;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import lombok.Data;
  10. import lombok.AllArgsConstructor;
  11. import lombok.NoArgsConstructor;
  12. import lombok.EqualsAndHashCode;
  13. import lombok.experimental.Accessors;
  14. import io.swagger.annotations.ApiModel;
  15. import io.swagger.annotations.ApiModelProperty;
  16. import com.alibaba.fastjson.JSONObject;
  17. import java.util.List;
  18. import java.time.LocalDateTime;
  19. /**
  20. * 优惠券使用
  21. */
  22. @Data
  23. @AllArgsConstructor
  24. @NoArgsConstructor
  25. @EqualsAndHashCode(callSuper = true)
  26. @Accessors(chain = true)
  27. @ExportTitle("优惠券使用")
  28. @TableName(value = "t_mst_coupon_use", autoResultMap = true, schema = "dkic_a")
  29. @ApiModel(value="实体类:优惠券使用", description="表名:t_mst_coupon_use")
  30. public class CouponUse extends PageInfo<CouponUse> implements Serializable {
  31. /*
  32. * 数据库字段
  33. */
  34. /**
  35. * 优惠券使用ID
  36. */
  37. // @TableId(value = "use_id", type = IdType.AUTO)
  38. @ApiModelProperty(value = "优惠券使用ID")
  39. @TableField(typeHandler = UuidTypeHandler.class)
  40. private String useId;
  41. /**
  42. * 公司ID
  43. */
  44. @ApiModelProperty(value = "公司ID")
  45. private Integer cpId;
  46. /**
  47. * 优惠券发出ID
  48. */
  49. @ApiModelProperty(value = "优惠券发出ID")
  50. @TableField(typeHandler = UuidTypeHandler.class)
  51. private String sendId;
  52. /**
  53. * 优惠券ID
  54. */
  55. @Excel(name = "优惠券ID")
  56. @ApiModelProperty(value = "优惠券ID")
  57. @TableField(typeHandler = UuidTypeHandler.class)
  58. private String couponId;
  59. /**
  60. * 使用有效期
  61. */
  62. @Excel(name = "使用有效期")
  63. @ApiModelProperty(value = "使用有效期")
  64. private Integer useValidDays;
  65. /**
  66. * 获取日期
  67. */
  68. @Excel(name = "获取日期")
  69. @ApiModelProperty(value = "获取日期")
  70. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  71. @TableField(typeHandler = TimestampTypeHandler.class)
  72. private LocalDateTime receiveDate;
  73. /**
  74. * 核销日期
  75. */
  76. @Excel(name = "核销日期")
  77. @ApiModelProperty(value = "核销日期")
  78. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  79. @TableField(typeHandler = TimestampTypeHandler.class)
  80. private LocalDateTime useDate;
  81. /**
  82. * 优惠券状态 (【系统字典】未使用、已使用、已失效)
  83. */
  84. @Excel(name = "优惠券状态 (【系统字典】未使用、已使用、已失效)")
  85. @ApiModelProperty(value = "优惠券状态 (【系统字典】未使用、已使用、已失效)")
  86. private String couponStatus;
  87. /**
  88. * 获取用户
  89. */
  90. @Excel(name = "获取用户")
  91. @ApiModelProperty(value = "获取用户")
  92. @TableField(typeHandler = UuidTypeHandler.class)
  93. private String receiveUser;
  94. /**
  95. * 有效标识 (1:正常 0:停用)
  96. */
  97. @Excel(name = "有效标识 (1:正常 0:停用)")
  98. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  99. private Boolean flgValid;
  100. /*
  101. * 相关属性
  102. * @TableField(exist = false)
  103. */
  104. /*
  105. * 关联属性 + 查询条件
  106. * @TableField(exist = false)
  107. */
  108. private static final long serialVersionUID = 1L;
  109. }