Database Queries

总计39条数据
TimeDurationTypeQuery
  
15:55:52.5132.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

15:55:52.5171.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:55:52.5200.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='1791'

15:55:52.5230.8 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id"

15:55:52.5244.4 msSELECTSELECT COUNT(*) FROM (SELECT r.* FROM "a57be577deb434"."tbl_approves" "r" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON r.created_by = u.id LEFT JOIN "a57be577deb434"."tbl_approve_verify_rels" "rvr" ON rvr.approve_id = r.id LEFT JOIN "a57be577deb434"."tbl_approve_cancel_verify_rels" "rcvr" ON rcvr.approve_id = r.id LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = r.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "dt1" ON dt1.object_id = r.id AND dt1.term_id = 17 LEFT JOIN "a57be577deb434"."tbl_approve_carbon_copy_rels" "rccr" ON rccr.approve_id = r.id WHERE ("r"."status" != 0) AND (("r"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5300, 5311, 5332, 5360, 5388, 5446, 5449)) OR ("rccr"."user_id"=1001) OR ("rvr"."user_id"=1001) OR ("rcvr"."user_id"=1001)) AND ("r"."status"='2') AND ("r"."project_id"='1791') GROUP BY "r"."id" ORDER BY "r"."status", "r"."created_at" DESC) "c"

15:55:52.5292.7 msSELECTSELECT r.* FROM "a57be577deb434"."tbl_approves" "r" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON r.created_by = u.id LEFT JOIN "a57be577deb434"."tbl_approve_verify_rels" "rvr" ON rvr.approve_id = r.id LEFT JOIN "a57be577deb434"."tbl_approve_cancel_verify_rels" "rcvr" ON rcvr.approve_id = r.id LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = r.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "dt1" ON dt1.object_id = r.id AND dt1.term_id = 17 LEFT JOIN "a57be577deb434"."tbl_approve_carbon_copy_rels" "rccr" ON rccr.approve_id = r.id WHERE ("r"."status" != 0) AND (("r"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5300, 5311, 5332, 5360, 5388, 5446, 5449)) OR ("rccr"."user_id"=1001) OR ("rvr"."user_id"=1001) OR ("rcvr"."user_id"=1001)) AND ("r"."status"='2') AND ("r"."project_id"='1791') GROUP BY "r"."id" ORDER BY "r"."status", "r"."created_at" DESC LIMIT 20

15:55:52.5320.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

15:55:52.5330.5 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

15:55:52.5340.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10

15:55:52.53421.2 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=37) AND ("object_id" IN (2224, 2223)) GROUP BY "object_id"

15:55:52.55617.3 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=37) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (2224, 2223)) GROUP BY "object_id"

15:55:52.5730.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (2224, 2223)

15:55:52.5740.4 msSELECTSELECT "id", "name", "approve_verify_user", "approve_carbon_copy_user" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=17) AND ("id" IN (212, 135, 184, 189, 317, 349, 1, 2))

15:55:52.5740.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_carbon_copy_rels" WHERE "approve_id" IN (2224, 2223)

15:55:52.5750.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011

15:55:52.5750.2 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011)

15:55:52.5760.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE "approve_id" IN (2224, 2223) ORDER BY "id"

15:55:52.5760.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

15:55:52.5760.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1000)

15:55:52.5772.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=30) AND ("object_id" IN (2913, 2915))

15:55:52.5792.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=31) AND ("object_id" IN (2913, 2915))

15:55:52.5820.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE ("status"=0) AND ("approve_id" IN (2224, 2223)) ORDER BY "id"

15:55:52.5820.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_verify_rels" WHERE ("status" != 0) AND ("approve_id" IN (2224, 2223)) ORDER BY "id"

15:55:52.5832.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=28) AND ("object_id" IN (2224, 2223))

15:55:52.5850.4 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=28097

15:55:52.5850.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661

15:55:52.5860.2 msSELECTSELECT "id", "id" AS "key", "project_title" AS "name", "project_status" FROM "a57be577deb434"."tbl_projects" WHERE "id"=1791

15:55:52.5860.6 msSELECTSELECT "id", "from_project", "serial_no" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=1791

