Total processing time: 423 ms; Peak memory: 5.599 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 15:59:15.802 | 83.9 ms | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=19) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612)) GROUP BY "object_id" |
| 15:59:15.678 | 67.1 ms | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612)) GROUP BY "object_id" |
| 15:59:15.896 | 14.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (0, 1, 2, 3)) AND ("work_log_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612)) |
| 15:59:15.750 | 13.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=101) AND ("object_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612)) |
| 15:59:15.916 | 13.0 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.997 | 12.5 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.968 | 12.3 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.981 | 10.5 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:16.023 | 10.2 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1000, 0, 276, 'v2/work-log/of-client', '{"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"0","version_code":"276","id":"2125","page":"1","token":"65169abd6eadd7d1da5d3fb241718076","posttime":"1784015954","pagesize":"10"}', '{"code":200,"data":{"list":[{"id":26375,"client_id":2125,"scenario_id":1,"scenario_option_id":72,"end_at":"","created_by":5087,"created_at":"2023-06-12 20:57:36","updated_at":"2023-06-12 20:57:36","start_at":"2023-06-12 19:47:00","description":"\u56fd\uff1a\u7ba1\u57fa\u7840\u73af\u5883 \u673a\u623f \u670d\u52a1\u5668 \u8fd0\u7ef4 \u5b89\u5168\n\u9700\u6c42\uff1a\u4e70\u5b58\u50a8 \u6280\u6539\u9879\u76ee \u9884\u7b97300\u4e07 \u4ee5\u5185\u3002\n\u95ee\u9898\uff1a\u56fd\u4ea7\u5316\u66ff\u4ee3\n\u9700\u6c42\uff1a\u4e70\u8fd0\u7ef4\u670d\u52a1\n\u95ee\u9898\uff1a\u98ce\u8bc4\u4e4b\u540e\u9700\u8981\u6574\u6539\u3002\u4eca\u5e74\u8d70\u4e863-4\u4e2a\u4eba\uff0c\u9ad8\u9e4f\u4e5f\u8d70\u4e86\uff0c\u4eba\u5c11\u4e8b\u513f\u591a\u6ca1\u65f6\u95f4\u6ca1\u4eba\u3002\n\nSM\u7f51800\u7528\u6237 \u5546M\u7f511000\u591a\u7528\u6237\/\u4e91\u5c97159\u9662\u91cc\u51e0\u767e\u4eba\/\u6cb3\u5317\u71d5\u90ca500\u4eba\/\u5c0f\u8857\u6865300\u591a\u4eba\u4e00\u5171\u5341\u4e94\u516d\u4e2a\u4eba\/\u5b89\u51682\u4eba\u7ba1 \u5e94\u7528\u7cfb\u7edf \u4e1a\u52a1\u7cfb\u7edf\u90fd\u9700\u8981\u4eba\uff0c\u5269\u4e0b\u5e72\u6d3b\u7684\u4eba\u4e0d\u591a\u6240\u4ee5\u9700\u8981\u4e70\u670d\u52a1\u3002\n","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":null,"createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":72,"key":72,"name":"\u6316\u6398\u5546\u673a"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":26375,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"0\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":39045,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2026-02-27 16:25:00","created_by":5087,"created_at":"2026-03-02 00:21:03","updated_at":"2026-03-02 00:21:03","start_at":"2026-02-27 16:20:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":39045,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":38829,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2026-01-16 10:31:00","created_by":5087,"created_at":"2026-01-18 18:27:02","updated_at":"2026-01-18 18:27:02","start_at":"2026-01-16 10:26:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":38829,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":38707,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-12-16 15:02:00","created_by":5087,"created_at":"2025-12-22 08:57:40","updated_at":"2025-12-22 08:57:40","start_at":"2025-12-16 14:57:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":38707,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":38538,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-11-20 17:41:00","created_by":5087,"created_at":"2025-11-23 23:36:57","updated_at":"2025-11-23 23:36:57","start_at":"2025-11-20 17:36:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":38538,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":38382,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-10-25 09:48:00","created_by":5087,"created_at":"2025-10-27 08:38:25","updated_at":"2025-10-27 08:38:25","start_at":"2025-10-25 09:38:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:10:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":38382,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"10\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":38194,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-09-28 07:03:00","created_by":5087,"created_at":"2025-09-28 07:58:21","updated_at":"2025-09-28 07:58:21","start_at":"2025-09-28 06:58:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":38194,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":38004,"client_id":2125,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-08-24 23:15:00","created_by":5087,"created_at":"2025-08-25 00:11:01","updated_at":"2025-08-25 00:11:01","start_at":"2025-08-24 23:10:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":66,"key":66,"name":"\u5ba2\u60c5\u589e\u8fdb"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":38004,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":37814,"client_id":2125,"scenario_id":1,"scenario_option_id":72,"end_at":"2025-07-20 22:30:00","created_by":5087,"created_at":"2025-07-20 23:25:43","updated_at":"2025-07-20 23:25:43","start_at":"2025-07-20 22:25:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":72,"key":72,"name":"\u6316\u6398\u5546\u673a"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":37814,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":37612,"client_id":2125,"scenario_id":1,"scenario_option_id":72,"end_at":"2025-06-15 22:53:00","created_by":5087,"created_at":"2025-06-15 23:48:54","updated_at":"2025-06-15 23:48:54","start_at":"2025-06-15 22:48:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:05:00","createdBy":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","department_id":1,"avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"},"department":{"id":1,"key":1,"name":"\u9500\u552e\u90e8"}},"location":null,"scenarioOption":{"id":72,"key":72,"name":"\u6316\u6398\u5546\u673a"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":2125,"key":2125,"name":"\u5317\u4eac\u673a\u5668\u5236\u9020\u6709\u9650\u516c\u53f8","client_class":47,"logo":null,"sales_rep":5087,"salesRep":{"id":5087,"key":5087,"name":"\u5218\u5fae"},"clientClass":{"id":47,"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[],"commentCount":{"object_id":37612,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"5\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":false,"can_create_project":true,"can_location_in":false,"can_location_out":false}],"pagenation":{"totalcount":76,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"39.156.194.178","ua":"jinchangxiao\/2.3.176 (HUAWEIVOG-AL00; Android 10)"}', FALSE, '2026-07-14 15:59:16', 397390336) RETURNING "id" |
| 15:59:15.785 | 9.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612) ORDER BY "id" |
| 15:59:15.772 | 9.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612) |
| 15:59:15.951 | 8.8 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.935 | 8.6 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.961 | 6.1 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.889 | 6.0 ms | yii\db\Command::query | SELECT "work_log_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (0, 1, 2, 3)) AND ("work_log_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612)) GROUP BY "work_log_id" |
| 15:59:15.662 | 4.6 ms | yii\db\Command::query | SELECT s.*, s.end_at - s.start_at AS hours_spent FROM "a57be577deb434"."tbl_work_logs" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON "p"."id" = "s"."project_id" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "s"."created_by" LEFT JOIN "a57be577deb434"."tbl_work_log_verify_rels" "rvr" ON rvr.work_log_id = s.id LEFT JOIN "a57be577deb434"."tbl_work_log_carbon_copy_rels" "ccr" ON ccr.work_log_id = s.id WHERE ("s"."client_id"=2125) AND ("is_draft"=FALSE) GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC LIMIT 10 |
| 15:59:15.673 | 4.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612) |
| 15:59:15.945 | 4.4 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.629 | 4.2 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 15:59:15.655 | 4.1 ms | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT s.*, s.end_at - s.start_at AS hours_spent FROM "a57be577deb434"."tbl_work_logs" "s" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = s.client_id AND client.deleted = FALSE LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON "p"."id" = "s"."project_id" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON "u"."id" = "s"."created_by" LEFT JOIN "a57be577deb434"."tbl_work_log_verify_rels" "rvr" ON rvr.work_log_id = s.id LEFT JOIN "a57be577deb434"."tbl_work_log_carbon_copy_rels" "ccr" ON ccr.work_log_id = s.id WHERE ("s"."client_id"=2125) AND ("is_draft"=FALSE) GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC) "c" |
| 15:59:16.015 | 3.9 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:16.011 | 3.9 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
| 15:59:15.746 | 3.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id" IN (26375, 39045, 38829, 38707, 38538, 38382, 38194, 38004, 37814, 37612)) |
| 15:59:15.633 | 2.9 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm' |
| 15:59:15.649 | 1.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='2125') AND ("deleted"=FALSE) |
| 15:59:15.644 | 0.7 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 15:59:15.668 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 15:59:15.670 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id" IN (72, 66) |
| 15:59:15.671 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "client_class", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=2125 |
| 15:59:15.672 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5087 |
| 15:59:15.669 | 0.4 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=5087) |
| 15:59:15.673 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_classes" WHERE "id"=47 |
| 15:59:15.671 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id"=1 |
| 15:59:15.669 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=1 |