package com.cyksj.model.views;

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

import java.math.BigDecimal;
import java.util.Date;

/*
 *项目名: netflix
 *文件名: RealGoodsInterestUserView
 *创建者: JavaZou
 *创建时间:2022/11/25 14:53
 */
@Getter
@Setter
@SearchBean(tables = "real_goods_interest_user ru " +
		" left join goods_don_sku gdk on gdk.id = ru.sku_id" +
		" left join user u on u.id = ru.user_id" +
		" left join goods_don gd on gd.id = gdk.goods_id",
		where = "ru.order_created_time < DATE_ADD(CURRENT_TIMESTAMP,interval -1 day)")
public class RealGoodsInterestUserView {
	@DbField("ru.id")
	private Long id;

	@DbField("ru.order_id")
	private Long orderId;

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

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

	@DbField("ru.user_id")
	private Long userId;

	@DbField("u.nickname")
	private String nickname;

	@DbField("ru.order_created_time")
	private Date orderCreatedTime;

	@DbField("ru.pay_time")
	private Date payTime;

	@DbField("gd.logo")
	private String logo;

	@DbField("gd.title")
	private String goodsTitle;

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

	@DbField("gdk.price")
	private BigDecimal money;

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

	@DbField("ru.interest_status")
	private RealGoodsInterestUser.Status interestStatus;
}
