package com.cyksj.model.manage.views;

import com.cyksj.model.entity.UpgradeOrderDon;
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
 *文件名: OrderDonBackView
 *创建者: JavaZou
 *创建时间:2023/4/26 17:49
 */
@Getter
@Setter
@SearchBean(tables = "upgrade_order_don o left join upgrade_package up on o.package_id = up.id " +
		"left join goods_don g on up.goods_id = g.id " +
		"left join goods_don_sku gds on o.sku_id = gds.id ",
		where = ":condition:"
)
public class UpgradeOrderDonBackView {
	@DbField("o.id")
	private Long id;

	@DbField("o.relation_id")
	private Long relationId;

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

	@DbField("o.transaction_id")
	private String transactionId;

	@DbField("up.name")
	private String packageName;

	/**
	 * 平台id
	 */
	@DbField("o.goods_id")
	private Long goodsId;

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

	@DbField("gds.id")
	private Long skuId;

	@DbField("gds.spec_val")
	private String goodsSpecVal;

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

	@DbIgnore
	private String nickname;

	@DbIgnore
	private String register;

	/**
	 * 登录注册手机号
	 */
	@DbIgnore
	private String loginPhone;

	/**
	 * 登录注册邮箱
	 */
	@DbIgnore
	private String email;

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

	@DbField("o.balance")
	private BigDecimal balance;

	@DbField("o.refund_money")
	private BigDecimal refundMoney;

	@DbField("o.refund_balance")
	private BigDecimal refundBalance;

	@DbField("o.status")
	private UpgradeOrderDon.Status status;

	@DbField("o.type")
	private UpgradeOrderDon.Type type;

	@DbField("o.created_time")
	private Date createdTime;

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

	/**
	 * 下单手机号
	 */
	@DbField("o.phone")
	private String orderPhone;

}