package thyyxxk.webserver.entity.dictionary.pathwayTemplates.dto;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "clinical_pathway_day")
public class ClinicalPathwayDay implements Serializable {

    private static final long serialVersionUID = 3580838649057402898L;

    /**
     * id
     */
    @TableId
    private String id;

    /**
     * templateId
     */
    @TableField(value = "template_id")
    private String templateId;

    @TableField(value = "execution_day")
    private Integer executionDay;

    @TableField(value = "sort")
    private Integer sort;

    /**
     * 开始时间
     * 不存在与数据库的字段
     */
    @TableField(exist = false)
    private Integer beginDate;

    /**
     * 结束时间
     * 不存在与数据库的字段
     */
    @TableField(exist = false)
    private Integer endDate;


    public static LambdaQueryWrapper<ClinicalPathwayDay> lambdaQueryWrapper() {
        return new LambdaQueryWrapper<>();
    }

    public static QueryWrapper<ClinicalPathwayDay> queryWrapper() {
        return new QueryWrapper<>();
    }


}
