CouponReceiveQuery.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package com.dk.oauth.model.query.integral;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.dk.common.infrastructure.handler.TimestampTypeHandler;
  5. import com.dk.common.infrastructure.handler.UuidTypeHandler;
  6. import com.dk.common.model.pojo.PageInfo;
  7. import com.fasterxml.jackson.annotation.JsonFormat;
  8. import io.swagger.annotations.ApiModelProperty;
  9. import lombok.Data;
  10. import lombok.experimental.Accessors;
  11. import java.time.LocalDateTime;
  12. /**
  13. * 优惠券使用
  14. */
  15. @Data
  16. @Accessors(chain = true)
  17. public class CouponReceiveQuery extends PageInfo<CouponReceiveQuery> {
  18. /*
  19. * 数据库字段
  20. */
  21. /**
  22. * 优惠券使用ID
  23. */
  24. @ApiModelProperty(value = "优惠券使用ID")
  25. @TableField(typeHandler = UuidTypeHandler.class)
  26. private String useId;
  27. /**
  28. * 公司ID
  29. */
  30. @ApiModelProperty(value = "公司ID")
  31. private Integer cpId;
  32. /**
  33. * 优惠券ID
  34. */
  35. @Excel(name = "优惠券ID")
  36. @ApiModelProperty(value = "优惠券ID")
  37. @TableField(typeHandler = UuidTypeHandler.class)
  38. private String couponId;
  39. /**
  40. * 优惠券发出ID
  41. */
  42. @ApiModelProperty(value = "优惠券发出ID")
  43. @TableField(typeHandler = UuidTypeHandler.class)
  44. private String sendId;
  45. /**
  46. * 微信Id
  47. */
  48. @Excel(name = "微信Id")
  49. @ApiModelProperty(value = "微信Id")
  50. private Integer userWxid;
  51. /**
  52. * 助力日期
  53. */
  54. @Excel(name = "助力日期")
  55. @ApiModelProperty(value = "助力日期")
  56. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  57. @TableField(typeHandler = TimestampTypeHandler.class)
  58. private LocalDateTime assistDate;
  59. /**
  60. * 有效标识 (1:正常 0:停用)
  61. */
  62. @Excel(name = "有效标识 (1:正常 0:停用)")
  63. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  64. private Boolean flgValid;
  65. /*
  66. * 相关属性
  67. * @TableField(exist = false)
  68. */
  69. /*
  70. * 关联属性 + 查询条件
  71. * @TableField(exist = false)
  72. */
  73. @Excel(name = "商户名称")
  74. @ApiModelProperty(value = "商户名称")
  75. private String cpName;
  76. @Excel(name = "优惠券名称")
  77. @ApiModelProperty(value = "优惠券名称")
  78. private String couponName;
  79. @ApiModelProperty(value = "查询7天内是否助力过")
  80. private Boolean assistFlag;
  81. private static final long serialVersionUID = 1L;
  82. }