
package org.sky.scientific.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.sky.core.tenant.annotation.TenantIgnore;
import org.sky.scientific.pojo.dto.XmOtherCostQuery;
import org.sky.scientific.pojo.entity.XmOtherCostEntity;

import java.util.List;

/**
 * 项目-其他费用-基本信息台账 Mapper 接口
 *
 * @author Kd
 * @since 2025-07-28
 */
public interface XmOtherCostMapper extends BaseMapper<XmOtherCostEntity> {

	/**
	 * 分页-按月查询
	 *
	 * @param page 分页参数
	 * @param param 查询参数
	 * @return List<XmOtherCostVO>
	 */
	@TenantIgnore
	List<XmOtherCostEntity> selectXmOtherCostPageByYearAndMonth(IPage<XmOtherCostEntity> page, @Param("ew") XmOtherCostQuery param);

	/**
	 * 分页-按年查询
	 *
	 * @param page 分页参数
	 * @param param 查询参数
	 * @return List<XmOtherCostVO>
	 */
	@TenantIgnore
	List<XmOtherCostEntity> selectXmOtherCostPageByYear(IPage<XmOtherCostEntity> page, @Param("ew") XmOtherCostQuery param);

	boolean physicalDeleteByIds(List<Long> ids);
}
