
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.XmAssetQueryParam;
import org.sky.scientific.pojo.entity.XmIntangibleAsset;
import org.sky.scientific.pojo.vo.XmIntangibleAssetCostVo;

import java.util.List;

/**
 * 研发项目固定资产清单 Mapper 接口
 *
 * @author Kd
 * @since 2025-06-11
 */
public interface XmIntangibleAssetMapper extends BaseMapper<XmIntangibleAsset> {

	/**
	 * 获取项目资产表数据
	 * @param yearAndMonth
	 * @return
	 */
	List<XmIntangibleAsset> selectListByYearAndMonth(@Param("yearAndMonth") String yearAndMonth);

	List<XmIntangibleAsset> selectPageByYearAndMonth(IPage<XmIntangibleAsset> page, @Param("ew") XmAssetQueryParam xmAsset);

	List<XmIntangibleAsset> selectPageByYear(IPage<XmIntangibleAsset> page, @Param("ew")XmAssetQueryParam xmAsset);

	boolean physicalDeleteByIds(List<Long> ids);

	/**
	 * 科研无形资产摊销费用分配表
	 * @param page
	 * @param dto
	 * @return
	 */
	@TenantIgnore
    List<XmIntangibleAssetCostVo> keyanwuxingzichantanxiaofeiyongfenpeibiao(IPage<XmIntangibleAssetCostVo> page, @Param("ew") XmAssetQueryParam dto);
}
