/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.workorder.deviceorder.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 设备工单实体类
 *
 * @author BladeX
 * @since 2021-04-21
 */
@Data
@TableName("cy_device_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DeviceOrder对象", description = "设备工单")
public class DeviceOrder extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 设备编号
	*/
		@ApiModelProperty(value = "设备编号")
		private String deviceId;
	/**
	* 告警时间
	*/
		@ApiModelProperty(value = "告警时间")
		private LocalDateTime alarmTime;
	/**
	* 设备类型
	*/
		@ApiModelProperty(value = "设备类型")
		private Integer deviceType;
	/**
	* 告警地点
	*/
		@ApiModelProperty(value = "告警地点")
		private String alarmPosition;
	/**
	* 告警类型
	*/
		@ApiModelProperty(value = "告警类型")
		private Integer alarmType;
	/**
	* 告警原因
	*/
		@ApiModelProperty(value = "告警原因")
		private String alarmReason;
	/**
	* 处理人
	*/
		@ApiModelProperty(value = "处理人")
		private String handlePerson;
	/**
	* 处理人电话
	*/
		@ApiModelProperty(value = "处理人电话")
		private String handlePhone;
	/**
	* 工单状态
	*/
		@ApiModelProperty(value = "工单状态")
		private Integer jobStatus;
	/**
	* 设备名称
	*/
		@ApiModelProperty(value = "设备名称")
		private String deviceName;
	/**
	* 告警内容
	*/
		@ApiModelProperty(value = "告警内容")
		private String alarmContent;
	/**
	* 机构路径
	*/
		@ApiModelProperty(value = "机构路径")
		private String orgPosition;
	/**
	* 处理备注
	*/
		@ApiModelProperty(value = "处理备注")
		private String remark;
	/**
	* 设备用途{10：居家设备，20：公共设备}
	*/
		@ApiModelProperty(value = "设备用途{10：居家设备，20：公共设备}")
		private Integer deviceUsage;
	/**
	* 流程定义主键
	*/
		@ApiModelProperty(value = "流程定义主键")
		private String processDefinitionId;
	/**
	* 流程实例主键
	*/
		@ApiModelProperty(value = "流程实例主键")
		private String processInstanceId;
	/**
	* 当前步骤
	*/
		@ApiModelProperty(value = "当前步骤")
		private String currentStep;
	/**
	* 流程步骤标志
	*/
		@ApiModelProperty(value = "流程步骤标志")
		private String flag;

	/**
	 * 租户id
	 */
	@ApiModelProperty(value = "租户id")
	private String tenantId;


}
