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