package com.ruoyi.web.modules.industryservice.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.industryservice.domain.BizLivestockOwnershipHousehold;

/**
 * 有无畜户数据填报 Mapper。
 */
public interface BizLivestockOwnershipHouseholdMapper
{
    BizLivestockOwnershipHousehold selectBizLivestockOwnershipHouseholdById(Long id);

    int countByYearMonthAndVillageExcludeId(@Param("statYear") Integer statYear,
            @Param("statMonth") Integer statMonth, @Param("villageDeptId") Long villageDeptId,
            @Param("excludeId") Long excludeId);

    BizLivestockOwnershipHousehold selectByYearMonthAndVillage(@Param("statYear") Integer statYear,
            @Param("statMonth") Integer statMonth, @Param("villageDeptId") Long villageDeptId);

    List<BizLivestockOwnershipHousehold> selectBizLivestockOwnershipHouseholdList(
            BizLivestockOwnershipHousehold query);

    int insertBizLivestockOwnershipHousehold(BizLivestockOwnershipHousehold row);

    int updateBizLivestockOwnershipHousehold(BizLivestockOwnershipHousehold row);

    int deleteBizLivestockOwnershipHouseholdByIds(@Param("ids") Long[] ids);
}
