package org.sky.scientific.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.ibatis.annotations.Param;
import org.sky.core.mp.base.BaseService;
import org.sky.scientific.pojo.dto.XmWwxmCostQuery;
import org.sky.scientific.pojo.entity.XmWwxmCost;
import org.sky.scientific.pojo.vo.XmWwxmCostVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 委托外部研发费用-基本信息台账 服务类
 *
 * @author Kd
 * @since 2025-06-29
 */
public interface IXmWwxmCostService extends BaseService<XmWwxmCost> {

	/**
	 * 删除
	 * @param ids
	 * @return
	 */
    boolean physicalDeleteByIds(List<Long> ids);

	/**
	 * 分页
	 * @param page
	 * @param dto
	 * @return
	 */
	IPage<XmWwxmCostVO> selectPage(IPage<XmWwxmCostVO> page, @Param("dto") XmWwxmCostQuery dto);

	/**
	 * 导出
	 * @param response
	 * @param dto
	 */
	void export(HttpServletResponse response, XmWwxmCostQuery dto);

	/**
	 * 新增/修改
	 * @param cost
	 * @return
	 */
	boolean submit(XmWwxmCost cost);

	/**
	 * 导入
	 * @param file
	 * @param yearAndMonth
	 */
	void importWwxmCost(MultipartFile file, String yearAndMonth);
}
