
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.CgQtDTO;
import org.sky.scientific.pojo.entity.CgQtEntity;
import org.sky.scientific.pojo.vo.XmCGSummary;

import java.util.List;

/**
 * 科研成果-其他成果 Mapper 接口
 *
 * @author Kd
 * @since 2025-06-29
 */
public interface CgQtMapper extends BaseMapper<CgQtEntity> {

	@TenantIgnore
	List<CgQtEntity> selectPageByCondition(IPage<CgQtEntity> page, @Param("ew") CgQtDTO dto);

	boolean physicalDeleteByIds(List<Long> ids);

	/**
	 * 研发项目成果
	 * @param page
	 * @param xmId
	 * @return
	 */
	@TenantIgnore
    List<XmCGSummary> xmCgSummary(IPage<XmCGSummary> page, @Param("xmId") Long xmId, @Param("tenantId") String tenantId);
}
