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
 * 文件名: DisableAccountView
 * 创建者: JavaZou
 * 创建时间:2024/6/28 13:42
 */
@Getter
@Setter
@SearchBean(tables = "(select goods_id,sku_id,account,any_value(created_time) as created_time from user_ticket_cleared_record where account != '' and source = 'disable' group by goods_id,sku_id,account) ur" +
		" left join goods_don g on g.id = ur.goods_id" +
		" left join goods_don_sku sku on sku.id = ur.sku_id")
public class DisableAccountView {
	@DbField("g.id")
	private Long goodsId;

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

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

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

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

	@DbField("ur.created_time")
	private Date createdTime;
}
