package com.cyksj.model.views;

import com.cyksj.model.entity.EquipmentUserChanceRecord;
import com.cyksj.model.entity.EquipmentUserOrderVerifyRecord;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

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

/*
 *项目名: netflix
 *文件名: EquipmentUserDistributeDetailView
 *创建者: JavaZou
 *创建时间:2023/2/24 10:56
 */
@Getter
@Setter
@SearchBean(tables = "equipment_user_pay_record ecr left join order_don od on od.id = ecr.order_id")
public class EquipmentUserDistributeDetailView {
	@DbField("ecr.id")
	private Long recordId;

	@DbField("ecr.share_id")
	private Long shareId;

	/**
	 * 被分销人id
	 */
	@DbField("ecr.user_id")
	private Long userId;

	/**
	 * 被分销人昵称
	 */
	@DbIgnore
	private String nickname;

	@DbField("od.id")
	private Long orderId;

	@DbField("od.coupon_user_id")
	private Long couponUserId;

	/**
	 * 优惠券名称
	 */
	@DbIgnore
	private String couponName;

	@DbField("ecr.status")
	private EquipmentUserChanceRecord.Status status;

	@DbIgnore
	private String specVal;

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

	@DbField("od.money")
	private BigDecimal money;

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

	@DbIgnore
	private EquipmentUserOrderVerifyRecord verifyRecord;
}
