v1.0.12: 企业/人员/媒体去删除入口;企业/人员加产品入口;企业详情去产品品类/关联联系人;编辑企业改Tab卡(工商信息/财务信息/资质认证)
This commit is contained in:
@@ -48,6 +48,19 @@ $relations = $pdo->prepare(
|
||||
);
|
||||
$relations->execute([$id]);
|
||||
|
||||
// 资质认证(瞪羚企业等,JOIN 字典表取名称)
|
||||
$certs = $pdo->prepare(
|
||||
"SELECT cc.certification_type_id, ct.name AS certification_name, cc.certificate_number,
|
||||
cc.issue_date, cc.expiry_date
|
||||
FROM company_certifications cc
|
||||
INNER JOIN certification_types ct ON ct.id = cc.certification_type_id
|
||||
WHERE cc.company_id = ?
|
||||
ORDER BY ct.sort_order, ct.id"
|
||||
);
|
||||
$certs->execute([$id]);
|
||||
|
||||
$certTypes = $pdo->query("SELECT id, name FROM certification_types WHERE is_active = 1 ORDER BY sort_order, id")->fetchAll();
|
||||
|
||||
// 关联联系人(工作经历 + 联系方式)
|
||||
$contacts = $pdo->prepare(
|
||||
"SELECT p.id, p.full_name,
|
||||
@@ -71,4 +84,6 @@ Response::success([
|
||||
'financials' => $financials->fetchAll(),
|
||||
'relations' => $relations->fetchAll(),
|
||||
'contacts' => $contacts->fetchAll(),
|
||||
'certifications' => $certs->fetchAll(),
|
||||
'certification_types' => $certTypes,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user