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