package com.cyksj.model.views;

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

import java.util.Date;

/*
 *项目名: yhlxj
 *文件名: AccountSpecificView
 *创建者: JavaZou
 *创建时间:2023/9/21 15:03
 */
@Getter
@Setter
@SearchBean(tables = "account a inner join groups_trips gt on gt.account_id = a.id :condition:" +
		" left join goods_don g on g.id = a.goods_id" +
		" left join goods_don_sku sku on sku.id = gt.sku_id")
public class AccountSpecificView {
	@DbField("a.id")
	private Long id;

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

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

	@DbField("a.start_time")
	private Date startTime;

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

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

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

	@DbField("g.title")
	private String title;

	@DbField("sku.spec_val")
	private String specVal;

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

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

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

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

	@DbField("a.update_time")
	private Date updateTime;
}
