package com.cyksj.model.views;

import com.cyksj.model.entity.GroupsTrips;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/*
 *项目名: netflix
 *文件名: CloseGroupsTripsView
 *创建者: JavaZou
 *创建时间:2023/5/18 14:55
 */
@Getter
@Setter
@SearchBean(tables = "account a inner join groups_trips gt on gt.account_id = a.id")
public class CloseGroupsTripsView {
	@DbField("a.id")
	private Long id;

	@DbField("a.account")
	private String account;

	@DbField("a.password")
	private String password;

	@DbField("a.goods_id")
	private Long goodsId;

	@DbField("select title from goods_don where id = a.goods_id limit 1")
	private String title;

	@DbField("gt.sku_id")
	private Long skuId;

	@DbField("select spec_val from goods_don_sku where id = gt.sku_id limit 1")
	private String specVal;

	@DbField("gt.id")
	private Long groupsId;

	@DbField("gt.num")
	private Integer num;

	@DbField("gt.available_num")
	private Integer availableNum;

	@DbField("gt.status")
	private GroupsTrips.Status groupsStatus;

	@DbField("a.created_time")
	private Date createdTime;

	@DbField("a.expiry_time")
	private Date expiryTime;

	/**
	 * 废弃车队
	 */
	@DbField("a.is_abandon")
	private Boolean isAbandon;
}
