package com.cyksj.model.views;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.entity.GoodsWholesaleUserDeposit;
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;

/**
 * 项目名: yhlxj2
 * 文件名: GoodsWholesaleUserDepositView
 * 创建者: JavaZou
 * 创建时间:2024/9/10 13:52
 */
@Getter
@Setter
@SearchBean(tables = "goods_wholesale_user_deposit guwd left join user u on u.id = guwd.user_id")
public class GoodsWholesaleUserDepositView {
	@DbField("guwd.id")
	private Long orderId;

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

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

	@DbField("guwd.type")
	private GoodsWholesaleUserDeposit.Type type;

	/**
	 * 支付状态
	 */
	@DbField("guwd.status")
	private GoodsWholesaleUserDeposit.Status status;

	/**
	 * 累积批发
	 */
	@TableField(exist = false)
	@DbIgnore
	private Integer total;


	@DbField("guwd.order_no")
	private String orderNo;

	@DbField("guwd.transaction_id")
	private String transactionId;

	/**
	 * 批发数达标
	 */
	@DbField("guwd.is_goal")
	private Boolean isGoal;

	@DbField("guwd.pay_time")
	private Date payTime;

	@DbIgnore
	private Boolean isDeposit;

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

