package org.dromara.web.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.web.domain.EnteralNutritionTemplate;

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



/**
 * 肠内处方模板视图对象 enteral_nutrition_template
 *
 * @author Huanyi
 * @date 2025-08-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EnteralNutritionTemplate.class)
public class EnteralNutritionTemplateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 模板名称
     */
    @ExcelProperty(value = "模板名称")
    private String templateName;

    /**
     * 模板描述
     */
    @ExcelProperty(value = "模板描述")
    private String templateDescription;

    /**
     * 处方类型
     */
    @ExcelProperty(value = "处方类型")
    private String prescriptionType;

    /**
     * 处方科室ID
     */
    @ExcelProperty(value = "处方科室ID")
    private Long prescriptionId;

    /**
     * 营养产品信息
     */
    @ExcelProperty(value = "营养产品信息")
    private String content;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @ExcelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;

    private String prescriptionDepartmentName;

    /**
     * 0、个人模板
     * 1、基础公共模板
     */
    private Integer templateType;

}
