|
@@ -17,7 +17,9 @@ import java.util.Date;
|
|
|
@Setter
|
|
@Setter
|
|
|
@SearchBean(tables = "account a left join goods_don g on a.goods_id = g.id " +
|
|
@SearchBean(tables = "account a left join goods_don g on a.goods_id = g.id " +
|
|
|
"left join groups_trips gt on gt.account_id = a.id " +
|
|
"left join groups_trips gt on gt.account_id = a.id " +
|
|
|
- "left join goods_don_sku gdk on gdk.id = gt.sku_id")
|
|
|
|
|
|
|
+ "left join groups_relation gr on gr.groups_id = gt.id " +
|
|
|
|
|
+ "left join goods_don_sku gdk on gdk.id = gt.sku_id",
|
|
|
|
|
+ groupBy = "a.id,g.id,g.title,a.account,a.password,a.start_time,a.expiry_time,a.amount,a.cn_account,a.us_account,gt.id,a.remark,gdk.spec_val")
|
|
|
public class AccountView {
|
|
public class AccountView {
|
|
|
|
|
|
|
|
@DbField("a.id")
|
|
@DbField("a.id")
|
|
@@ -80,7 +82,9 @@ public class AccountView {
|
|
|
@DbField("gdk.spec_val")
|
|
@DbField("gdk.spec_val")
|
|
|
private String specVal;
|
|
private String specVal;
|
|
|
|
|
|
|
|
- @DbField("select count(ur.id) from user_ticket_cleared_record ur where ur.account_id = a.id")
|
|
|
|
|
|
|
+ @DbField("select count(ur.id) from user_ticket_cleared_record ur where ur.account_id = a.id and deleted is true")
|
|
|
private Integer expiredCount;
|
|
private Integer expiredCount;
|
|
|
|
|
|
|
|
|
|
+ @DbField("max(gr.expiry_time)")
|
|
|
|
|
+ private Date lastTicketTime;
|
|
|
}
|
|
}
|