IntegralItemQuery.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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.LocalDate;
  12. import java.time.LocalDateTime;
  13. /**
  14. * 积分明细
  15. */
  16. @Data
  17. @Accessors(chain = true)
  18. public class IntegralItemQuery extends PageInfo<IntegralItemQuery> {
  19. /*
  20. * 数据库字段
  21. */
  22. /**
  23. * 积分明细ID
  24. */
  25. @ApiModelProperty(value = "积分明细ID")
  26. @TableField(typeHandler = UuidTypeHandler.class)
  27. private String itemId;
  28. /**
  29. * 积分类型 (【系统字典】注册;签到;分享;使用)
  30. */
  31. @Excel(name = "积分类型 (【系统字典】注册;签到;分享;使用)")
  32. @ApiModelProperty(value = "积分类型 (【系统字典】注册;签到;分享;使用)")
  33. private String integralType;
  34. /**
  35. * 积分 (使用存负数)
  36. */
  37. @Excel(name = "积分 (使用存负数)")
  38. @ApiModelProperty(value = "积分 (使用存负数)")
  39. private Integer integral;
  40. /**
  41. * 公司ID
  42. */
  43. @Excel(name = "公司ID")
  44. @ApiModelProperty(value = "公司ID")
  45. private Integer cpId;
  46. /**
  47. * 来源公司Id
  48. */
  49. @Excel(name = "来源公司Id")
  50. @ApiModelProperty(value = "来源公司Id")
  51. private Integer cpIdFrom;
  52. /**
  53. * 日期
  54. */
  55. @Excel(name = "日期")
  56. @ApiModelProperty(value = "日期")
  57. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  58. @TableField(typeHandler = TimestampTypeHandler.class)
  59. private LocalDateTime accDate;
  60. /**
  61. * 开始日期
  62. */
  63. @ApiModelProperty(value = "开始日期")
  64. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  65. @TableField(typeHandler = TimestampTypeHandler.class)
  66. private LocalDate accDateStart;
  67. /**
  68. * 截止日期
  69. */
  70. @Excel(name = "截止日期")
  71. @ApiModelProperty(value = "账务截止日期")
  72. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  73. @TableField(typeHandler = TimestampTypeHandler.class)
  74. private LocalDate accDateEnd;
  75. /**
  76. * 有效标识 (1:正常 0:停用)
  77. */
  78. @Excel(name = "有效标识 (1:正常 0:停用)")
  79. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  80. private Boolean flgValid;
  81. /**
  82. * 操作用户 (企业微信ID)
  83. */
  84. @Excel(name = "操作用户 (企业微信ID)")
  85. @ApiModelProperty(value = "操作用户 (企业微信ID)")
  86. @TableField(typeHandler = UuidTypeHandler.class)
  87. private String userId;
  88. /**
  89. * 备注
  90. */
  91. @Excel(name = "备注")
  92. @ApiModelProperty(value = "备注")
  93. private String remarks;
  94. /*
  95. * 相关属性
  96. * @TableField(exist = false)
  97. */
  98. /*
  99. * 关联属性 + 查询条件
  100. * @TableField(exist = false)
  101. */
  102. @Excel(name = "商户名称")
  103. @ApiModelProperty(value = "商户名称")
  104. private String cpName;
  105. @Excel(name = "来源商户名称")
  106. @ApiModelProperty(value = "来源商户名称")
  107. private String cpNameFrom;
  108. private static final long serialVersionUID = 1L;
  109. }