package com.cyksj.model.views;

import com.cyksj.model.entity.OrderDon;
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
 *文件名: YhShopRegisterOrderDetail
 *创建者: JavaZou
 *创建时间:2023/9/18 14:43
 */
@Getter
@Setter
@SearchBean(tables = "(select o.* from order_don o left join yh_shop ys on ys.id = o.yhs_id :condition:) od left join goods_don g on g.id = od.goods_id left join goods_don_sku sku on sku.id = od.sku_id")
public class YhShopRegisterOrderDetail {
	@DbField("od.created_time")
	private Date createdTime;

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

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

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

	@DbIgnore
	private String nickname;

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

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

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

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