
package org.sky.scientific.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import jakarta.servlet.http.HttpServletResponse;
import org.sky.core.mp.base.BaseService;
import org.sky.scientific.pojo.dto.SalaryDTO;
import org.sky.scientific.pojo.entity.SalaryEntity;
import org.sky.scientific.pojo.vo.SalaryVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 每月工资信息 服务类
 *
 * @author Kd
 * @since 2025-06-19
 */
public interface ISalaryService extends BaseService<SalaryEntity> {
	/**
	 * 自定义分页
	 *
	 * @param page 分页参数
	 * @param salary 查询参数
	 * @return IPage<SalaryVO>
	 */
	IPage<SalaryVO> selectSalaryPage(IPage<SalaryVO> page, SalaryDTO salary);


	/**
	 * 导出
	 * @param response
	 * @param dto
	 */
	void exportSalary(HttpServletResponse response, SalaryDTO dto);

	/**
	 *
	 * @param salary
	 * @return
	 */
	boolean updateSalary(SalaryEntity salary);

	void importSalary(MultipartFile file, String yearAndMonth);

	/**
	 * 清除工资数据
	 * @param salaryList
	 * @return
	 */
	boolean clearSalary(List<SalaryEntity> salaryList);

	/**
	 * 引用当月研发人员名单
	 * @param yearAndMonth
	 * @return
	 */
	boolean fetchTechnicianByYearAndMonth(String yearAndMonth);


}
