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;

/*
 *项目名: netflix
 *文件名: DoubleVerifyAccountView
 *创建者: JavaZou
 *创建时间:2023/5/19 14:28
 */
@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",
		where = "a.api_secret = ''")
public class DoubleVerifyAccountView {

	@DbField("ar.id")
	private Long recordId;

	@DbField("a.id")
	private Long id;

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

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

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

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

	@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("gt.num")
	private Integer num;

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

	@DbField("a.api_secret")
	private String apiSecret;

	@DbField("ar.remark")
	private String reason;
}
