CouponQuery.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.UuidTypeHandler;
  5. import com.dk.common.model.pojo.PageInfo;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import lombok.Data;
  8. import lombok.experimental.Accessors;
  9. import java.math.BigDecimal;
  10. /**
  11. * 优惠券
  12. */
  13. @Data
  14. @Accessors(chain = true)
  15. public class CouponQuery extends PageInfo<CouponQuery>{
  16. /*
  17. * 数据库字段
  18. */
  19. /**
  20. * 优惠券ID
  21. */
  22. @ApiModelProperty(value = "优惠券ID")
  23. @TableField(typeHandler = UuidTypeHandler.class)
  24. private String couponId;
  25. /**
  26. * 优惠券名称
  27. */
  28. @Excel(name = "优惠券名称")
  29. @ApiModelProperty(value = "优惠券名称")
  30. private String couponName;
  31. /**
  32. * 优惠券描述
  33. */
  34. @Excel(name = "优惠券描述")
  35. @ApiModelProperty(value = "优惠券描述")
  36. private String couponDesc;
  37. /**
  38. * 折扣
  39. */
  40. @Excel(name = "折扣")
  41. @ApiModelProperty(value = "折扣")
  42. private BigDecimal discount;
  43. /**
  44. * 使用有效期 (优惠券在使用有效期内有效(单位:天))
  45. */
  46. @Excel(name = "使用有效期 (优惠券在使用有效期内有效(单位:天))")
  47. @ApiModelProperty(value = "使用有效期 (优惠券在使用有效期内有效(单位:天))")
  48. private Integer useValidDays;
  49. /**
  50. * 链接有效期 (优惠券发出链接的有效期(单位:小时))
  51. */
  52. @Excel(name = "链接有效期 (优惠券发出链接的有效期(单位:小时))")
  53. @ApiModelProperty(value = "链接有效期 (优惠券发出链接的有效期(单位:小时))")
  54. private Integer linkValidTimes;
  55. /**
  56. * 所需人数
  57. */
  58. @Excel(name = "所需人数")
  59. @ApiModelProperty(value = "所需人数")
  60. private Integer userNum;
  61. /**
  62. * 显示顺序 (【1 ~ 46655】)
  63. */
  64. @Excel(name = "显示顺序 (【1 ~ 46655】)")
  65. @ApiModelProperty(value = "显示顺序 (【1 ~ 46655】)")
  66. private Integer displayNo;
  67. /**
  68. * 有效标识 (1:正常 0:停用)
  69. */
  70. @Excel(name = "有效标识 (1:正常 0:停用)")
  71. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  72. private Boolean flgValid;
  73. /**
  74. * 系统版本
  75. */
  76. @Excel(name = "系统版本")
  77. @ApiModelProperty(value = "系统版本")
  78. private String gradeCode;
  79. /*
  80. * 相关属性
  81. * @TableField(exist = false)
  82. */
  83. /*
  84. * 关联属性 + 查询条件
  85. * @TableField(exist = false)
  86. */
  87. private static final long serialVersionUID = 1L;
  88. }