package com.zhyc.module.feed.domain;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;

/**
 * 配料清单对象 sg_feed_list
 *
 * @author HashMap
 * @date 2025-08-19
 */
@Setter
@Getter
public class SgFeedList extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long userId;
    private Long deptId;
    /**
     * 序号
     */
    private Long id;

    /**
     * 配方编号
     */
    @Excel(name = "配方编号")
    private String formulaId;

    /**
     * 配方批号
     */
    @Excel(name = "配方批号")
    private String formulaBatchId;

    /**
     * 饲草班人员
     */
    @Excel(name = "饲草班人员")
    private String zookeeper;

    /**
     * 配料日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "配料日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deployDate;

    private SgFormulaManagement rootFormula;

    private SgFeedPlan rootPlan;

    private Double morningTotal;
    private Double noonTotal;
    private Double afternoonTotal;

    private List<SgFormulaList> formulaList;

    private List<SgFeedPlan> planList;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("formulaId", getFormulaId())
                .append("formulaBatchId", getFormulaBatchId())
                .append("zookeeper", getZookeeper())
                .append("deployDate", getDeployDate())
                .toString();
    }
}
