wesley 6 years ago
parent
commit
156b4f175e

+ 0 - 3
app/Imports/CompanyInfoImport.php

xqd
@@ -17,14 +17,11 @@ class CompanyInfoImport implements ToCollection
         foreach ($collection as $key => $row){
             if ($key == 0 ) continue;
             if(strpos($row[0],'国税局')){
-                \Log::info('start');
                 $isExisted = CompanyInfoModel::where('companyName',$row[3])->first();
 
                 if($isExisted){
-                    \Log::info('1');
                     $company_id = $isExisted->id;
                 }else{
-                    \Log::info('2');
                     $data['companyName'] = $row[3];
                     $data['legalPerson'] = $row[5];
                     $data['startDate'] = str_replace('/','-',$row[1]);

+ 1 - 1
resources/views/admin/company/info/index.blade.php

xqd
@@ -63,7 +63,7 @@
                                           action="{{ U('Company/Info/import')}}">
                                         {{csrf_field()}}
                                         <button class="btn btn-sm btn-primary pull-right company-import"
-                                                style="margin-right: 5px;display: none" type="submit" onclick="layer.load(1)">
+                                                style="margin-right: 5px;display: none" type="submit" onclick="layer.load(2)">
                                             Excel导入
                                         </button>
                                         <input id="company-import" name="company_info" type="file" class="pull-right"