Total processing time: 92 ms; Peak memory: 4.991 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
21:24:22.711 | 20.7 ms | yii\db\Command::query | SELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518)) GROUP BY "object_id" |
21:24:22.739 | 15.5 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 (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518)) GROUP BY "object_id" |
21:24:22.696 | 3.9 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"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5296, 5300, 5311, 5329, 5332, 5360, 5388, 5404, 5420, 5440, 5445, 5446)) OR ("ccr"."user_id"=1000)) AND ("s"."status"='0') AND ("s"."created_by"='1000') AND ("u"."department_id"='10') GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, "s"."updated_at" DESC) "c" |
21:24:22.687 | 2.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
21:24:22.700 | 2.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"."created_by" IN (1000, 1001, 1004, 1005, 1011, 1013, 1015, 1017, 1022, 1023, 5016, 5064, 5085, 5087, 5248, 5250, 5252, 5295, 5296, 5300, 5311, 5329, 5332, 5360, 5388, 5404, 5420, 5440, 5445, 5446)) OR ("ccr"."user_id"=1000)) AND ("s"."status"='0') AND ("s"."created_by"='1000') AND ("u"."department_id"='10') GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC, "s"."updated_at" DESC LIMIT 10 |
21:24:22.758 | 2.6 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
21:24:22.708 | 2.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518) |
21:24:22.761 | 2.3 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
21:24:22.763 | 2.2 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
21:24:22.766 | 2.2 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
21:24:22.768 | 2.2 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_clients" WHERE ("sales_rep" IN (5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5420, 1029, 1001, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5358, 1006, 5093)) OR ("sales_rep" IS NULL) OR ("id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) |
21:24:22.771 | 2.0 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") VALUES (200, 'a57be577deb434', 1000, 2, 1141, 'v2/work-log/list', '{"WorkLogSearch":{"filterDepartment":"10","filterUser":"1000","scenario_id":"","scenario_option_id":"","status":"0"},"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1751289856","token":"564d2323a04d1fd519e1267ecad86476","version_code":"1141"}', '{"code":200,"data":{"list":[{"id":24988,"client_id":149,"scenario_id":1,"scenario_option_id":73,"end_at":"2023-04-10 11:15:00","created_by":1000,"created_at":"2023-04-10 11:02:08","updated_at":"2023-04-10 11:02:08","start_at":"2023-04-10 10:15:00","description":"\u6c9f\u901a\u4e2d\u95f4\u5e93\u8f6f\u4ef6\u65b0\u9700\u6c42","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":13165,"location_out_id":13166,"status":0,"indistance":34495,"outdistance":34495,"hours_spent":"01:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":73,"key":73,"name":"\u552e\u540e\u670d\u52a1"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":149,"key":149,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u6cd5\u8bc1\u90e8)\uff08\u71d5\u4eac\uff09","client_class":80,"logo":null,"sales_rep":1005,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u6657\u7131"},"clientClass":{"id":80,"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[{"id":783,"key":783,"name":"\u9a6c\u6210","department":"","job_position":"","mobiles":[{"id":2042,"contact_id":783,"mobile":"18310095133","mp_open_id":null}]}],"commentCount":{"object_id":24988,"comment":1},"attachmentRelationships":[],"locationIn":{"id":13165,"lng":"116.396383734809","lat":"40.2427053493924","address":"\u5317\u4eac\u5e02\u660c\u5e73\u533a\u79e6\u57ce\u8def\u9760\u8fd1\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240\u79e6\u57ce\u57fa\u57302\u53f7\u9662","time":"2023-04-10 10:15:00"},"locationOut":{"id":13166,"lng":"116.396388617621","lat":"40.242708875868","address":"\u5317\u4eac\u5e02\u660c\u5e73\u533a\u79e6\u57ce\u8def\u9760\u8fd1\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240\u79e6\u57ce\u57fa\u57302\u53f7\u9662","time":"2023-04-10 11:15:00"},"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"1\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":20700,"client_id":982,"scenario_id":1,"scenario_option_id":7,"end_at":"2022-08-17 17:12:00","created_by":1000,"created_at":"2022-08-17 17:12:01","updated_at":"2022-08-17 17:13:03","start_at":"2022-08-17 15:00:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":1111,"location_in_id":null,"location_out_id":11646,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"02:12:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":7,"key":7,"name":"\u62dc\u8bbf\u5382\u5546"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","client_class":1,"logo":null,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"clientClass":{"id":1,"key":1,"name":"\u6838\u5fc3\u5ba2\u6237"},"can_visit":true},"project":{"id":1111,"key":1111,"name":"\u4ebf\u8054\u89c6\u9891\u4f1a\u8bae\u7edf\u4e00\u901a\u8baf"},"workLogContacts":[{"id":3643,"key":3643,"name":"\u9ad8\u90e1\u9633(\u6d4b\u8bd5)","department":"","job_position":"","mobiles":[{"id":4287,"contact_id":3643,"mobile":"18202460558","mp_open_id":"oagch6QIZgCDpSY1W6MNG0MC0w5c"}]},{"id":4082,"key":4082,"name":"\u6d4b\u8bd5","department":"","job_position":"","mobiles":[{"id":4902,"contact_id":4082,"mobile":"17610989898","mp_open_id":null}]}],"commentCount":{"object_id":20700,"comment":10},"attachmentRelationships":[],"locationIn":null,"locationOut":{"id":11646,"lng":"116.289040527344","lat":"39.9604722764757","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5c45\u7136\u4e4b\u5bb6(\u91d1\u6e90\u5e97)","time":"2022-08-17 17:12:00"},"files":[],"workLogCarbonCopyRels":[{"id":1726,"work_log_id":20700,"user_id":5016,"user":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"}}},{"id":1727,"work_log_id":20700,"user_id":5064,"user":{"id":5064,"key":5064,"name":"\u59da\u96ea\u7eaf","sex":"F","avatar":{"id":38,"user_id":5064,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5bec09dc-1f7a-3542-89a2-cedfefb3fded.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"2\u5c0f\u65f612\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":20062,"client_id":null,"scenario_id":1,"scenario_option_id":9,"end_at":"2022-07-27 01:11:00","created_by":1000,"created_at":"2022-07-27 09:55:41","updated_at":"2022-07-27 10:01:53","start_at":"2022-07-27 01:00: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:11:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":9,"key":9,"name":"\u552e\u524d\u6280\u672f\u4ea4\u6d41"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":null,"project":null,"workLogContacts":[],"commentCount":{"object_id":20062,"comment":5},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[{"id":1081,"work_log_id":20062,"user_id":5016,"user":{"id":5016,"key":5016,"name":"\u9ad8\u90e1\u9633","sex":"M","avatar":{"id":35,"user_id":5016,"name":"\/files\/cdn\/a57be577deb434\/avatar\/404e0bcf-6382-3f63-b93b-4d936f35a4b2.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"11\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":19615,"client_id":null,"scenario_id":1,"scenario_option_id":7,"end_at":"2022-07-13 18:00:00","created_by":1000,"created_at":"2022-07-13 19:25:03","updated_at":"2022-07-13 19:25:03","start_at":"2022-07-13 17:00: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":"01:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":7,"key":7,"name":"\u62dc\u8bbf\u5382\u5546"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":null,"project":null,"workLogContacts":[],"commentCount":{"object_id":19615,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[{"id":662,"work_log_id":19615,"user_id":1001,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"1\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":19054,"client_id":149,"scenario_id":3,"scenario_option_id":27,"end_at":"2022-06-04 12:26:00","created_by":1000,"created_at":"2022-06-04 12:26:05","updated_at":"2022-07-13 18:08:27","start_at":"2022-06-04 12:25:00","description":"\u6d4b\u8bd5","escort":"\u6d4b\u8bd5test","is_draft":0,"location_id":null,"project_id":2622,"location_in_id":11143,"location_out_id":11144,"status":0,"indistance":11294,"outdistance":11294,"hours_spent":"00:01:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":{"id":149,"key":149,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u6cd5\u8bc1\u90e8)\uff08\u71d5\u4eac\uff09","client_class":80,"logo":null,"sales_rep":1005,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u6657\u7131"},"clientClass":{"id":80,"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237"},"can_visit":true},"project":{"id":2622,"key":2622,"name":"\u8f6f\u4ef6\u627f\u8f7d\u865a\u62df\u5316\u5e73\u53f0"},"workLogContacts":[{"id":3322,"key":3322,"name":"\u6bd5\u6653\u6645","department":"\u751f\u4ea7\u90e8","job_position":"\u4e3b\u4efb","mobiles":[{"id":3696,"contact_id":3322,"mobile":"13910110069","mp_open_id":null}]}],"commentCount":{"object_id":19054,"comment":9},"attachmentRelationships":[],"locationIn":{"id":11143,"lng":"116.191183268229","lat":"39.9383070203993","address":"\u5317\u4eac\u5e02\u77f3\u666f\u5c71\u533a\u5b9e\u5174\u5927\u8857\u9760\u8fd1\u5317\u4eac\u516b\u5927\u5904\u4e2d\u897f\u533b\u7ed3\u5408\u533b\u9662","time":"2022-06-04 12:25:00"},"locationOut":{"id":11144,"lng":"116.191183268229","lat":"39.9383070203993","address":"\u5317\u4eac\u5e02\u77f3\u666f\u5c71\u533a\u5b9e\u5174\u5927\u8857\u9760\u8fd1\u5317\u4eac\u516b\u5927\u5904\u4e2d\u897f\u533b\u7ed3\u5408\u533b\u9662","time":"2022-06-04 12:26:00"},"files":[],"workLogCarbonCopyRels":[{"id":659,"work_log_id":19054,"user_id":1001,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"1\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":18781,"client_id":null,"scenario_id":3,"scenario_option_id":27,"end_at":"2022-05-12 20:00:00","created_by":1000,"created_at":"2022-05-12 21:24:20","updated_at":"2022-07-13 18:09:33","start_at":"2022-05-12 19:00:00","description":"test","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":"01:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":null,"project":null,"workLogContacts":[],"commentCount":{"object_id":18781,"comment":3},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[{"id":660,"work_log_id":18781,"user_id":1001,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"1\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":18780,"client_id":null,"scenario_id":3,"scenario_option_id":27,"end_at":"2022-05-12 11:00:00","created_by":1000,"created_at":"2022-05-12 21:22:49","updated_at":"2022-05-12 21:22:49","start_at":"2022-05-12 10:00: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":"01:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":null,"project":null,"workLogContacts":[],"commentCount":{"object_id":18780,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[{"id":1,"work_log_id":18780,"user_id":1001,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"1\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":18779,"client_id":null,"scenario_id":3,"scenario_option_id":27,"end_at":"2022-05-12 09:45:00","created_by":1000,"created_at":"2022-05-12 21:21:31","updated_at":"2022-05-12 21:21:31","start_at":"2022-05-12 09:00: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:45:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":null,"scenarioOption":{"id":27,"key":27,"name":"\u5916\u51fa\u529e\u516c"},"scenarios":{"id":3,"key":3,"name":"\u5185\u52e4\u65e5\u5fd7"},"client":null,"project":null,"workLogContacts":[],"commentCount":{"object_id":18779,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"45\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":15239,"client_id":149,"scenario_id":1,"scenario_option_id":3,"end_at":"2021-04-01 16:00:00","created_by":1000,"created_at":"2021-04-01 12:18:10","updated_at":"2021-04-01 16:01:38","start_at":"2021-04-01 10:00:00","description":"","escort":"\u5218\u5fd7\u521a","is_draft":0,"location_id":7675,"project_id":null,"location_in_id":7675,"location_out_id":null,"status":0,"indistance":34535,"outdistance":999999999,"hours_spent":"06:00:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{"id":7675,"geolocation":"(116.396361490885,40.2430726453993)","created_by":1000,"address":"\u5317\u4eac\u5e02\u660c\u5e73\u533a\u79e6\u57ce\u8def\u9760\u8fd1\u516c\u5b89\u90e8\u7269\u8bc1\u9274\u5b9a\u4e2d\u5fc3\u79e6\u57ce\u57f9\u8bad\u57fa\u5730","created_at":"2021-04-01 12:18:10","updated_at":"2021-04-01 12:17:00"},"scenarioOption":{"id":3,"key":3,"name":"\u5ba2\u6237\u89c1\u9762\u6c9f\u901a"},"scenarios":{"id":1,"key":1,"name":"\u9500\u552e\u65e5\u5fd7"},"client":{"id":149,"key":149,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u6cd5\u8bc1\u90e8)\uff08\u71d5\u4eac\uff09","client_class":80,"logo":null,"sales_rep":1005,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u6657\u7131"},"clientClass":{"id":80,"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[{"id":783,"key":783,"name":"\u9a6c\u6210","department":"","job_position":"","mobiles":[{"id":2042,"contact_id":783,"mobile":"18310095133","mp_open_id":null}]}],"commentCount":{"object_id":15239,"comment":3},"attachmentRelationships":[],"locationIn":{"id":7675,"lng":"116.396361490885","lat":"40.2430726453993","address":"\u5317\u4eac\u5e02\u660c\u5e73\u533a\u79e6\u57ce\u8def\u9760\u8fd1\u516c\u5b89\u90e8\u7269\u8bc1\u9274\u5b9a\u4e2d\u5fc3\u79e6\u57ce\u57f9\u8bad\u57fa\u5730","time":"2021-04-01 12:17:00"},"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"6\u5c0f\u65f6","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":14518,"client_id":149,"scenario_id":2,"scenario_option_id":21,"end_at":"2020-10-16 15:00:00","created_by":1000,"created_at":"2020-10-16 15:13:11","updated_at":"2020-10-16 15:13:11","start_at":"2020-10-16 10:30:00","description":"","escort":"","is_draft":0,"location_id":6705,"project_id":null,"location_in_id":6705,"location_out_id":null,"status":0,"indistance":34502,"outdistance":999999999,"hours_spent":"04:30:00","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10,"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"}},"location":{"id":6705,"geolocation":"(116.396350911458,40.2427726236979)","created_by":1000,"address":"\u5317\u4eac\u5e02\u660c\u5e73\u533a\u79e6\u57ce\u8def\u9760\u8fd1\u516c\u5b89\u90e8\u7269\u8bc1\u9274\u5b9a\u4e2d\u5fc3\u79e6\u57ce\u57f9\u8bad\u57fa\u5730","created_at":"2020-10-16 15:13:11","updated_at":"2020-10-16 15:12:00"},"scenarioOption":{"id":21,"key":21,"name":" \u516c\u53f8\u8c03\u8bd5\u5ba2\u6237\u8bbe\u5907"},"scenarios":{"id":2,"key":2,"name":"\u5de5\u7a0b\u5e08\u65e5\u5fd7"},"client":{"id":149,"key":149,"name":"\u516c\u5b89\u90e8\u7b2c\u4e00\u7814\u7a76\u6240(\u6cd5\u8bc1\u90e8)\uff08\u71d5\u4eac\uff09","client_class":80,"logo":null,"sales_rep":1005,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u6657\u7131"},"clientClass":{"id":80,"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237"},"can_visit":true},"project":null,"workLogContacts":[{"id":783,"key":783,"name":"\u9a6c\u6210","department":"","job_position":"","mobiles":[{"id":2042,"contact_id":783,"mobile":"18310095133","mp_open_id":null}]}],"commentCount":null,"attachmentRelationships":[],"locationIn":{"id":6705,"lng":"116.396350911458","lat":"40.2427726236979","address":"\u5317\u4eac\u5e02\u660c\u5e73\u533a\u79e6\u57ce\u8def\u9760\u8fd1\u516c\u5b89\u90e8\u7269\u8bc1\u9274\u5b9a\u4e2d\u5fc3\u79e6\u57ce\u57f9\u8bad\u57fa\u5730","time":"2020-10-16 15:12:00"},"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"4\u5c0f\u65f630\u5206\u949f","read":0,"total":0,"can_update":true,"can_delete":true,"can_create_reimbursement":true,"can_create_project":true,"can_location_in":false,"can_location_out":false}],"pagenation":{"totalcount":27,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-06-30 21:24:22') RETURNING "id" |
21:24:22.685 | 1.8 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
21:24:22.732 | 1.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518)) |
21:24:22.754 | 1.4 ms | yii\db\Command::query | SELECT "work_log_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" != 4) AND ("status" != 0) AND ("work_log_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518)) GROUP BY "work_log_id" |
21:24:22.756 | 1.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "work_log_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518) |
21:24:22.735 | 1.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=101) AND ("object_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518)) |
21:24:22.691 | 1.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
21:24:22.736 | 0.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518) |
21:24:22.738 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id" IN (24988, 20700, 20062, 19615, 19054, 18781, 18780, 18779, 15239, 14518) ORDER BY "id" |
21:24:22.695 | 0.7 ms | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE "user_status"='1' ORDER BY "id" |
21:24:22.711 | 0.7 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (783, 3322, 3643, 4082) |
21:24:22.704 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id" IN (7675, 6705) |
21:24:22.703 | 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"=1000) |
21:24:22.710 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "department", "job_position" FROM "a57be577deb434"."tbl_contacts" WHERE "id" IN (783, 3322, 4082, 3643) |
21:24:22.707 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_classes" WHERE "id" IN (1, 80) |
21:24:22.737 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", CASE WHEN user_status = '-1' THEN name || '(已离职)' ELSE name END AS name, "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 5016, 5064) |
21:24:22.705 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id" IN (73, 7, 9, 27, 3, 21) |
21:24:22.704 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=10 |
21:24:22.706 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "client_class", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id" IN (149, 982) |
21:24:22.706 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id" IN (1, 3, 2) |
21:24:22.703 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
21:24:22.734 | 0.2 ms | yii\db\Command::query | SELECT id, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id" IN (13165, 11143, 7675, 6705) |
21:24:22.707 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (1111, 2622) |
21:24:22.706 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 1005) |
21:24:22.737 | 0.2 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" IN (1001, 5016, 5064)) |
21:24:22.734 | 0.2 ms | yii\db\Command::query | SELECT id, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id" IN (13166, 11646, 11144) |