package com.cyksj.model.views;

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
 *文件名: RefundOrderDonView
 *创建者: JavaZou
 *创建时间:2023/4/17 15:49
 */
@Getter
@Setter
@SearchBean(tables = "refund_order_don rd left join order_don o on o.id = rd.order_id")
public class RefundOrderDonView {
	@DbField("rd.id")
	private Long id;

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

	@DbField("o.order_no")
	private String orderNo;

	@DbField("o.money")
	private BigDecimal orderMoney;

	@DbField("ifnull(o.refund_money,0)")
	private BigDecimal orderRefundMoney;

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

	@DbIgnore
	private String nickname;

	/**
	 * 退款单号
	 */
	@DbField("rd.out_refund_no")
	private String outRefundNo;

	/**
	 * 退款金额
	 */
	@DbField("rd.refund_fee")
	private BigDecimal refundMoney;

	/**
	 * 退款余额
	 */
	@DbField("rd.refund_balance")
	private BigDecimal refundBalance;

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

	@DbField("rd.goods_title")
	private String title;

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

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

	/**
	 * 退款方式
	 */
	@DbField("rd.refund_method")
	private String refundMethod;

	@DbField("rd.is_clear_balance")
	private Boolean isClearBalance;

	@DbField("rd.operator")
	private String operator;

	@DbField("rd.refund_desc")
	private String refundDesc;

	@DbField("rd.chat_img")
	private String chatImg;

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