package com.cyksj.model.views;

import com.cyksj.model.entity.OrderDon;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/*
 *项目名: netflix
 *文件名: UserOrderDonDetail
 *创建者: JavaZou
 *创建时间:2023/4/27 12:06
 */
@Getter
@Setter
@SearchBean(tables = "order_don od left join goods_don g on g.id = od.goods_id" +
		" left join goods_don_sku gdk on gdk.id = od.sku_id")
public class UserOrderDonDetail {
	@DbField("od.id")
	private Long orderId;

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

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

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

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

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

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

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

	@DbField("ifnull(od.pay_time,od.created_time)")
	private Date payTime;

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

}
