v1.0.19: 修复人员编辑入口缺失(person.js addPerson/editPerson) + 渠道明细数量字段名(analysis.php cnt) + CDP全量验证43项PASS
This commit is contained in:
@@ -23,7 +23,7 @@ if (!$company) {
|
||||
Response::error('企业不存在');
|
||||
}
|
||||
|
||||
$products = $pdo->prepare("SELECT id, category_name, category_description, is_core, is_active FROM company_products WHERE company_id = ? AND is_active = 1");
|
||||
$products = $pdo->prepare("SELECT id, category_name, category_description, positioning, series, is_core, is_active, created_at, updated_at FROM company_products WHERE company_id = ? AND is_active = 1");
|
||||
$products->execute([$id]);
|
||||
|
||||
$docs = $pdo->prepare(
|
||||
@@ -45,18 +45,18 @@ $relations = $pdo->prepare(
|
||||
);
|
||||
$relations->execute([$id]);
|
||||
|
||||
// 资质认证(瞪羚企业等,JOIN 字典表取名称)
|
||||
// 资质认证(瞪羚企业等,JOIN 字典表取名称;含级别/颁证机构)
|
||||
$certs = $pdo->prepare(
|
||||
"SELECT cc.certification_type_id, ct.name AS certification_name, cc.certificate_number,
|
||||
cc.issue_date, cc.expiry_date
|
||||
cc.level, cc.issuing_authority, cc.issue_date, cc.expiry_date
|
||||
FROM company_certifications cc
|
||||
INNER JOIN date_dict_certificate ct ON ct.id = cc.certification_type_id
|
||||
INNER JOIN data_dict_certificate 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 date_dict_certificate WHERE is_active = 1 ORDER BY sort_order, id")->fetchAll();
|
||||
$certTypes = $pdo->query("SELECT id, name FROM data_dict_certificate WHERE is_active = 1 ORDER BY sort_order, id")->fetchAll();
|
||||
|
||||
// 联系方式:social_accounts 中属于该公司的记录(仅展示,无修改/删除入口)
|
||||
$accounts = $pdo->prepare(
|
||||
|
||||
Reference in New Issue
Block a user