package com.repair.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2023-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RepairRecord对象", description="")
public class RepairRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "报修区域")
    private String areaId;

    @ApiModelProperty(value = "报修物品ID")
    private Integer articleId;

    @ApiModelProperty(value = "校区ID")
    private Integer schoolId;

    @ApiModelProperty(value = "报修单号")
    private String recordNo;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "故障描述")
    private String description;

    @ApiModelProperty(value = "故障图片 最多三张（多张按逗号隔开）")
    private String image;

    @ApiModelProperty(value = "维修照片 最多两张 必填 （多张按逗号隔开）")
    private String maintenancer;

    @ApiModelProperty(value = "报修录音")
    private String voice;

    @ApiModelProperty(value = "录音时长")
    private Integer voiceLength;

    @ApiModelProperty(value = "维修录音")
    private String finishVoice;

    @ApiModelProperty(value = "维修录音时长")
    private Integer finishVoiceLength;

    @ApiModelProperty(value = "维修内容")
    private String content;

    @ApiModelProperty(value = "关单人ID 多个人用逗号隔开")
    private String customsOfficerId;

    @ApiModelProperty(value = "报修人ID")
    private Integer userId;

    @ApiModelProperty(value = "报修人姓名")
    private String userName;

    @ApiModelProperty(value = "报修人联系电话")
    private String userPhone;

    @ApiModelProperty(value = "报修人年级等信息")
    private String userClass;

    @ApiModelProperty(value = "楼栋ID")
    private Integer buildId;

    @ApiModelProperty(value = "维修人ID（多个人用逗号隔开）")
    private String maintenancerId;

    @ApiModelProperty(value = "维修人姓名（用协作、改派操作之前第一个师傅的名字）")
    private String maintenancerName;

    @ApiModelProperty(value = "维修人联系电话（用协作、改派操作之前第一个师傅的电话）")
    private String maintenancerPhone;

    @ApiModelProperty(value = "维修状态(派单中，维修中，转后勤，已完成，待确认，转单待审核，协作待审核，已取消，已关单)")
    private Integer maintenanceState;

    @ApiModelProperty(value = "是否是值班单 不是值班单0 是值班单1  定时到正常班次时间重新分配")
    private Integer isDuty;

    @ApiModelProperty(value = "订单价格")
    private BigDecimal price;

    @ApiModelProperty(value = "是否是协作单 不是协作单0 是协作单1  判断关单用的")
    private Integer isCollaborate;

    @ApiModelProperty(value = "后勤人员ID")
    private Integer logisticsPersonnel;

    @ApiModelProperty(value = "报修时间")
    private Date reportTime;

    @ApiModelProperty(value = "关单原因")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建人员")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新人员")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "逻辑删除 未删除：0；删除：1")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

}