15:55:52.5870.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_cancel_verify_rels" WHERE "approve_id" IN (2224, 2223) ORDER BY "id"

15:55:52.5870.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_cancel_verify_rels" WHERE ("status"=0) AND ("approve_id" IN (2224, 2223)) ORDER BY "id"

15:55:52.5870.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_approve_cancel_verify_rels" WHERE ("status" != 0) AND ("approve_id" IN (2224, 2223)) ORDER BY "id"

15:55:52.5882.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=29) AND ("object_id" IN (2224, 2223))

15:55:52.5900.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" WHERE "approve_id" IN (2224, 2223)

15:55:52.5900.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" WHERE "approve_id" IN (2224, 2223)

15:55:52.5910.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_advance_payment_ticket_approve_payment_settles" WHERE "approve_id" IN (2224, 2223)

15:55:52.5910.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_approve_payment_settles" WHERE "approve_id" IN (2224, 2223)

15:55:52.5910.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_approve_payment_settles" WHERE "approve_id" IN (2224, 2223)

15:55:52.5920.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" WHERE "approve_id" IN (2224, 2223)

15:55:52.5931.5 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/approve/of-project', '{"ApproveSearch":{"form_department":"","created_by":"","form_type":"","form_approveVerifyRels":"","status":"2","created_at_period":"","verify_at_period":""},"page":"1","id":"1791","web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"code":2000,"result":{"list":[{"id":2224,"client_id":1661,"project_id":1791,"title":"\u4ecevv","status":2,"next_verify_user":"","verify_at":"2025-09-11 11:53:35","description":"\u4ecev\u4e2a","refuse_description":"","is_resubmited":false,"created_by":1000,"created_at":"2025-09-11 11:53:18","updated_at":"2025-09-11 11:53:35","supplier_id":"","purchase_contract_id":"","amount":"","borrow_amount":"","borrow_collect_day":"","borrow_collect_status":1,"borrow_collect_description":"","borrow_collect_at":"","erp_payment_settle_amount":"0","erp_payment_un_settle_amount":"0","erp_borrow_settle_amount":"0","erp_borrow_un_settle_amount":"0","next_cancel_verify_user":"","cancel_at":"","cancel_description":"","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"commentCount":{"object_id":2224,"comment":1},"unreadComments":{},"type":{"id":317,"name":"\u5176\u4ed6","approve_verify_user":"","approve_carbon_copy_user":""},"approveCarbonCopyRels":[{"id":7889,"approve_id":2224,"user_id":1011,"user":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}}}],"approveVerifyRels":[{"id":2915,"approve_id":2224,"user_id":1000,"status":1,"description":"","verify_at":"2025-09-11 11:53:35","user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}},"attachmentRelationships":[],"files":[]}],"lastApproveVerifyRel":{},"haveApproveVerifyRel":{"id":2915,"approve_id":2224,"user_id":1000,"status":1,"description":"","verify_at":"2025-09-11 11:53:35"},"attachmentRelationships":[],"client":{"id":1661,"key":1661,"name":"\u5317\u4eac\u7f51\u4fe1\u5143\u79d1\u6280\u6709\u9650\u516c\u53f8"},"project":{"id":1791,"key":1791,"name":"\u706b\u773c5500VX\u91c7\u8d2d\u9879\u76ee","project_status":3,"buildContract":{"id":1558,"from_project":1791,"serial_no":"TSKJ20200602-HYF-004"}},"supplier":"","purchaseContract":{},"approveCancelVerifyRels":[],"lastApproveCancelVerifyRel":"","haveApproveCancelVerifyRel":"","files":[],"erpOtherCollectTickets":[],"erpCollectTicketSettles":[],"erpAdvancePaymentTicketApprovePaymentSettles":[],"erpCashCostTicketApprovePaymentSettles":[],"erpPaymentTicketApprovePaymentSettles":[],"erpOtherCollectTicketApproveBorrowSettles":[],"un_settle_amount":0,"unread":0,"can_update":false,"can_delete":false,"can_resubmit":false,"can_verify":false,"can_refuse":false,"can_payment":false,"payment_done_display":false,"payment_un_done_display":false,"can_borrow":false,"can_cancel_verify":false,"can_cancel_borrow":false,"can_cancel_payment":false,"can_create_erp_other_collect_ticket":false,"can_create_erp_collect_ticket":false,"can_create_erp_cash_cost_ticket":false,"bgcolor":"#E8F5E5","fgcolor":"#22A100","status_display":"\u5df2\u901a\u8fc7","borrow_expire_day":""},{"id":2223,"client_id":1661,"project_id":1791,"title":"\u563f\u563f\u563f","status":2,"next_verify_user":"","verify_at":"2025-09-11 09:47:05","description":"\u4f60\u4f60\u4f60","refuse_description":"","is_resubmited":false,"created_by":1000,"created_at":"2025-09-11 09:42:46","updated_at":"2025-09-11 09:47:05","supplier_id":"","purchase_contract_id":"","amount":"","borrow_amount":"","borrow_collect_day":"","borrow_collect_status":1,"borrow_collect_description":"","borrow_collect_at":"","erp_payment_settle_amount":"0","erp_payment_un_settle_amount":"0","erp_borrow_settle_amount":"0","erp_borrow_un_settle_amount":"0","next_cancel_verify_user":"","cancel_at":"","cancel_description":"","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"commentCount":{"object_id":2223,"comment":2},"unreadComments":{},"type":{"id":317,"name":"\u5176\u4ed6","approve_verify_user":"","approve_carbon_copy_user":""},"approveCarbonCopyRels":[{"id":7887,"approve_id":2223,"user_id":1011,"user":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}}}],"approveVerifyRels":[{"id":2913,"approve_id":2223,"user_id":1000,"status":1,"description":"","verify_at":"2025-09-11 09:47:05","user":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/80759bee-0611-3ad4-bb4a-30d802dd0032.png"}},"attachmentRelationships":[],"files":[]}],"lastApproveVerifyRel":{},"haveApproveVerifyRel":{"id":2913,"approve_id":2223,"user_id":1000,"status":1,"description":"","verify_at":"2025-09-11 09:47:05"},"attachmentRelationships":[{"id":49491,"object_type":28,"object_id":2223,"attachment_id":28097,"attachment":{"id":28097,"key":28097,"name":"e4f36fee-e550-3294-9b8f-a74a64f34a9e","extension":"jpg","path":"\/vue\/attachment\/view\/e4f36fee-e550-3294-9b8f-a74a64f34a9e\/Screenshot_20250907_113449_com.jinchangxiao.bms.jpg","orig_name":"Screenshot_20250907_113449_com.jinchangxiao.bms.jpg"}}],"client":{"id":1661,"key":1661,"name":"\u5317\u4eac\u7f51\u4fe1\u5143\u79d1\u6280\u6709\u9650\u516c\u53f8"},"project":{"id":1791,"key":1791,"name":"\u706b\u773c5500VX\u91c7\u8d2d\u9879\u76ee","project_status":3,"buildContract":{"id":1558,"from_project":1791,"serial_no":"TSKJ20200602-HYF-004"}},"supplier":"","purchaseContract":{},"approveCancelVerifyRels":[],"lastApproveCancelVerifyRel":"","haveApproveCancelVerifyRel":"","files":[],"erpOtherCollectTickets":[],"erpCollectTicketSettles":[],"erpAdvancePaymentTicketApprovePaymentSettles":[],"erpCashCostTicketApprovePaymentSettles":[],"erpPaymentTicketApprovePaymentSettles":[],"erpOtherCollectTicketApproveBorrowSettles":[],"un_settle_amount":0,"unread":0,"can_update":false,"can_delete":false,"can_resubmit":false,"can_verify":false,"can_refuse":false,"can_payment":false,"payment_done_display":false,"payment_un_done_display":false,"can_borrow":false,"can_cancel_verify":false,"can_cancel_borrow":false,"can_cancel_payment":false,"can_create_erp_other_collect_ticket":false,"can_create_erp_collect_ticket":false,"can_create_erp_cash_cost_ticket":false,"bgcolor":"#E8F5E5","fgcolor":"#22A100","status_display":"\u5df2\u901a\u8fc7","borrow_expire_day":""}],"can_create":true,"pagenation":{"totalcount":2,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-09-12 15:55:52') RETURNING "id"