15:49:23.540 | 2.2 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
15:49:23.544 | 1.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:49:23.546 | 2.7 ms | SELECT | SELECT COUNT(*) FROM ((SELECT
'1' || id::varchar as id,
id as purchase_contract_id,
null::integer as sales_contract_id,
null::integer as erp_other_income_ticket_id,
null::integer as erp_other_collect_ticket_id,
1 as ticket_type,
cost_type,
created_at,
amount,
erp_un_settle_amount as un_settle_amount,
handler,
serial_no,
null as abstract
FROM "a57be577deb434"."tbl_purchase_contracts" WHERE (erp_un_settle_amount > 0) AND (1 = 0)) UNION ALL ( SELECT
'2' || id::varchar as id,
null::integer as purchase_contract_id,
id as sales_contract_id,
null::integer as erp_other_income_ticket_id,
null::integer as erp_other_collect_ticket_id,
2 as ticket_type,
null::integer as cost_type,
created_at,
amount,
erp_un_settle_amount as un_settle_amount,
handler,
serial_no,
null as abstract
FROM "a57be577deb434"."tbl_sales_contracts" WHERE (erp_un_settle_amount > 0) AND ("client_id"='3281') ) UNION ALL ( SELECT
'3' || id::varchar as id,
null::integer as purchase_contract_id,
null::integer as sales_contract_id,
id as erp_other_income_ticket_id,
null::integer as erp_other_collect_ticket_id,
3 as ticket_type,
null::integer as cost_type,
created_at,
amount,
amount - settle_amount as un_settle_amount,
null::integer as handler,
serial_no,
abstract
FROM "a57be577deb434"."tbl_erp_other_income_tickets" WHERE ("status"=2) AND (amount - settle_amount > 0) AND ("client_id"='3281') ) UNION ALL ( SELECT
'4' || id::varchar as id,
null::integer as purchase_contract_id,
null::integer as sales_contract_id,
null::integer as erp_other_income_ticket_id,
id as erp_other_collect_ticket_id,
4 as ticket_type,
null::integer as cost_type,
created_at,
amount,
amount - settle_amount as un_settle_amount,
handler,
serial_no,
abstract
FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE ("status"=2) AND (amount - settle_amount > 0) AND ("client_id"='3281') )) "sub" |
15:49:23.549 | 1.1 ms | SELECT | SELECT * FROM ((SELECT
'1' || id::varchar as id,
id as purchase_contract_id,
null::integer as sales_contract_id,
null::integer as erp_other_income_ticket_id,
null::integer as erp_other_collect_ticket_id,
1 as ticket_type,
cost_type,
created_at,
amount,
erp_un_settle_amount as un_settle_amount,
handler,
serial_no,
null as abstract
FROM "a57be577deb434"."tbl_purchase_contracts" WHERE (erp_un_settle_amount > 0) AND (1 = 0)) UNION ALL ( SELECT
'2' || id::varchar as id,
null::integer as purchase_contract_id,
id as sales_contract_id,
null::integer as erp_other_income_ticket_id,
null::integer as erp_other_collect_ticket_id,
2 as ticket_type,
null::integer as cost_type,
created_at,
amount,
erp_un_settle_amount as un_settle_amount,
handler,
serial_no,
null as abstract
FROM "a57be577deb434"."tbl_sales_contracts" WHERE (erp_un_settle_amount > 0) AND ("client_id"='3281') ) UNION ALL ( SELECT
'3' || id::varchar as id,
null::integer as purchase_contract_id,
null::integer as sales_contract_id,
id as erp_other_income_ticket_id,
null::integer as erp_other_collect_ticket_id,
3 as ticket_type,
null::integer as cost_type,
created_at,
amount,
amount - settle_amount as un_settle_amount,
null::integer as handler,
serial_no,
abstract
FROM "a57be577deb434"."tbl_erp_other_income_tickets" WHERE ("status"=2) AND (amount - settle_amount > 0) AND ("client_id"='3281') ) UNION ALL ( SELECT
'4' || id::varchar as id,
null::integer as purchase_contract_id,
null::integer as sales_contract_id,
null::integer as erp_other_income_ticket_id,
id as erp_other_collect_ticket_id,
4 as ticket_type,
null::integer as cost_type,
created_at,
amount,
amount - settle_amount as un_settle_amount,
handler,
serial_no,
abstract
FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE ("status"=2) AND (amount - settle_amount > 0) AND ("client_id"='3281') )) "sub" |
15:49:23.552 | 3.8 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-09-15') |
15:49:23.556 | 0.9 ms | UPDATE | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=1334, "last_visit_at"='now()' WHERE "id"=56557 |
15:49:23.557 | 1.1 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-collect-ticket/search-settle-items', '{"client_id":"3281","web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"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}', FALSE, '2025-09-15 15:49:23') RETURNING "id" |