package com.ruoyi.stock.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.stock.dto.StockInRecordDto; import com.ruoyi.stock.pojo.StockInRecord; import com.ruoyi.framework.web.domain.AjaxResult; import jakarta.servlet.http.HttpServletResponse; import org.springframework.web.multipart.MultipartFile; import java.util.List; public interface StockInRecordService extends IService { IPage listPage(Page page, StockInRecordDto stockInRecordDto); StockInRecord add(StockInRecordDto stockInRecordDto); int update(Long id, StockInRecordDto stockInRecordDto); int batchDelete(List ids); int batchDeletePending(List ids); void exportStockInRecord(HttpServletResponse response, StockInRecordDto stockInRecordDto); int batchApprove(List ids, Integer approvalStatus); int batchReAudit(List ids); /** * 入库管理-导入 * * @param file excel 文件 * @param type 入库类型 0-合格 1-不合格 * @return 导入结果(成功/失败条数及错误明细) */ AjaxResult importData(MultipartFile file, String type); }