فهرست منبع

修复直认导入

sandm 1 سال پیش
والد
کامیت
c93d76cb4a
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/job/Import.php

+ 2 - 2
app/job/Import.php

@@ -247,7 +247,7 @@ class Import {
                                         if (!isCreditNo($row[$i]) && $item['card_type'] == 1) {
                                             array_push($msg, "证件号码不正确");
                                         }
-                                        $talent_info = Db::table("new_talent_info")->where("card_number", $row[$i])->findOrEmpty();
+                                        $talent_info = Db::table("new_talent_info")->where("card_number", $row[$i])->where('apply_year',$batch["batch"])->findOrEmpty();
                                         if ($talent_info) {
                                             $action = 'update';
                                         }
@@ -412,7 +412,7 @@ class Import {
                                         if (!isCreditNo($row[$i]) && $item['card_type'] == 1) {
                                             array_push($msg, "证件号码不正确");
                                         }
-                                        $talent_info = Db::table("new_talent_info")->where("card_number", $row[$i])->findOrEmpty();
+                                        $talent_info = Db::table("new_talent_info")->where("card_number", $row[$i])->where('apply_year',$batch["batch"])->findOrEmpty();
                                         if ($talent_info) {
                                             $action = 'update';
                                         }