修复code对应,提示词优化

This commit is contained in:
yujj128
2025-10-24 16:54:36 +08:00
parent 3b49ce3025
commit 7837b95766
2 changed files with 15 additions and 6 deletions

View File

@@ -430,7 +430,7 @@ question_and_answer = [
WITH "name"||"shortname" LIKE '%XX中心%' AND "dr"=0 AND "enable"=1 AND "code" LIKE '%CYJ%'
CONNECT BY PRIOR "id" = "parentid"
)
AND p.id IN (
AND p.code IN (
SELECT person_id
FROM "YJOA_APPSERVICE_DB"."t_yj_person_status"
WHERE status = '1001'
@@ -450,7 +450,7 @@ question_and_answer = [
SELECT COUNT(p.id) AS "人数"
FROM "YJOA_APPSERVICE_DB"."t_pr3rl2oj_yj_person_database" p
JOIN "IUAP_APDOC_BASEDOC"."org_orgs" o ON p.internal_dept = o.id
JOIN "YJOA_APPSERVICE_DB"."t_yj_person_status" s ON p.id = s.person_id
JOIN "YJOA_APPSERVICE_DB"."t_yj_person_status" s ON p.code = s.person_id
WHERE o.id IN (SELECT id FROM "IUAP_APDOC_BASEDOC"."org_orgs"
START WITH "name" || "shortname" LIKE '%XX%' AND "dr"=0 AND "enable"=1 AND "code" LIKE '%CYJ%'
CONNECT BY PRIOR "id" = "parentid")