AccountView.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. package com.cyksj.model.manage.views;
  2. import com.cyksj.model.entity.GroupsTrips;
  3. import com.ejlchina.searcher.bean.DbField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import lombok.Getter;
  7. import lombok.Setter;
  8. import java.math.BigDecimal;
  9. import java.util.Date;
  10. /**
  11. * @author chan
  12. * @date 2022/10/12 12:02 PM
  13. */
  14. @Getter
  15. @Setter
  16. @SearchBean(tables = "account a left join goods_don g on a.goods_id = g.id " +
  17. "left join groups_trips gt on gt.account_id = a.id " +
  18. "left join goods_don_sku gdk on gdk.id = gt.sku_id",
  19. where = ":extra_sql:")
  20. public class AccountView {
  21. @DbField("a.id")
  22. private Long id;
  23. @DbField("g.id")
  24. private Long goodsId;
  25. @DbField("g.title")
  26. private String title;
  27. @DbField("a.bank_card")
  28. private String bankCard;
  29. @DbField("a.account")
  30. private String account;
  31. @DbField("a.password")
  32. private String password;
  33. @DbField("a.api_key")
  34. private String apiKey;
  35. @DbField("a.verify_codes")
  36. private String verifyCodes;
  37. @DbField("a.api_secret")
  38. private String apiSecret;
  39. @DbField("a.start_time")
  40. private Date startTime;
  41. @DbField("a.expiry_time")
  42. private Date expiryTime;
  43. @DbField("a.amount")
  44. private BigDecimal amount;
  45. /**
  46. * 国区id
  47. */
  48. @DbField("a.cn_account")
  49. private String cnAccount;
  50. /**
  51. * 美区id
  52. */
  53. @DbField("a.us_account")
  54. private String usAccount;
  55. @DbField("a.customer_service_id")
  56. private Long customerServiceId;
  57. @DbField("a.secret")
  58. private String secret;
  59. @DbIgnore
  60. private String customerServiceName;
  61. @DbIgnore
  62. private Integer invited;
  63. @DbIgnore
  64. private Integer unInvited;
  65. @DbIgnore
  66. private Integer total;
  67. @DbField("gt.id")
  68. private Long groupsId;
  69. @DbField("gt.status")
  70. private GroupsTrips.Status gtStatus;
  71. /**
  72. * 账号备注
  73. */
  74. @DbField("a.remark")
  75. private String remark;
  76. @DbField("gdk.id")
  77. private Long skuId;
  78. @DbField("a.gpt_refresh_token")
  79. private String gptRefreshToken;
  80. /**
  81. * 规格
  82. */
  83. @DbField("gdk.spec_val")
  84. private String specVal;
  85. //@DbField("select count(ur.id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self' :yesTime:")
  86. @DbIgnore
  87. private Integer expiryCount;
  88. //@DbField("if((select count(distinct relation_id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true and source = 'self' :yesTime:)>=5,true,false)")
  89. @DbIgnore
  90. private Boolean expiredAll;
  91. /**
  92. * 今日有过期人员
  93. */
  94. @DbIgnore
  95. private Boolean hadExpiredToDay;
  96. @DbIgnore
  97. private Integer updatePwdNum;
  98. @DbIgnore
  99. private Date lastUpdatePwdDate;
  100. }