数据的读取
private SimpleResponse matInquiryImport(MaterialInquiryEntity inquiry,Sheet sheet,String sid,String sname){
ExcelResponse result = FileUtils.checkTitle(sheet, matTitle);
if(result.isSuccessed()){
List<MaterialInquiryItemEntity> items = matInquiryService.readWorkBook(result,sheet,inquiry.getUuid(),sid,sname);
if(items.size() > asyncSize){
BaseImportTask task = matInquiryService.createTask(inquiry, items);
asyncImportService.setSerializable(InquiryImportSerializable.class);
asyncImportService.put(task,result);
}else{
//入库
result = matInquiryService.saveItems(inquiry,items);
}
}else{
result.setMessage(MessageReader.getMessage("order.import.errorTitle"));
}
return result;
}
}