You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.7 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. package com.example.demo.domain.entity;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  6. import lombok.Data;
  7. import lombok.NoArgsConstructor;
  8. import java.io.Serial;
  9. import java.io.Serializable;
  10. import java.math.BigDecimal;
  11. import java.util.Date;
  12. import java.util.HashSet;
  13. import java.util.List;
  14. import java.util.Set;
  15. @Data
  16. @NoArgsConstructor
  17. @JsonIgnoreProperties(ignoreUnknown = true)
  18. public class User implements Serializable {
  19. @Serial
  20. private static final long serialVersionUID = 1L;
  21. private Integer id; // 客户id
  22. private Integer jwcode; // 精网号
  23. private String name; // 客户姓名
  24. private String market; // 所属地区
  25. @ExcelIgnore
  26. private String marketName; // 所属地区
  27. @ExcelIgnore
  28. private BigDecimal sumPermanentGold; // 历史永久金币
  29. @ExcelIgnore
  30. private BigDecimal sumFreeJune; // 历史六月免费金币
  31. @ExcelIgnore
  32. private BigDecimal sumFreeDecember; // 历史十二月免费金币
  33. @ExcelIgnore
  34. private BigDecimal sumTaskGold; // 历史任务金币
  35. private BigDecimal sumGold;// 金币总数
  36. private BigDecimal currentPermanentGold; // 当前永久金币
  37. private BigDecimal currentFreeJune; // 当前六月免费金币
  38. private BigDecimal currentFreeDecember; // 当前十二月免费金币
  39. private BigDecimal currentTaskGold; // 当前任务金币
  40. private Integer rechargeNum; // 充值次数
  41. @ExcelIgnore
  42. private Integer sumConsume; // 历史消费
  43. private Integer consumeNum; // 消费次数
  44. @ExcelIgnore
  45. private BigDecimal sumConsumePermanent;
  46. @ExcelIgnore
  47. private BigDecimal sumConsumeTask;
  48. @ExcelIgnore
  49. private BigDecimal sumConsumeFree;
  50. @ExcelIgnore
  51. private List<String> markets;
  52. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
  53. private Date firstRecharge; // 首充日期
  54. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
  55. private Date createTime; // 创建时间
  56. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
  57. private Date updateTime; // 更新时间
  58. @ExcelIgnore
  59. private String sortField; //排序字段
  60. @ExcelIgnore
  61. private String sortOrder; //排序顺序
  62. @ExcelIgnore
  63. private Integer flag;//是否员工号
  64. @ExcelIgnore
  65. private Integer UserFlag;//是否员工号
  66. @ExcelIgnore
  67. private Set<String> roles = new HashSet<>(); // 用户角色集合
  68. public boolean hasRole(String role) {
  69. return roles != null && roles.contains(role);
  70. }
  71. }