package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.*;
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;

/*
 *项目名: netflix
 *文件名: RealGoodsOrderHandle
 *创建者: JavaZou
 *创建时间:2022/11/29 16:41
 */
@Getter
@Setter
@SearchBean(tables = "real_goods_order_handle rh left join order_don od on od.id = rh.order_id")
public class RealGoodsOrderHandle{
	@TableId(value = "id",type = IdType.AUTO)
	@DbField("rh.id")
	private Long id;

	@DbField("rh.order_id")
	private Long orderId;

	/**
	 * 售前客服名称
	 */
	@DbField("rh.before_service_name")
	private String beforeServiceName;

	/**
	 * 售后客服名称
	 */
	@DbField("rh.after_service_name")
	private String afterServiceName;

	/**
	 * 售前操作更换次数
	 */
	@DbField("rh.before_op_num")
	private Integer beforeOpNum;

	/**
	 * 售后操作更换次数
	 */
	@DbField("rh.after_op_num")
	private Integer afterOpNum;

	@DbField("od.status")
	@TableField(exist = false)
	private OrderDon.Status status;

	@DbField("od.money")
	@TableField(exist = false)
	private BigDecimal money;

	/**
	 * 订单标注来源
	 * 用于客服标注订单来源
	 */
	@DbField("rh.label_source")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String labelSource;

	/**
	 * 创建时间
	 */

	@DbField("rh.created_time")
	@TableField(fill = FieldFill.INSERT)
	private Date createdTime;

	/**
	 * 修改时间
	 */
	@DbField("rh.update_time")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
}
