f
This commit is contained in:
33
scripts/export_ivyz4y27_zhongkui.sql
Normal file
33
scripts/export_ivyz4y27_zhongkui.sql
Normal file
@@ -0,0 +1,33 @@
|
||||
-- 河南钟馗科技有限公司 · 学历信息高级版(IVYZ4Y27) · 调用成功记录
|
||||
-- 在 DBeaver / Navicat 中执行 → 结果集右键「导出 CSV」即可。
|
||||
--
|
||||
-- 说明:
|
||||
-- request_params 为 AES 加密密文,客户端无法直接看到姓名/身份证。
|
||||
-- 导出后可用 scripts/export_ivyz4y27_calls.py -i <导出的json> 解密并脱敏。
|
||||
--
|
||||
-- 若 JOIN products 报错,把 products 改成 product 再试。
|
||||
|
||||
SELECT
|
||||
ac.id AS api_call_id,
|
||||
ac.transaction_id,
|
||||
ac.created_at AS call_time,
|
||||
ac.start_at,
|
||||
ac.end_at,
|
||||
ac.status,
|
||||
ac.cost,
|
||||
ei.company_name,
|
||||
p.code AS product_code,
|
||||
p.name AS product_name,
|
||||
ac.user_id,
|
||||
ac.access_id,
|
||||
ac.request_params,
|
||||
au.secret_key
|
||||
FROM api_calls ac
|
||||
INNER JOIN products p ON ac.product_id = p.id
|
||||
INNER JOIN api_users au ON ac.user_id = au.user_id
|
||||
INNER JOIN enterprise_infos ei ON ac.user_id = ei.user_id
|
||||
WHERE ei.company_name = '河南钟馗科技有限公司'
|
||||
AND ei.deleted_at IS NULL
|
||||
AND p.code = 'IVYZ4Y27'
|
||||
AND ac.status = 'success'
|
||||
ORDER BY ac.created_at DESC;
|
||||
Reference in New Issue
Block a user