AccountView.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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("g.second_type")
  28. private Integer goodsSecondType;
  29. @DbField("a.bank_card")
  30. private String bankCard;
  31. @DbField("a.account")
  32. private String account;
  33. @DbField("a.gpt_email_pwd")
  34. private String emailPassword;
  35. @DbField("a.password")
  36. private String password;
  37. @DbField("a.is_month")
  38. private Boolean isMonth;
  39. @DbField("a.api_key")
  40. private String apiKey;
  41. @DbField("a.gpt_email_pwd")
  42. private String gptEmailPwd;
  43. @DbField("a.verify_codes")
  44. private String verifyCodes;
  45. @DbField("a.api_secret")
  46. private String apiSecret;
  47. @DbField("a.start_time")
  48. private Date startTime;
  49. @DbField("a.expiry_time")
  50. private Date expiryTime;
  51. @DbField("a.amount")
  52. private BigDecimal amount;
  53. /**
  54. * 国区id
  55. */
  56. @DbField("a.cn_account")
  57. private String cnAccount;
  58. /**
  59. * 美区id
  60. */
  61. @DbField("a.us_account")
  62. private String usAccount;
  63. @DbField("a.customer_service_id")
  64. private Long customerServiceId;
  65. @DbField("a.secret")
  66. private String secret;
  67. @DbIgnore
  68. private String customerServiceName;
  69. @DbIgnore
  70. private Integer invited;
  71. @DbIgnore
  72. private Integer unInvited;
  73. @DbIgnore
  74. private Integer total;
  75. @DbField("gt.id")
  76. private Long groupsId;
  77. @DbField("gt.status")
  78. private GroupsTrips.Status gtStatus;
  79. /**
  80. * 账号备注
  81. */
  82. @DbField("a.remark")
  83. private String remark;
  84. @DbField("a.email")
  85. private String email;
  86. @DbField("gdk.id")
  87. private Long skuId;
  88. @DbField("gdk.is_mirror")
  89. private Boolean isMirror;
  90. @DbField("a.gpt_refresh_token")
  91. private String gptRefreshToken;
  92. /**
  93. * 规格
  94. */
  95. @DbField("gdk.spec_val")
  96. private String specVal;
  97. @DbField("a.created_time")
  98. private Date createdTime;
  99. //@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:")
  100. @DbIgnore
  101. private Integer expiryCount;
  102. //@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)")
  103. @DbIgnore
  104. private Boolean expiredAll;
  105. /**
  106. * 今日有过期人员
  107. */
  108. @DbIgnore
  109. private Boolean hadExpiredToDay;
  110. @DbIgnore
  111. private Integer updatePwdNum;
  112. @DbIgnore
  113. private Date lastUpdatePwdDate;
  114. @DbField("a.pre_sku_ids")
  115. private String preSkuIds;
  116. @DbField("a.type")
  117. private Integer accountType;
  118. @DbIgnore
  119. private Boolean isMjMirror;
  120. @DbField("a.is_disable")
  121. private Boolean isDisable;
  122. @DbField("a.cookie")
  123. private String cookie;
  124. @DbField("a.relate_email")
  125. private String relateEmail;
  126. @DbField("a.type")
  127. private Integer type;
  128. @DbField("a.verify_link")
  129. private String verifyLink;
  130. /**
  131. * 是否外部采购
  132. */
  133. @DbField("a.outside_purchase")
  134. private Boolean outsidePurchase;
  135. }