package com.ghy.order.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * @author clunt
 * 细单表(转派后产生的订单)
 */
@Data
public class OrderDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    @Excel(name = "商户ID", cellType = Excel.ColumnType.NUMERIC)
    private Long deptId;

    @Excel(name = "订单编码", cellType = Excel.ColumnType.STRING)
    private String code;

    @Excel(name = "主单id", cellType = Excel.ColumnType.NUMERIC)
    private Long orderMasterId;

    @Excel(name = "主单编码", cellType = Excel.ColumnType.STRING)
    private String orderMasterCode;

    @Excel(name = "消费者用户id", cellType = Excel.ColumnType.NUMERIC)
    private Long customerId;

    @Excel(name = "订单类型", cellType = Excel.ColumnType.NUMERIC)
    private Integer orderType;

    @Excel(name = "订单状态", cellType = Excel.ColumnType.NUMERIC)
    private Integer orderStatus;

    @Excel(name = "接单师傅id", cellType = Excel.ColumnType.NUMERIC)
    private Long workerId;

    @Excel(name = "接单时间", cellType = Excel.ColumnType.STRING)
    private Date revTime;

    @Excel(name = "服务开始时间/上门时间", cellType = Excel.ColumnType.STRING)
    private Date workBeginTime;

    @Excel(name = "服务完成时间", cellType = Excel.ColumnType.STRING)
    private Date workFinishTime;

    private Date createTime;
}
