package com.cyksj.model.views;

import com.cyksj.model.entity.*;
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.util.Date;

/*
 *项目名: netflix
 *文件名: DrawRecordDetail
 *创建者: JavaZou
 *创建时间:2023/1/17 10:25
 */
@Getter
@Setter
@SearchBean(tables = "lucky_draw_record lr left join order_don od on od.id = lr.order_id")
public class DrawRecordDetail {

	@DbField("lr.draw_id")
	private Long drawId;

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

	@DbField("lr.coupon_id")
	private Long couponId;

	/**
	 * 奖品类型
	 */
	@DbField("lr.type")
	private LuckyDraw.Type type;

	@DbIgnore
	private String nickname;

	/**
	 * 领取状态
	 */
	@DbField("lr.status")
	private LuckyDrawRecord.Status drawStatus;

	@DbField("od.status")
	private OrderDon.Status orderDonStatus;

	@DbField("lr.ex_code")
	private String exCode;

	@DbField("lr.created_time")
	private Date createTime;
}
