package com.cyksj.model.views;

import com.cyksj.model.entity.YhShopDistributeWaitingSendPoints;
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
 *文件名: YhShopDistributeOrderView
 *创建者: JavaZou
 *创建时间:2023/9/18 15:02
 */
@Getter
@Setter
@SearchBean(tables = "(select * from yh_shop_distribute_waiting_send_points :suId:) dp left join order_don od on od.id = dp.order_id" +
		" left join user u on u.id = dp.user_id" +
		" left join goods_don gd on gd.id = od.goods_id")
public class YhShopDistributeOrderView {
	@DbField("u.nickname")
	private String nickname;

	@DbField("u.id")
	private Long userId;

	@DbField("dp.shop_user_id")
	private Long shopUserId;

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

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

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

	/**
	 * 提成金额
	 */
	@DbField("dp.money")
	private BigDecimal takeMoney;

	@DbField("dp.send_status")
	private YhShopDistributeWaitingSendPoints.Status sendStatus;
}
