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.math.BigDecimal;
import java.util.Date;

/*
 *项目名: netflix
 *文件名: GiftCardUserPayView
 *创建者: JavaZou
 *创建时间:2023/8/29 18:24
 */
@Getter
@Setter
@SearchBean(tables = "gift_card_user_record gr left join user u on u.id = gr.user_id" +
		" left join user u2 on u2.id = gr.to_user_id")
public class GiftCardUserPayView {
	@DbField("gr.id")
	private Long id;

	@DbField("gr.gc_type")
	private Integer gcType;

	@DbField("gr.gc_detail")
	private String gcDetail;

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

	/**
	 * 赠送人
	 */
	@DbField("u.nickname")
	private String donor;

	@DbField("gr.cash")
	private BigDecimal cash;

	@DbField("gr.remain_cash")
	private BigDecimal remainCash;

	@DbField("gr.is_send")
	private Boolean isSend;

	@DbField("gr.is_pay")
	private Boolean isPay;

	@DbField("gr.to_user_id")
	private Long toUserId;

	@DbField("u2.nickname")
	private String toNickname;

	@DbField("gr.rc")
	private String code;

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

	@DbField("gr.received_time")
	private Date receivedTime;
}
