package com.zhyc.module.dairyProducts.mapper;

import org.apache.ibatis.annotations.Param;
import com.zhyc.module.dairyProducts.domain.NpMilkProdClasses;
import java.util.Date;
import java.util.List;

public interface NpMilkProdClassesMapper {
    // 修改处：参数改为接收实体类
    List<NpMilkProdClasses> selectNpMilkProdClassesList(
            @Param("npMilkProdClasses") NpMilkProdClasses npMilkProdClasses,
            @Param("datetimeStart") Date datetimeStart,
            @Param("datetimeEnd") Date datetimeEnd);

    // 修改处：新增搜索方法
    List<String> searchEarNumbers(@Param("query") String query);

    int insertNpMilkProdClasses(NpMilkProdClasses row);

    String selectSheepIdByManageEarNo(@Param("manageEarNo") String manageEarNo);

    Double getWeightCorrection(@Param("date") Date date, @Param("factory") String factory);

    Double getParityCorrection(@Param("parity") Integer parity);

    Double getDryMatterCorrection(@Param("date") Date date, @Param("factory") String factory);
}