
package org.sky.scientific.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.sky.core.mp.base.BaseService;
import org.sky.scientific.excel.XmLeaseExcel;
import org.sky.scientific.pojo.entity.XmLeaseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 研发项目租赁清单 服务类
 *
 * @author Kd
 * @since 2025-07-17
 */
public interface IXmLeaseService extends BaseService<XmLeaseEntity> {
	/**
	 * 自定义分页
	 *
	 * @param page 分页参数
	 * @param dto 查询参数
	 * @return IPage<XmGoodsVO>
	 */
	IPage<XmLeaseEntity> selectXmLeasePage(IPage<XmLeaseEntity> page, XmLeaseEntity dto);


	/**
	 * 导出数据
	 *
	 * @param queryWrapper 查询条件
	 * @return List<XmGoodsExcel>
	 */
	List<XmLeaseExcel> exportXmLease(Wrapper<XmLeaseEntity> queryWrapper);

	/**
     * 导入数据
	 * @param file
     * @param yearAndMonth
	 */
	boolean importXmLease(MultipartFile file, String yearAndMonth);

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

	/**
     * 修改或新增
	 * @param xmGoods
     * @return
	 */
	boolean submit(XmLeaseEntity xmLease);

	/**
	 * 研发租赁资产费用分配表
	 * @param dto
	 * @return
	 */
    List<JSONObject> yanfazulinzichanfeiyongfenpeibiao(XmLeaseEntity dto);
}
