
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.scientific.pojo.dto.XmCqdtfyDTO;
import org.sky.scientific.pojo.entity.XmCqdtfyEntity;
import org.sky.scientific.pojo.vo.XmCqdtfyVO;

import java.util.List;

/**
 * 长期待摊费用分配表 Mapper 接口
 *
 * @author Kd
 * @since 2025-07-24
 */
public interface XmCqdtfyMapper extends BaseMapper<XmCqdtfyEntity> {

	/**
	 * 自定义分页
	 *
	 * @param page 分页参数
	 * @param dto 查询参数
	 * @return List<XmCqdtfyVO>
	 */
	List<XmCqdtfyVO> selectPageByCondition(IPage page, @Param("ew") XmCqdtfyDTO dto);

	int physicalDeleteByIds(List<Long> ids);

	int physicalDeleteByNameAndMonth(@Param("ctdtfymc") String ctdtfymc, @Param("yearAndMonth") String yearAndMonth);
}
