xx程序猿xx
2016-05-22 22:33
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;
}
}
Java入门第二季 升级版
530646 学习 · 6091 问题
相似问题