package com.jeeplus.business.meetingRoom.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("jy_meeting_room")
public class MeetingRoom extends BaseEntity {

    private String id;

    /**
     * 标题
     */
    private String title;

    /**
     * 会议开始,结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /**
     * 会议时长
     */
    private Integer duration;

    /**
     * 会议说明
     */
    private String remarks;

    /**
     * 流程id
     */
    private String procInsId;

    /**
     * 流程信息
     */
    private String processDefinitionId;
    private String taskId;

    /**
     * 状态
     */
    private String status;


    /**
     * 创建时间
     */
    @TableField(exist = false)
    private String[] meetingDates;

    /**
     * 创建人
     */
    @TableField(exist = false)
    private String createName;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 部门
     */
    @TableField(exist = false)
    private String officeId;
    @TableField(exist = false)
    private String officeName;

    private static final long serialVersionUID = 1L;






}
