package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@SearchBean(tables = "groups_trips gt left join goods_don_sku sku on gt.sku_id = sku.id " +
        "left join goods_don g on g.id = sku.goods_id",
        where = "gt.status = 'waiting' and g.type = 1 and g.second_type = 2 and (g.special_type is null or g.special_type not in ('courseware','recharge'))",
        groupBy = "g.title")
public class GroupsTripsWaitingView {
    @DbField("g.title")
    private String title;

    @DbField("count(*)")
    private Integer waitingNum;
}
