Database Queries

总计25条数据
TimeDurationTypeQuery
  
18:16:40.9782.2 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1013

18:16:40.9811.1 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "ledger_access_token"='fm5QrMzndTK8qE2wxJ4UQJeJaYto4p5c'

18:16:40.9831.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

18:16:40.9850.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"='1'

18:16:40.9870.6 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_settles" WHERE ("ledger_id"='1') AND ("is_settle"=TRUE))

18:16:40.9890.8 msSELECTSELECT COALESCE(max("sort"), 0) + 1 FROM "a57be577deb434"."tbl_ledger_auxiliary_opening_balances" WHERE ("ledger_id"='1') AND ("ledger_account_caption_id"='32')

18:16:40.9900.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"='1')

18:16:40.9910.6 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='32')

18:16:40.9920.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_auxiliary_items" WHERE "id"='1')

18:16:40.9930.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)

18:16:40.9930.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='32') AND ("ledger_id"='1')

18:16:40.9940.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"='1') AND ("parent_id"='32'))

18:16:40.9940.3 msSELECTSELECT "id", "type" FROM "a57be577deb434"."tbl_ledger_auxiliary_items" WHERE ("id"='1') AND ("ledger_id"='1')

18:16:40.9950.3 msSELECTSELECT "id", "is_auxiliary_customer", "is_auxiliary_supplier" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='32') AND ("ledger_id"='1')

18:16:40.9960.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_auxiliary_opening_balances" WHERE ("ledger_id"='1') AND ("ledger_account_caption_id"='32') AND ("auxiliary_item_id"='1'))

18:16:40.9961.1 msINSERTINSERT INTO "a57be577deb434"."tbl_ledger_auxiliary_opening_balances" ("ledger_account_caption_id", "auxiliary_item_id", "amount", "opening_debit_amount", "opening_credit_amount", "ledger_id", "created_by", "sort", "updated_at") VALUES (32, 1, '10', '1', '1', 1, 1001, 1, '2026-07-16 18:16:40') RETURNING "id"

18:16:40.9980.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\LedgerAuxiliaryOpeningBalances', 4, 'a:12:{s:2:"id";i:4;s:9:"ledger_id";s:1:"1";s:25:"ledger_account_caption_id";s:2:"32";s:17:"auxiliary_item_id";s:1:"1";s:6:"amount";s:2:"10";s:20:"opening_debit_amount";s:1:"1";s:21:"opening_credit_amount";s:1:"1";s:11:"description";N;s:4:"sort";i:1;s:10:"created_by";i:1001;s:10:"created_at";N;s:10:"updated_at";s:19:"2026-07-16 18:16:40";}', '', 1001, '114.244.130.25')

18:16:40.9990.4 msSELECTSELECT COALESCE(sum(amount), 0) FROM "a57be577deb434"."tbl_ledger_auxiliary_opening_balances" WHERE ("ledger_id"='1') AND ("ledger_account_caption_id"='32')

18:16:41.0000.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='32') AND ("ledger_id"='1')

18:16:41.0010.4 msUPDATEUPDATE "a57be577deb434"."tbl_ledger_account_captions" SET "amount"='10', "balance_amount"='10', "updated_at"='2026-07-16 18:16:41' WHERE "id"=32

18:16:41.0010.3 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\LedgerAccountCaptions', 32, 'a:2:{s:6:"amount";s:2:"10";s:14:"balance_amount";s:2:"10";}', '', 1001, '114.244.130.25')

18:16:41.0020.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE 0=1

18:16:41.0020.4 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "ledger_id"='1'

18:16:41.0030.4 msSELECTSELECT "id", "parent_id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "ledger_id"='1'

18:16:41.0061.4 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 6, 'ledger/settings/save-new-account-caption-auxiliary-opening', '{"access_token":"fm5QrMzndTK8qE2wxJ4UQJeJaYto4p5c","ledger_id":"1","LedgerAuxiliaryOpeningBalances":{"ledger_account_caption_id":"32","auxiliary_item_id":"1","amount":"10","opening_debit_amount":"1","opening_credit_amount":"1"},"web_access_token":"fm5QrMzndTK8qE2wxJ4UQJeJaYto4p5c"}', '{"code":2000,"result":{"id":4},"status":1,"msg":[{"name":"success","success":"\u65b0\u8f85\u52a9\u6838\u7b97\u671f\u521d\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"114.244.130.25","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-16 18:16:41', 34809088) RETURNING "id"