Performance Profiling

Total processing time: 192 ms; Peak memory: 5.352 MB. Show Profiling Timeline

总计42条数据
TimeDurationCategoryInfo
  
17:37:19.37129.0 msyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787)) GROUP BY "object_id"
17:37:19.42519.4 msyii\db\Command::querySELECT "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 (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787)) GROUP BY "object_id"
17:37:19.32913.8 msyii\db\Command::querySELECT 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"=982) AND ("is_draft"=FALSE) GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC) "c"
17:37:19.4529.1 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4098.0 msyii\db\Command::querySELECT id, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id" IN (12020, 11359, 10491, 10155, 9226)
17:37:19.3617.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787)
17:37:19.3437.4 msyii\db\Command::querySELECT 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"=982) AND ("is_draft"=FALSE) GROUP BY "s"."id" ORDER BY "is_draft" DESC, "s"."end_at" DESC LIMIT 10
17:37:19.4035.6 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (9270, 9634, 11152)
17:37:19.4923.9 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4873.9 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4703.9 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4963.9 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4623.6 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4793.6 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4663.6 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4753.6 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.4833.4 msyii\db\Command::querySELECT "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, 5448, 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, 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))
17:37:19.3182.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd'
17:37:19.4012.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787))
17:37:19.5012.2 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 6, 166, 'v2/work-log/of-client', '{"id":"982","page":"1","pagesize":"10","posttime":"1751881039","access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"6","version_code":"166","token":"bb2bd496fef3069d38dc14c45ee1eabc"}', '{"code":200,"data":{"list":[{"id":21551,"client_id":982,"scenario_id":1,"scenario_option_id":4,"end_at":"2022-10-10 14:01:00","created_by":1001,"created_at":"2022-10-10 14:01:57","updated_at":"2022-10-10 20:43:02","start_at":"2022-10-10 14:01:00","description":"\u62dc\u8bbf","escort":"","is_draft":0,"location_id":null,"project_id":1111,"location_in_id":12020,"location_out_id":12021,"status":0,"indistance":12514,"outdistance":12514,"hours_spent":"00:00:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":4,"key":4,"name":"\u5ba2\u6237\u5403\u996d"},"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":[],"commentCount":{"object_id":21551,"comment":3},"attachmentRelationships":[{"id":16252,"object_type":18,"object_id":21551,"attachment_id":11152,"attachment":{"id":11152,"key":11152,"name":"5bfa7357-9af8-3bdf-b427-585a39c6f1db","extension":"png","path":"\/v2\/attachment\/view\/Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd\/5bfa7357-9af8-3bdf-b427-585a39c6f1db\/20221010140207.png","orig_name":"20221010140207.png"}}],"locationIn":{"id":12020,"lng":"116.408343098958","lat":"40.0052506510417","address":"\u5317\u4eac\u5e02\u671d\u9633\u533a\u5b89\u7acb\u8def\u9760\u8fd1\u9a6c\u54e5\u5b5b\u7f57\u5927\u53a6","time":"2022-10-10 14:01:00"},"locationOut":{"id":12021,"lng":"116.408365342882","lat":"40.0052454969618","address":"\u5317\u4eac\u5e02\u671d\u9633\u533a\u5b89\u7acb\u8def\u9760\u8fd1\u9a6c\u54e5\u5b5b\u7f57\u5927\u53a6","time":"2022-10-10 14:01:00"},"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":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":19578,"client_id":982,"scenario_id":1,"scenario_option_id":8,"end_at":"2022-07-11 09:46:00","created_by":1001,"created_at":"2022-07-11 09:46:24","updated_at":"2022-07-11 09:46:24","start_at":"2022-07-11 09:46:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":11359,"location_out_id":11360,"status":0,"indistance":22558,"outdistance":22558,"hours_spent":"00:00:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":8,"key":8,"name":"\u534f\u540c\u5382\u5546\u62dc\u8bbf\u5ba2\u6237"},"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":null,"workLogContacts":[],"commentCount":{"object_id":19578,"comment":1},"attachmentRelationships":[],"locationIn":{"id":11359,"lng":"116.289059787326","lat":"39.9604519314236","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5c45\u7136\u4e4b\u5bb6(\u91d1\u6e90\u5e97)","time":"2022-07-11 09:46:00"},"locationOut":{"id":11360,"lng":"116.289059787326","lat":"39.9604519314236","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5c45\u7136\u4e4b\u5bb6(\u91d1\u6e90\u5e97)","time":"2022-07-11 09:46:00"},"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":19475,"client_id":982,"scenario_id":1,"scenario_option_id":62,"end_at":"2022-07-05 00:01:00","created_by":1001,"created_at":"2022-07-05 10:27:20","updated_at":"2022-07-05 10:27:20","start_at":"2022-07-05 00: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:01:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":62,"key":62,"name":"\u5ba2\u6237\u5fae\u4fe1"},"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":null,"workLogContacts":[],"commentCount":{"object_id":19475,"comment":1},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"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":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":18718,"client_id":982,"scenario_id":1,"scenario_option_id":6,"end_at":"2022-05-10 20:15:00","created_by":1001,"created_at":"2022-05-10 21:33:43","updated_at":"2022-05-10 21:34:01","start_at":"2022-05-10 20:00:00","description":"\u7535\u8bdd","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:15:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":6,"key":6,"name":"\u5ba2\u6237\u89c1\u9762\u8c08\u9690\u79c1"},"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":null,"workLogContacts":[],"commentCount":{"object_id":18718,"comment":2},"attachmentRelationships":[],"locationIn":null,"locationOut":null,"files":[],"workLogCarbonCopyRels":[],"workLogVerifyRels":[],"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"15\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":18220,"client_id":982,"scenario_id":1,"scenario_option_id":4,"end_at":"2022-02-22 15:39:00","created_by":1001,"created_at":"2022-02-22 15:39:37","updated_at":"2022-02-22 15:39:37","start_at":"2022-02-22 15:39:00","description":"\u559d\u4e86\u8305\u53f0","escort":"","is_draft":0,"location_id":null,"project_id":1111,"location_in_id":10491,"location_out_id":10492,"status":0,"indistance":37085,"outdistance":37085,"hours_spent":"00:00:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":4,"key":4,"name":"\u5ba2\u6237\u5403\u996d"},"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":3819,"key":3819,"name":"JJ","department":"","job_position":"","mobiles":[{"id":4648,"contact_id":3819,"mobile":"18610100906","mp_open_id":null}]},{"id":3837,"key":3837,"name":"\u5218\u6d77\u9759","department":"","job_position":"","mobiles":[{"id":4655,"contact_id":3837,"mobile":"13361065172","mp_open_id":"oagch6eY0rbrcq3XzvnP-ZLwCqnk"}]}],"commentCount":{"object_id":18220,"comment":1},"attachmentRelationships":[{"id":12134,"object_type":18,"object_id":18220,"attachment_id":9634,"attachment":{"id":9634,"key":9634,"name":"f737c86b-afc1-34c9-981b-91189ba1191c","extension":"png","path":"\/v2\/attachment\/view\/Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd\/f737c86b-afc1-34c9-981b-91189ba1191c\/20220222153926.png","orig_name":"20220222153926.png"}}],"locationIn":{"id":10491,"lng":"116.430754665799","lat":"39.7742656792535","address":"\u5317\u4eac\u5e02\u5927\u5174\u533a\u5fb7\u88d5\u8857\u9760\u8fd1\u6d77\u68ee\u56ed","time":"2022-02-22 15:39:00"},"locationOut":{"id":10492,"lng":"116.430766601562","lat":"39.7742339409722","address":"\u5317\u4eac\u5e02\u5927\u5174\u533a\u5fb7\u88d5\u8857\u9760\u8fd1\u6d77\u68ee\u56ed","time":"2022-02-22 15:39:00"},"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":17730,"client_id":982,"scenario_id":1,"scenario_option_id":8,"end_at":"2021-12-23 12:26:00","created_by":1001,"created_at":"2021-12-23 12:26:04","updated_at":"2021-12-23 12:26:52","start_at":"2021-12-23 12:26:00","description":"\u5b8c\u6210\u5403\u996d\u4e86","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":10155,"location_out_id":10156,"status":0,"indistance":37077,"outdistance":37077,"hours_spent":"00:00:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":8,"key":8,"name":"\u534f\u540c\u5382\u5546\u62dc\u8bbf\u5ba2\u6237"},"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":null,"workLogContacts":[{"id":3780,"key":3780,"name":"\u674e\u8861\u6d4b\u8bd52","department":"","job_position":"","mobiles":[{"id":4593,"contact_id":3780,"mobile":"18235476682","mp_open_id":"oagch6Va-LROWka8-zzJv45xuCXQ"}]}],"commentCount":null,"attachmentRelationships":[{"id":5385,"object_type":18,"object_id":17730,"attachment_id":9270,"attachment":{"id":9270,"key":9270,"name":"d5fe38ad-16cb-3492-9002-2765e608a130","extension":"png","path":"\/v2\/attachment\/view\/Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd\/d5fe38ad-16cb-3492-9002-2765e608a130\/20211223122651.png","orig_name":"20211223122651.png"}}],"locationIn":{"id":10155,"lng":"116.430681152344","lat":"39.7743443467882","address":"\u5317\u4eac\u5e02\u5927\u5174\u533a\u5fb7\u88d5\u8857\u9760\u8fd1\u6d77\u68ee\u56ed","time":"2021-12-23 12:26:00"},"locationOut":{"id":10156,"lng":"116.430754123264","lat":"39.7744780815972","address":"\u5317\u4eac\u5e02\u5927\u5174\u533a\u5fb7\u88d5\u8857\u9760\u8fd1\u6d77\u68ee\u56ed","time":"2021-12-23 12:26:00"},"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":17462,"client_id":982,"scenario_id":1,"scenario_option_id":3,"end_at":"2021-11-18 09:00:00","created_by":1001,"created_at":"2021-11-18 10:21:49","updated_at":"2021-11-18 10:21:49","start_at":"2021-11-18 08:00:00","description":"\u8ddf\u5218\u603b\u6c9f\u901a\u65b9\u6848\u3002\u5218\u603b\u8ba4\u53ef\u3002","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":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":3,"key":3,"name":"\u5ba2\u6237\u89c1\u9762\u6c9f\u901a"},"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":null,"workLogContacts":[{"id":3787,"key":3787,"name":"\u5218\u603b","department":"","job_position":"","mobiles":[{"id":4600,"contact_id":3787,"mobile":"15210259560","mp_open_id":"oagch6V1XbWSxtLIbp8e3lRnbDyw"}]},{"id":3791,"key":3791,"name":"\u82cf\u6e05\u4e91","department":"","job_position":"","mobiles":[{"id":4605,"contact_id":3791,"mobile":"13889570890","mp_open_id":"oagch6RG8ipmBuUFqj3K78oJAhyk"}]}],"commentCount":null,"attachmentRelationships":[],"locationIn":null,"locationOut":null,"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":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":17033,"client_id":982,"scenario_id":1,"scenario_option_id":2,"end_at":"2021-09-28 00:45:00","created_by":1001,"created_at":"2021-09-28 10:20:52","updated_at":"2021-09-28 10:20:52","start_at":"2021-09-28 00:00:00","description":"\u65b9\u6848\u6c9f\u901a\u5b8c\u6210","escort":"","is_draft":0,"location_id":null,"project_id":1018,"location_in_id":null,"location_out_id":null,"status":0,"indistance":999999999,"outdistance":999999999,"hours_spent":"00:45:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":2,"key":2,"name":"\u5ba2\u6237\u7535\u8bdd\u6c9f\u901a"},"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":1018,"key":1018,"name":"\u89c6\u9891\u534f\u4f5c\u53ca\u5373\u65f6\u901a\u8baf\u878d\u5408\u65b9\u6848"},"workLogContacts":[{"id":3645,"key":3645,"name":"\u5218\u5fd7\u521a(\u6d4b\u8bd5)","department":"","job_position":"","mobiles":[{"id":4431,"contact_id":3645,"mobile":"15764340998","mp_open_id":"oagch6XdH-5gyziy6jk7m_Cz_Fu8"}]}],"commentCount":null,"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":false,"can_create_project":true,"can_location_in":false,"can_location_out":false},{"id":16787,"client_id":982,"scenario_id":2,"scenario_option_id":19,"end_at":"2021-09-11 11:25:00","created_by":1001,"created_at":"2021-09-11 11:25:26","updated_at":"2021-09-11 11:25:26","start_at":"2021-09-11 11:25:00","description":"","escort":"","is_draft":0,"location_id":null,"project_id":null,"location_in_id":9226,"location_out_id":9227,"status":0,"indistance":44778,"outdistance":44778,"hours_spent":"00:00:00","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"location":null,"scenarioOption":{"id":19,"key":19,"name":"\u516c\u53f8\u5185\u90e8\u4f1a\u8bae"},"scenarios":{"id":2,"key":2,"name":"\u5de5\u7a0b\u5e08\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":null,"workLogContacts":[],"commentCount":null,"attachmentRelationships":[],"locationIn":{"id":9226,"lng":"116.210761176215","lat":"39.7574457465278","address":"\u5317\u4eac\u5e02\u623f\u5c71\u533a\u6021\u548c\u8def\u9760\u8fd1\u957f\u9633\u534a\u5c9b","time":"2021-09-11 11:25:00"},"locationOut":{"id":9227,"lng":"116.210761176215","lat":"39.7574457465278","address":"\u5317\u4eac\u5e02\u623f\u5c71\u533a\u6021\u548c\u8def\u9760\u8fd1\u957f\u9633\u534a\u5c9b","time":"2021-09-11 11:25:00"},"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}],"pagenation":{"totalcount":126,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-07 17:37:19') RETURNING "id"
17:37:19.4452.2 msyii\db\Command::querySELECT "work_log_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" != 4) AND ("status" != 0) AND ("work_log_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787)) GROUP BY "work_log_id"
17:37:19.3161.9 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
17:37:19.4201.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787)
17:37:19.3571.8 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id" IN (1, 2)
17:37:19.4481.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "work_log_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787)
17:37:19.4241.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787) ORDER BY "id"
17:37:19.4191.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=101) AND ("object_id" IN (21551, 20700, 19578, 19475, 18718, 18220, 17730, 17462, 17033, 16787))
17:37:19.3701.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (3643, 3645, 3780, 3787, 3791, 3819, 3837, 4082)
17:37:19.3551.1 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id" IN (4, 7, 8, 62, 6, 3, 2, 19)
17:37:19.3221.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
17:37:19.3241.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='982') AND ("deleted"=FALSE)
17:37:19.4170.9 msyii\db\Command::querySELECT id, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id" IN (12021, 11646, 11360, 10492, 10156, 9227)
17:37:19.4220.7 msyii\db\Command::querySELECT "id", "id" AS "key", CASE WHEN user_status = '-1' THEN name || '(已离职)' ELSE name END AS name, "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5016, 5064)
17:37:19.3690.7 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "department", "job_position" FROM "a57be577deb434"."tbl_contacts" WHERE "id" IN (3780, 3645, 3787, 3791, 3837, 3819, 4082, 3643)
17:37:19.3540.5 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1001, 1000))
17:37:19.3550.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id" IN (4, 10)
17:37:19.3530.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 1000)
17:37:19.3600.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_classes" WHERE "id"=1
17:37:19.3600.4 msyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (1111, 1018)
17:37:19.3590.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "client_class", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=982
17:37:19.4230.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (5016, 5064))
17:37:19.3590.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001