
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.XmFixedAsset;
import org.sky.scientific.pojo.vo.XmFixedAssetCostVo;

import java.util.List;

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

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

	List<XmFixedAsset> selectXmFixedAssetPageByYearAndMonth(IPage<XmFixedAsset> page, @Param("ew") XmAssetQueryParam xmAsset, @Param("zclb") String zclb);

	List<XmFixedAsset> selectXmFixedAssetPageByYear(IPage<XmFixedAsset> page, @Param("ew")XmAssetQueryParam xmAsset, @Param("zclb") String zclb);

	boolean physicalDeleteByIds(List<Long> ids);

	/**
	 * 科研仪器设备折旧费用分配表
	 * @param page
	 * @param dto
	 * @return
	 */
	@TenantIgnore
    List<XmFixedAssetCostVo> keyanyiqishebeizhejiufeiyongfenpeibiao(IPage<XmFixedAssetCostVo> page, @Param("ew") XmAssetQueryParam dto);

	/**
	 * 科研房屋建筑物折旧费用分配表
	 * @param page
	 * @param dto
	 * @return
	 */
	@TenantIgnore
	List<XmFixedAssetCostVo> keyanfangwujianzhuwuzhejiufeiyongfenpeibiao(IPage<XmFixedAssetCostVo> page, @Param("ew") XmAssetQueryParam dto);
}
