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 javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

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

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "微校卡号")
    @NotBlank(message = "微校卡号不能为空")
    private String cardNumber;

    @ApiModelProperty(value = "用户名称")
    @NotBlank(message = "用户名称不能为空")
    private String userName;

    @ApiModelProperty(value = "用户手机号")
    @NotBlank(message = "用户手机号不能为空")
    private String userPhone;

    @ApiModelProperty(value = "用户身份ID 用户：0;维修师傅：1;郭班长：2;后勤人员：3")
    @NotNull(message = "用户身份不能为空")
    private Integer userZzid;

    @ApiModelProperty(value = "工种")
    private Integer workType;

    @ApiModelProperty(value = "微校身份类型ID")
    @NotNull(message = "微校身份类型不能为空")
    private Integer identityType;

    @ApiModelProperty(value = "学院")
    private String college;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "专业")
    private String profession;

    @ApiModelProperty(value = "校区ID")
    @NotNull(message = "校区不能为空")
    private Integer schoolId;

    @ApiModelProperty(value = "维修班 校方人员：0；第三方人员：1")
    private Integer teamId;

    @ApiModelProperty(value = "员工状态 正常接单：1；停止接单：2；订单饱和：3")
    private Integer state;

    @ApiModelProperty(value = "楼栋关联ID（多个楼栋用逗号隔开）")
    private String buildId;

    @ApiModelProperty(value = "故障类型（改名叫物品）关联ID（多个故障类型用逗号隔开）")
    private String articleId;

    @ApiModelProperty(value = "是否能转换  不能转换：0；能转换：1")
    @NotNull(message = "转换状态不能为空")
    private Integer isChange;

    @ApiModelProperty(value = "接单考核时间")
    private Integer acceptanceAssessTime;

    @ApiModelProperty(value = "维修考核时间")
    private Integer maintenanceAssessTime;

    @ApiModelProperty(value = "微信唯一标识openid")
    private String openid;

    @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;

}
