package com.cyksj.model.views;

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;

/**
 * 项目名: yhlxj
 * 文件名: CorpActiveCodeOrderView
 * 创建者: JavaZou
 * 创建时间:2023/10/10 11:35
 */
@Getter
@Setter
@SearchBean(tables = "corp_user cu inner join order_don o on cu.user_id = o.user_id and cu.user_id != 0 and o.status not in ('close','noPayment','refund') :acId:" +
		" 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 user u on u.id = o.user_id")
public class CorpActiveCodeOrderView {
	@DbField("o.id")
	private Long orderId;

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

	@DbField("u.nickname")
	private String nickname;

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

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

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

	@DbField("o.created_time")
	private Date createdTime;
}
