package com.zhyc.module.produce.breed.mapper;

import java.util.List;
import com.zhyc.module.produce.breed.domain.ScLambDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 羔羊详情Mapper接口
 */
@Mapper
public interface ScLambDetailMapper {

    /**
     * 查询羔羊详情列表
     */
    public List<ScLambDetail> selectScLambDetailList(ScLambDetail scLambDetail);

    /**
     * 新增羔羊详情
     */
    public int insertScLambDetail(ScLambDetail scLambDetail);
    public int insertBasSheep(ScLambDetail scLambDetail);
    /**
     * 批量新增羔羊详情
     */
    public int insertScLambDetailBatch(@Param("list") List<ScLambDetail> scLambDetailList);
    public int insertBasSheepBatch(@Param("list") List<ScLambDetail> scLambDetailList);
    /**
     * 修改羔羊详情
     */
    public int updateScLambDetail(ScLambDetail scLambDetail);

    /**
     * 删除羔羊详情
     */
    public int deleteScLambDetailById(Long id);

    /**
     * 批量删除羔羊详情
     */
    public int deleteScLambDetailByIds(Long[] ids);

    /**
     * 根据产羔记录ID删除羔羊详情
     */
    public int deleteScLambDetailByLambingRecordId(Long lambingRecordId);

    /**
     * 查询羔羊详情
     */
    public ScLambDetail selectScLambDetailById(Long id);

    /**
     * 根据产羔记录ID查询羔羊详情列表
     */
    public List<ScLambDetail> selectScLambDetailByLambingRecordId(Long lambingRecordId);

    /**
     * 检查羔羊耳号是否已存在
     */
    public int checkLambEarNumberExists(@Param("lambEarNumber") String lambEarNumber, @Param("excludeId") Long excludeId);
}