
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.XmDesignCostQuery;
import org.sky.scientific.pojo.entity.XmDesignCostEntity;
import org.sky.scientific.pojo.vo.XmDesignCostVO;

import java.util.List;

/**
 * 项目-设计费用、装备调试费用与试验费用基本信息台账 Mapper 接口
 *
 * @author Kd
 * @since 2025-07-28
 */
public interface XmDesignCostMapper extends BaseMapper<XmDesignCostEntity> {

	/**
	 * 分页-按月查询
	 *
	 * @param page 分页参数
	 * @param param 查询参数
	 * @return List<XmDesignCostVO>
	 */
	@TenantIgnore
	List<XmDesignCostVO> selectXmDesignCostPageByYearAndMonth(IPage<XmDesignCostVO> page, @Param("ew") XmDesignCostQuery param);

	/**
	 * 分页-按年查询
	 *
	 * @param page 分页参数
	 * @param param 查询参数
	 * @return List<XmDesignCostVO>
	 */
	@TenantIgnore
	List<XmDesignCostVO> selectXmDesignCostPageByYear(IPage<XmDesignCostVO> page, @Param("ew") XmDesignCostQuery param);


	/**
	 * 批量逻辑删除
	 * @param ids
	 * @return
	 */
    int physicalDeleteByIds(List<Long> ids);
}
