package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: OrderDonUserCommentView
 *创建者: JavaZou
 *创建时间:2023/7/28 14:05
 */
@Getter
@Setter
@SearchBean(tables = "(select id,user_id,goods_id,sku_id from order_don :condition:) o" +
		" left join goods_don g on g.id = o.goods_id" +
		" left join goods_don_sku sku on sku.id = o.sku_id" +
		" left join order_comment oc on oc.order_id = o.id",
		where = "oc.id is null")
public class OrderDonUserCommentView {
	@DbField("o.id")
	private Long orderId;

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

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

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

	@DbField("sku.picture")
	private String picture;

	@DbField("sku.price")
	private BigDecimal price;

	@DbField("g.type")
	@JsonIgnore
	private Integer goodsType;
}
