package com.cyksj.model.manage.views;

import com.cyksj.model.entity.OrderDon;
import com.cyksj.model.entity.OrderDonTransport;
import com.cyksj.model.entity.OrderDonWaybill;
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;

/*
 *项目名: netflix
 *文件名: OrderDetail
 *创建者: JavaZou
 *创建时间:2023/4/14 15:00
 */
@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 g.id = o.goods_id ")
public class UpgradeOrderDetailView {
	/**
	 * 订单id
	 */
	@DbField("o.id")
	private Long id;

	/** 订单号 */
	@DbField("o.order_no")
	private String orderNo ;

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

	@DbField("g.id")
	private Long goodsId;

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

	/**
	 * 微信订单号
	 */
	@DbField("o.transaction_id")
	private String transactionId;

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

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

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

	@DbField("o.package_id")
	private Long packageId;

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