
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.CgRjzzqDTO;
import org.sky.scientific.pojo.entity.CgRjzzqEntity;

import java.util.List;

/**
 * 科研成果-软件著作 Mapper 接口
 *
 * @author Kd
 * @since 2025-06-29
 */
public interface CgRjzzqMapper extends BaseMapper<CgRjzzqEntity> {

	/**
	 * 分页
	 * @param page
	 * @param dto
	 * @return
	 */
	@TenantIgnore
	List<CgRjzzqEntity> selectPageByCondition(IPage<CgRjzzqEntity> page, @Param("ew") CgRjzzqDTO dto);

    boolean physicalDeleteByIds(List<Long> ids);

	@TenantIgnore
	Long countByYear(@Param("year") String year, @Param("tenantId") String tenantId);

}
