package com.fs.sop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fs.common.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * sop模板对象 qw_sop_temp
 *
 * @author fs
 * @date 2024-09-26
 */
@Data
public class QwSopTemp implements Serializable
{

    /** id */
    @TableId(type = IdType.INPUT)
    private String id;

    /** 模板标题 */
    @Excel(name = "模板标题")
    private String name;

    /** 规则 */
//    @Excel(name = "规则")
    private String setting;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyId;

    private Integer gap;

    private String corpId;
    /**
    * 模板类型
    */
    private Integer sendType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    private String createBy;
    private Long project;
    private Long courseId;

    @TableField(exist = false)
    private List<Map<String, Object>> rules;
    @TableField(exist = false)
    private boolean cuoser;
    @TableField(exist = false)
    private List<QwSopTempDay> list = new ArrayList<>();
    @TableField(exist = false)
    private List<String> timeList;

}
