| 13:32:11.089 | 2.8 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 13:32:11.093 | 2.0 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 13:32:11.100 | 0.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "id"='8923' |
| 13:32:11.101 | 3.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "reimbursement_id"=8923 |
| 13:32:11.105 | 7.3 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_erp_cash_cost_tickets'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 13:32:11.113 | 9.6 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_erp_cash_cost_tickets'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 13:32:11.124 | 1.7 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" WHERE "erp_cash_cost_ticket_id"=8461 ORDER BY "id" |
| 13:32:11.129 | 1.5 ms | SELECT | SELECT COUNT(*) FROM ((SELECT
'1' || id::varchar as id,
id as sales_contract_id,
null::integer as erp_other_payment_ticket_id,
client_id as client_id,
1 as ticket_type,
created_at,
amount,
amount - erp_all_settle_amount as un_settle_amount,
created_by as handler,
serial_no,
null as abstract
FROM "a57be577deb434"."tbl_sales_contracts" "sc" WHERE ((amount - erp_all_settle_amount > 0) OR (0=1)) AND (1 = 0)) UNION ALL ( SELECT
'2' || id::varchar as id,
null::integer as sales_contract_id,
id as erp_other_collect_ticket_id,
client_id as client_id,
2 as ticket_type,
created_at,
amount,
amount - all_settle_amount as un_settle_amount,
handler,
serial_no,
abstract
FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE ("status"=2) AND ((amount - all_settle_amount > 0) OR (0=1)) AND ("client_id"='89') )) "sub" |
| 13:32:11.131 | 0.7 ms | SELECT | SELECT * FROM ((SELECT
'1' || id::varchar as id,
id as sales_contract_id,
null::integer as erp_other_payment_ticket_id,
client_id as client_id,
1 as ticket_type,
created_at,
amount,
amount - erp_all_settle_amount as un_settle_amount,
created_by as handler,
serial_no,
null as abstract
FROM "a57be577deb434"."tbl_sales_contracts" "sc" WHERE ((amount - erp_all_settle_amount > 0) OR (0=1)) AND (1 = 0)) UNION ALL ( SELECT
'2' || id::varchar as id,
null::integer as sales_contract_id,
id as erp_other_collect_ticket_id,
client_id as client_id,
2 as ticket_type,
created_at,
amount,
amount - all_settle_amount as un_settle_amount,
handler,
serial_no,
abstract
FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE ("status"=2) AND ((amount - all_settle_amount > 0) OR (0=1)) AND ("client_id"='89') )) "sub" |
| 13:32:11.137 | 2.0 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/reimbursement/search-sales-contract', '{"id":"8923","client_id":"89"}', '{"code":2000,"result":{"list":[],"can_create":true,"pagenation":{"totalcount":0,"thispage":1,"pagesize":-1}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"39.156.194.178","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-06-30 13:32:11', 59133184) RETURNING "id" |