linwu 4 달 전
부모
커밋
bdf310f684
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      app/Http/Controllers/Api/Test/JobController.php
  2. BIN
      public/job.xls

+ 4 - 3
app/Http/Controllers/Api/Test/JobController.php

@@ -25,7 +25,7 @@ class JobController extends ApiBaseController
             $record[] = [
                 'company_name' => $sheet->getCell("D{$row}")->getValue(),
                 'job_name'     => $sheet->getCell("G{$row}")->getValue(),
-                'amount'       => $sheet->getCell("G{$row}")->getValue(),
+                'amount'       => $sheet->getCell("I{$row}")->getValue(),
                 'max_age'      => $sheet->getCell("K{$row}")->getValue(),
                 'sex'          => $sheet->getCell("L{$row}")->getValue(),
                 'education'    => $sheet->getCell("O{$row}")->getValue(),
@@ -59,8 +59,8 @@ class JobController extends ApiBaseController
             $item['district']        = $company_list[$v['company_name']]['district'];
             $item['education']       = $education[$v['education']];
             $item['wage']            = -1;
-            $item['age']             = '18-' . $v['max_age'];
-            $item['jobs_content']    = $v['jobs_content'] . "\n" . "学位要求:" . $v['xuewei'] . ";专业要求:" . $v['major'];
+            $item['age']             = [18,$v['max_age']];
+            $item['jobs_content']    = "学位要求:" . $v['xuewei'] . ";专业要求:" . $v['major'] . $v['jobs_content'] . "\n";
             $item['audit']           = 1;
             $item['setmeal_id']      = 1;
             $item['setmeal_name']    = "免费会员";
@@ -68,6 +68,7 @@ class JobController extends ApiBaseController
             $item['is_health']       = 1;
             $item['health_type']     = 1;
             Jobs::create($item);
+            dd($item);
         }
 
         return '完成';

BIN
public/job.xls