问答详情
源自:7-5 什么是 Java 中的内部类

数据的读取

   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;
   }
}

提问者:xx程序猿xx 2016-05-22 22:33

个回答

  • twoheart
    2016-05-23 00:00:38

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