package com.cyksj.model.views;

import com.cyksj.model.entity.GoodsWholesaleOrderDon;
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;

/**
 * 项目名: yhlxj
 * 文件名: GoodsWholesaleOrderDonView
 * 创建者: JavaZou
 * 创建时间:2024/9/3 16:15
 */
@Getter
@Setter
@SearchBean(tables = "goods_wholesale_order_don go left join goods_don g on g.id = go.goods_id " +
		" left join goods_don_sku sku on sku.id = go.sku_id" +
		" left join goods_wholesale gw on gw.id = go.pid")
public class GoodsWholesaleOrderDonView {
	@DbField("go.id")
	private Long orderId;

	/**
	 * 批发id
	 */
	@DbField("go.pid")
	private Long pid;

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

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

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

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

	@DbField("go.type")
	private GoodsWholesaleOrderDon.Type type;

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

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

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

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

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

	@DbField("gw.sku_name")
	private String skuName;

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

	@DbField("go.status")
	private GoodsWholesaleOrderDon.Status status;

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

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

	@DbIgnore
	private Boolean isDeposit;
}
