package com.cyksj.model.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/*
 *项目名: netflix
 *文件名: ExcelDoubleVerifyAccountData
 *创建者: JavaZou
 *创建时间:2023/5/24 10:59
 */
@Getter
@Setter
@SearchBean(tables = "account a inner join account_double_verify_record ar on a.id = ar.account_id and ar.deleted is true" +
		" left join goods_don g on g.id = a.goods_id" +
		" left join groups_trips gt on gt.id = ar.groups_id" +
		" left join goods_don_sku sku on sku.id = gt.sku_id")
public class ExcelDoubleVerifyAccountData {

	@DbField("g.id")
	@ExcelIgnore
	private Long goodsId;

	@DbField("g.title")
	@ExcelProperty("平台")
	private String title;

	@DbField("sku.id")
	@ExcelIgnore
	private Long skuId;

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

	@DbField("a.account")
	@ExcelProperty("账号")
	private String account;

	@DbField("a.password")
	@ExcelProperty("密码")
	private String password;

	@DbField("a.expiry_time")
	@ExcelProperty("账号有效期")
	private Date expiryTime;

	@DbField("gt.available_num")
	@ExcelProperty("剩余座位数")
	private Integer availableNum;

	@DbField("a.api_secret")
	@ExcelProperty("双重验证密钥")
	private String apiSecret;

	@DbField("ar.remark")
	@ExcelProperty("待开启原因")
	private String reason;
}
