Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / meet / MeetPlan.java
package com.newfiber.api.pc.model.meet;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 应急预案实体类
 * @Author:zzh
 * @CreateDate:2020/11/25 17:06
 * @Description:
 */
@Data
@NoArgsConstructor
@TableName("meet_plan")
public class MeetPlan implements Serializable {
    @TableId(value = "m_id",type = IdType.AUTO)
    private Integer mId;

    /** 创建人 */
    @TableField("user_no")
    private String userNo;
    /** 预案名称 */
    @TableField("plan_name")
    private String planName;
    /** 预案类别id */
    @TableField("plan_type_id")
    private Integer planTypeId;
    /** 预案类型名 */
    @TableField("plan_type_name")
    private String planTypeName;
    /** 预案级别id */
    @TableField("plan_level_id")
    private Integer planLevelId;
    /** 预案级别名 */
    @TableField("plan_level_name")
    private String planLevelName;
    /** 修改时间 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;
    /** 创建时间 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;
    /** 预案文件列表 */
    @TableField(exist = false)
    private List<MeetPlanFile> files;
    /** 预案物资列表 */
    @TableField(exist = false)
    private List<MeetPlanSub> subs;
}