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;
}
}
提问首先能把问题简单描述下吗?其次贴代码的时候选择相应的代码语言,不然看起来会很乱。尊重别人尊重自己。