package com.cyksj.model.views;

import com.cyksj.model.entity.WebWholesaleOrderDon;
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.util.Date;

/**
 * 项目名: yhlxj2
 * 文件名: WebWholesaleCodeDetailView
 * 创建者: JavaZou
 * 创建时间:2025/6/5 12:09
 */
@Getter
@Setter
@SearchBean(tables = "web_wholesale_order_don wod inner join web_wholesale_order_don_code_relate odr on wod.id = odr.order_id" +
		" left join web_info wo on wo.id = wod.user_id" +
		" left join wholesale_user u on u.id = odr.dh_user_id")
public class WebWholesaleCodeDetailView {
	/**
	 * 店铺主id
	 */
	@DbField("wod.user_id")
	private Long userId;

	/**
	 * 店铺名
	 */
	@DbField("wo.shop_name")
	private String shopName;

	@DbField("wod.id")
	private Long orderId;

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

	/**
	 * 兑换用户id
	 */
	@DbField("odr.dh_user_id")
	private Long dhUserId;

	/**
	 * 兑换用户
	 */
	@DbField("u.username")
	private String username;

	@DbField("odr.code")
	private String code;

	/**
	 * 支付状态
	 */
	@DbField("wod.status")
	@JsonIgnore
	private WebWholesaleOrderDon.Status status;

	/**
	 * 支付标题
	 */
	@DbField("wod.pay_title")
	private String payTitle;

	@DbField("odr.update_time")
	private Date updateTime;
}
