package com.cyksj.model.views;

import com.cyksj.model.entity.WorkOrder;
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;

/*
 *项目名: netflix
 *文件名: UserWorkOrderView
 *创建者: JavaZou
 *创建时间:2023/6/26 9:56
 */
@Getter
@Setter
@SearchBean(tables = "work_order wo left join goods_don g on g.id = wo.goods_id" +
		" left join goods_don_sku sku on sku.id = wo.sku_id")
public class UserWorkOrderView {

	@DbField("wo.user_id")
	@JsonIgnore
	private Long userId;

	@DbField("wo.account")
	private String account;

	@DbField("wo.imgs")
	private String imgs;

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

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

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

	@DbField("wo.type")
	private WorkOrder.Type type;

	@DbField("wo.status")
	private WorkOrder.Status status;

	@DbField("wo.created_time")
	private Date createdTime;

	@DbField("wo.content")
	private String content;

	@DbField("wo.remark")
	private String remark;

	@DbField("wo.customer_service_auth_id")
	private String customerServiceAuthId;

	@DbField("wo.yhs_id")
	private Long yhsId;
}
