This commit is contained in:
nanguaboss
2026-08-06 00:50:23 +08:00
parent 595520822a
commit 2cb688ed46
29 changed files with 5227 additions and 186 deletions
+4 -2
View File
@@ -14,6 +14,7 @@ const COMPANY_FIELDS = [
'industry' => 's', 'industry_subdivision' => 's',
'latest_employee_count' => 'i', 'latest_annual_revenue' => 's',
'is_listed' => 'i', 'stock_code' => 's', 'website' => 's',
'source_channel' => 's', 'source_detail' => 's',
];
/** 人员表可写入字段白名单 */
@@ -21,12 +22,13 @@ const PERSON_FIELDS = [
'union_id' => 's', 'full_name' => 's', 'gender' => 's', 'nationality' => 's',
'id_type' => 's', 'id_number' => 's', 'education' => 's', 'graduated_from' => 's',
'hometown' => 's', 'work_location' => 's',
'source_channel' => 's', 'source_detail' => 's',
];
/** 媒体(社交账号)表可写入字段白名单 */
const MEDIA_FIELDS = [
'owner_type' => 's', 'owner_id' => 'i', 'platform' => 's', 'account_id' => 's',
'profile_url' => 's', 'remark' => 's', 'is_primary' => 'i',
'profile_url' => 's', 'remark' => 's', 'is_primary' => 'i', 'is_defult' => 'i',
];
/** 媒体商业属性表可写入字段白名单 */
@@ -173,7 +175,7 @@ function saveCompanyCertifications($pdo, $companyId, $certifications)
return;
}
$valid = $pdo->prepare("SELECT id FROM certification_types WHERE id = ?");
$valid = $pdo->prepare("SELECT id FROM date_dict_certificate WHERE id = ?");
$ins = $pdo->prepare(
"INSERT INTO company_certifications
(company_id, certification_type_id, certificate_number, issue_date, expiry_date)