AccountView.java 4.0 KB

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