package cn.iocoder.yudao.module.inspection.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import cn.iocoder.yudao.annotation.Excel;
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;

/**
 * 【请填写功能名称】对象 inspection_info
 *
 * @author ruoyi
 * @date 2023-08-13
 */
@Data
public class InspectionInfo extends TenantBaseDO
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 检测订单主键 */
    @Excel(name = "检测订单主键")
    private Long inspectionOrderId;
    private Long userId;
    private String buyName;
    private String buyPhone;
    private String userAddress;
    private String unitName;

    private Long partnerId;
    /** 检测工主键 */
    @Excel(name = "检测工主键")
    private Long workId;

    /** 检查工名称 */
    @Excel(name = "检查工名称")
    private String workerName;

    /** 检查工手机号 */
    @Excel(name = "检查工手机号")
    private String workerPhone;
    private String workerAvatar;
    private Long categoryId;
    private String carNum;
    //车辆品牌型号
    private String carModel;
    //车辆性质 非营运  营运等
    private String carNature;
    //车子状态 新车 旧车等
    private String carStatus;
    private String carIdNo;
    /** 0不通过1通过 */
    @Excel(name = "0不通过1通过")
    private String isPass;
    //是否重审
    private String isRetrial;
    private String remark;

    /** 0进行中1已结束 */
    @Excel(name = "0进行中1已结束")
    private String status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;
    //是否制证并完成
    private String makeCert;
    /** 年 */
    @Excel(name = "年")
    private String year;

    /** 月 */
    @Excel(name = "月")
    private String month;

    /** 日 */
    @Excel(name = "日")
    private String day;
    //客户来源
    private String customerSource;
    @TableField(exist = false)
    private String lastTitle;

    /** 检查工手机号 */
    @TableField(exist = false)
    private String goodsName;

    /** 检查工手机号 */
    @TableField(exist = false)
    private Long realPayMoney;
    /** 订单号 */
    @TableField(exist = false)
    private String orderNo;
    @TableField(exist = false)
    private Long goodsId;

    @TableField(exist = false)
    private Long goodsPrice;
    @TableField(exist = false)
    private String goodsTitle;
    @TableField(exist = false)
    private String partnerName;
    @TableField(exist = false)
    private String skuName;
    @TableField(exist = false)
    private String skuId;
    @TableField(exist = false)
    private String payType;
    @TableField(exist = false)
    private String orderStatus;
    /** 下次保养日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date nextMaintenanceDate;
    /** 下次年检日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date nextInspectionDate;
    @TableField(exist = false)
    private Long  roleId;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm")
    @TableField(exist = false)
    private Date payTime;
    //2024-03-27新增字段
    //其他联系人手机号
    private String otherPhone;
    private String driverLicenesImg;
    //是否线上支付0否1是
    private String isPayOnline;
    //是否上门取车0否1是
    private String isPickCar;
    /** 当前流程节点 */
    private Integer nowOrderNum;

    /** 开始检测时需要 传入 选择项目的id、角色id、排序 */
    @TableField(exist = false)
    private List<InspectionWorkNode> inspectionWorkNodes;
    /** 流程节点id*/
    @TableField(exist = false)
    private String workNodeId;
    @TableField(exist = false)
    private Long dealUserId;
    @TableField(exist = false)
    private String workNodeStatus;
}
