All Latest
6a4b48cdc2298: POST https://beta.jinchangxiao.com/vue/voucher-center/get-generate at 2026-07-06 02:18:53 pm by 39.156.194.178

Database Queries

总计19条数据
TimeDurationTypeQuery
  
14:18:53.8068.0 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

14:18:53.8248.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

14:18:53.83611.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "is_stop"=FALSE ORDER BY "id"

14:18:53.8617.5 msSELECTSELECT "e"."id" AS "id", "e"."serial_no" AS "serial_no", "e"."wrote_date" AS "wrote_date", "e"."verify_at" AS "verify_at", "e"."created_at" AS "created_at", COALESCE(e.amount, 0) AS "sales_amount", CASE WHEN COALESCE(e.amount, 0) > 0 THEN COALESCE(e.amount, 0) ELSE COALESCE(SUM(s.actual_total_amount), 0) END AS "voucher_amount", COALESCE(SUM(s.actual_total_amount), 0) AS "cost_amount", "e"."client_id" AS "client_id", "e"."handler" AS "handler", "e"."created_by" AS "created_by" FROM "a57be577deb434"."tbl_erp_sales_outbounds" "e" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_product_spents" "s" ON s.erp_sales_outbound_id = e.id WHERE ("e"."id"=161) AND ("e"."status"=2) GROUP BY "e"."id", "e"."serial_no", "e"."wrote_date", "e"."verify_at", "e"."created_at", "e"."amount", "e"."client_id", "e"."handler", "e"."created_by"

14:18:53.8691.0 msSELECTSELECT "id", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128

14:18:53.8710.4 msSELECTSELECT "id", "name", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5087

14:18:53.8720.3 msSELECTSELECT "id", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=1

14:18:53.8721.3 msSELECTSELECT "id", "serial_no", "title", "parent_id", "is_auxiliary_customer", "is_auxiliary_supplier" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("is_delete"=FALSE) ORDER BY "serial_no", "id"

14:18:53.8740.6 msSELECTSELECT "erp_bank_id", "ledger_account_caption_id" FROM "a57be577deb434"."tbl_ledger_banks" WHERE (("ledger_id"=1) AND ("is_delete"=FALSE)) AND (NOT ("erp_bank_id" IS NULL)) AND (NOT ("ledger_account_caption_id" IS NULL))

14:18:53.8750.4 msSELECTSELECT "id", "type", "serial_no", "title" FROM "a57be577deb434"."tbl_ledger_auxiliary_items" WHERE ("ledger_id"=1) AND ("is_delete"=FALSE)

14:18:53.8764.9 msSELECTSELECT "attachment_id" FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_id"=161) AND ("object_type" IN (20011, 20012)) ORDER BY "id"

14:18:53.8830.4 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=117)

14:18:53.8830.4 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"=117) AND ("ledger_id"=1) AND ("is_delete"=FALSE)

14:18:53.8840.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"=117) AND ("is_delete"=FALSE))

14:18:53.8850.4 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"=23)

14:18:53.8850.3 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"=23) AND ("ledger_id"=1) AND ("is_delete"=FALSE)

14:18:53.8860.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"=23) AND ("is_delete"=FALSE))

14:18:53.8861.1 msSELECTSELECT COALESCE(max("serial_no"), 0) + 1 FROM "a57be577deb434"."tbl_ledger_tickets" WHERE ("ledger_id"=1) AND ("ticket_date"='2026-07-05') AND ("ticket_word"=3)

