package 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.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: OrderDetail
 *创建者: JavaZou
 *创建时间:2023/4/14 15:00
 */
@Getter
@Setter
@SearchBean(tables = "order_don o left join goods_don_sku sku on o.sku_id = sku.id " +
		"left join goods_don g on g.id = o.goods_id ")
public class OrderDetailView {
	/**
	 * 订单id
	 */
	@DbField("o.id")
	private Long id;

	/**
	 * 商品id
	 */
	@DbField("sku.id")
	private Long skuId;

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

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

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

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

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

	@DbField("g.second_type")
	private Integer secondType;

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

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

	@DbField("o.num")
	private Integer num;

	@DbField("o.pay_title")
	private String payTitle;

	@DbIgnore
	private OrderDonWaybill waybill;

	@DbIgnore
	private OrderDonTransport transport;

	@DbIgnore
	private Integer mjFastNum;

	@DbIgnore
	private Integer mjRelaxNum;

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

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

	@DbIgnore
	private String account;

	@DbIgnore
	private String password;
}
