package org.dromara.web.domain.bo;

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

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.web.domain.HospitalMealRecipe;

/**
 * 院内膳食食谱明细业务对象 hospital_meal_recipe
 *
 * @author Lion Li
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HospitalMealRecipe.class, reverseConvertGenerate = false)
public class HospitalMealRecipeBo extends BaseEntity {

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

    /**
     * 院内膳食主表ID
     */
    @NotNull(message = "院内膳食主表ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long planId;

    /**
     * 食谱序号(1-7)
     */
    @NotNull(message = "食谱序号(1-7)不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long recipeNo;

    /**
     * 餐次(如早餐/午餐/晚餐/早加/晚加等)
     */
    @NotBlank(message = "餐次(如早餐/午餐/晚餐/早加/晚加等)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mealTime;

    /**
     * 用餐时间
     */
    private Date eatTime;

    /**
     * 食物名称
     */
    private String foodName;

    /**
     * 食物id
     */
    private Long foodId;

    /**
     * 食谱分类Id
     */
    private Long foodCategoryId;

    /**
     * 食谱分类
     */
    private String foodCategoryName;

    /**
     * 食物重量(g)
     */
    private Long foodWeight;

    /**
     * 热量(kcal)
     */
    private Long calorie;

    /**
     * 份数
     */
    private Long amount;

    /**
     * 金额
     */
    private Long price;

    /*制餐状态 0 未配餐 1已配餐*/
    private String makeStatus;

    private Date makeTime;

    private Long makeBy;

    /*执行状态 0 未执行 1已执行*/
    private String executeStatus;

    private LocalDate executeDate;

    private LocalTime executeTime;

    private Long executeBy;

    /*标签打印数量*/
    private Integer tagPrintNum;

    private String makeByName;

    private String executeByName;


}