14:18:53.8891.9 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/voucher-center/get-generate', '{"voucher_date_type":"1","type":"1","entry_type":"1","bills":[{"object_type":"20008","object_id":"161","event_type":"0","event_id":"0"}]}', '{"code":2000,"result":{"summary":{"source_count":1,"ticket_count":1,"balanced_count":1,"error_count":0,"unbalanced_count":0,"total_amount":44433443},"list":[{"ticket_key":"tmp_1","original_index":1,"ledger_id":1,"ticket_date":"2026-07-05","period":"202607","ticket_word":3,"ticket_word_display":"\u8f6c","serial_no":1,"serial_no_display":"001","ticket_no_display":"\u8f6c-202607-001","is_estimated_serial_no":true,"ticket_count":0,"source_count":1,"type":1,"ledger_status":1,"source_line_display":"\u9500\u552e\u51fa\u5e93\u5355 \u00b7 XSCKD-20260705-00001","source_sub_line_display":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8 \u00b7 \u9500\u552e\u90e8","source_amount_display":44433443,"source_bills":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0,"object_type_name":"\u9500\u552e\u51fa\u5e93\u5355","bill_no":"XSCKD-20260705-00001","bill_date":"2026-07-05","amount":44433443,"partner_name":"\u5317\u4eac\u79d1\u6280\u6709\u9650\u516c\u53f8","department":"\u9500\u552e\u90e8"}],"can_generate_serial_no":true,"items":[{"summary":"\u9500\u552e\u51fa\u5e93\u5355 XSCKD-20260705-00001","ledger_account_caption_id":117,"account_caption_display":"5001 \u4e3b\u8425\u4e1a\u52a1\u6536\u5165","auxiliary_item_id":null,"accountCaption":{"key":117,"name":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","serial_no":"5001","title":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"44433443.00","credit_amount":"0.00","source_refs":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0}],"errors":[]},{"summary":"\u9500\u552e\u51fa\u5e93\u5355 XSCKD-20260705-00001","ledger_account_caption_id":23,"account_caption_display":"1405 \u5e93\u5b58\u5546\u54c1","auxiliary_item_id":null,"accountCaption":{"key":23,"name":"\u5e93\u5b58\u5546\u54c1","serial_no":"1405","title":"\u5e93\u5b58\u5546\u54c1","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"0.00","credit_amount":"44433443.00","source_refs":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0}],"errors":[]}],"files":[],"debit_total":44433443,"credit_total":44433443,"diff_amount":0,"diff_abs_amount":0,"status":"balanced","status_display":"\u501f\u8d37\u5e73\u8861","errors":[],"LedgerTickets":{"ledger_id":1,"ticket_date":"2026-07-05","ticket_word":3,"serial_no":1,"ticket_count":0,"type":1,"status":1,"items":[{"summary":"\u9500\u552e\u51fa\u5e93\u5355 XSCKD-20260705-00001","ledger_account_caption_id":117,"account_caption_display":"5001 \u4e3b\u8425\u4e1a\u52a1\u6536\u5165","auxiliary_item_id":null,"accountCaption":{"key":117,"name":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","serial_no":"5001","title":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"44433443.00","credit_amount":"0.00","source_refs":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0}],"errors":[]},{"summary":"\u9500\u552e\u51fa\u5e93\u5355 XSCKD-20260705-00001","ledger_account_caption_id":23,"account_caption_display":"1405 \u5e93\u5b58\u5546\u54c1","auxiliary_item_id":null,"accountCaption":{"key":23,"name":"\u5e93\u5b58\u5546\u54c1","serial_no":"1405","title":"\u5e93\u5b58\u5546\u54c1","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"0.00","credit_amount":"44433443.00","source_refs":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0}],"errors":[]}],"files":[]},"model":{"ledger_id":1,"ticket_date":"2026-07-05","period":"202607","ticket_word":3,"ticket_word_display":"\u8f6c","serial_no":1,"serial_no_display":"001","ticket_no_display":"\u8f6c-202607-001","ticket_count":0,"type":1,"status":1,"items":[{"summary":"\u9500\u552e\u51fa\u5e93\u5355 XSCKD-20260705-00001","ledger_account_caption_id":117,"account_caption_display":"5001 \u4e3b\u8425\u4e1a\u52a1\u6536\u5165","auxiliary_item_id":null,"accountCaption":{"key":117,"name":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","serial_no":"5001","title":"\u4e3b\u8425\u4e1a\u52a1\u6536\u5165","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"44433443.00","credit_amount":"0.00","source_refs":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0}],"errors":[]},{"summary":"\u9500\u552e\u51fa\u5e93\u5355 XSCKD-20260705-00001","ledger_account_caption_id":23,"account_caption_display":"1405 \u5e93\u5b58\u5546\u54c1","auxiliary_item_id":null,"accountCaption":{"key":23,"name":"\u5e93\u5b58\u5546\u54c1","serial_no":"1405","title":"\u5e93\u5b58\u5546\u54c1","balance":"0","auxiliary_types":[],"auxiliary_type_display":"","can_auxiliary":false,"is_cash_equivalent":false},"auxiliaryItem":null,"auxiliary_item_display":"","cashItem":null,"debit_amount":"0.00","credit_amount":"44433443.00","source_refs":[{"object_type":20008,"object_id":161,"event_type":0,"event_id":0}],"errors":[]}],"files":[],"attachment_count":0,"debit_total":44433443,"credit_total":44433443}}]},"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-07-06 14:18:53', 92054272) RETURNING "id"