package org.dromara.web.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.web.domain.DailyMealPlan;
import org.dromara.web.domain.HospitalMealPlan;

import java.util.Date;
import java.util.List;

/**
 * 院内膳食主业务对象 daily_meal_plan
 *
 * @author Lion Li
 * @date 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DailyMealPlan.class, reverseConvertGenerate = false)
public class DailyMealPlanBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 看诊类型
     */
    private String type;

    /**
     * 患者ID
     */
    @NotNull(message = "患者ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long patientId;

    /**
     * 门诊/住院号
     */
    private String outpatientNo;

    /**
     * 科室ID
     */
    private Long deptId;

    /**
     * 推荐/配餐开始日期
     */
    private Date recommendStartDate;

    /**
     * 推荐/配餐结束日期
     */
    private Date recommendEndDate;

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

    /**
     * 备注
     */
    private String remark;

    private List<Date> dateRange;

    @NotEmpty(message = "院内膳食明细不能为空", groups = {AddGroup.class, EditGroup.class})
    private List<DailyMealRecipeBo> mealRecipeList;


}
