/*
 *      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.estate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-12-28
 */
@Data
@TableName("estate_work_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WorkOrder对象", description = "WorkOrder对象")
public class WorkOrder extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 工单名称
	*/
		@ApiModelProperty(value = "工单名称")
		private String orderName;
	/**
	* 工单编号
	*/
		@ApiModelProperty(value = "工单编号")
		private String orderNo;
	/**
	* 事件类型
	*/
		@ApiModelProperty(value = "事件类型")
		private Integer eventType;
	/**
	* 事件描述
	*/
		@ApiModelProperty(value = "事件描述")
		private String eventDesc;
	/**
	 * 事件简述
	 */
	@ApiModelProperty(value = "事件简述")
	private String bizTag;

	/**
	 * 工单组ID
	 */
	@ApiModelProperty(value = "工单组ID")
	private Long groupId;

	/**
	 * 工单组成员ID
	 */
	@ApiModelProperty(value = "工单组成员ID")
	private Long groupUserId;
	/**
	* 处理状态
	*/
		@ApiModelProperty(value = "处理状态")
		private Integer handleStatus;

	/**
	 * 处理时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "处理时间")
	private Date handleTime;
	/**
	* 图片，逗号隔开
	*/
		@ApiModelProperty(value = "图片，逗号隔开")
		private String img;
	/**
	* 联系人
	*/
		@ApiModelProperty(value = "联系人")
		private String contact;
	/**
	* 联系电话
	*/
		@ApiModelProperty(value = "联系电话")
		private String contactPhone;

	/**
	 * 设备序列号
	 */
	@ApiModelProperty(value = "设备序列号")
	private String deviceSerialNum;


}
