Total processing time: 44 ms; Peak memory: 3.687 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
10:29:03.957 | 2.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='LaARkbjpq8ODkVzzYWTT4va5Qt3CsuSp' |
10:29:03.976 | 1.9 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Cases', 8279, 'a:1:{s:8:"start_at";s:19:"2025-07-11 08:00:00";}', '', 1017, '223.104.40.121') |
10:29:03.955 | 1.8 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:29:03.986 | 1.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=4) AND ("object_id"=1838) |
10:29:03.966 | 1.3 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Location', 19236, 'a:0:{}', '', 1017, '223.104.40.121') |
10:29:03.987 | 1.1 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=4) AND ("object_id"=1838) |
10:29:03.961 | 1.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:29:03.973 | 1.1 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 1838, 4, 1017, '2025-07-11 10:28:56', '{"id":1838,"client_id":"2815","start_at":"2025-07-11 10:28:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":1017,"created_by":1017,"created_at":"2025-07-11 10:28:56","updated_at":"1970-01-01 08:00:00","following_work_content":null,"project_status":null,"end_at":"2025-07-11 10:28:00","has_following_work":"0","location_id":null,"is_draft":"0","case_id":"8279","service_id":"273","location_in_id":"19236","location_out_id":"19237","ticket_no":"PS250711001002","client_document_id":null,"client_document_file":null,"indistance":"956.05850737637","outdistance":"960.36584996089"}', '{"id":1838,"client_id":"2815","start_at":"2025-07-11 10:28:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":1017,"created_by":1017,"created_at":"2025-07-11 10:28:56","updated_at":"1970-01-01 08:00:00","following_work_content":null,"project_status":null,"end_at":"2025-07-11 10:28:00","has_following_work":"0","location_id":null,"is_draft":"0","case_id":"8279","service_id":"273","location_in_id":"19236","location_out_id":"19237","ticket_no":"PS250711001002","client_document_id":null,"client_document_file":null,"indistance":"956.05850737637","outdistance":"960.36584996089"}', '{"d1":"\u8f66\u660e\u98de","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":[]}') RETURNING "id" |
10:29:03.994 | 1.1 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', 1017, 2, 1141, 'v2/pre-sales/save-edit', '{"PreSales":{"attendedContacts":["5245"],"case_id":"8279","client_concerns":"","client_id":"2815","description":"","end_at":"2025-07-11 10:28","has_following_work":"0","id":"1838","is_draft":"0","location_in_address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","location_in_distance":"956.05850737637","location_in_id":"19236","location_in_lat":"39.9606282552083","location_in_lng":"116.289078504774","location_in_updated_at":"2025-07-11 10:28:00","location_out_address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","location_out_distance":"960.36584996089","location_out_id":"19237","location_out_lat":"39.9605137803819","location_out_lng":"116.289011773003","location_out_updated_at":"2025-07-11 10:28:00","pre_sales_assessment":"","service_id":"273","start_at":"2025-07-11 10:28"},"access_token":"LaARkbjpq8ODkVzzYWTT4va5Qt3CsuSp","device_type":"2","posttime":"1752200960","token":"bf2d00aefcb8f5e25393de3d06cab840","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u552e\u524d\u5de5\u5355\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-07-11 10:29:03') RETURNING "id" |
10:29:03.981 | 1.0 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (1, 'create', 8279, 18, 1838, 4, 1017, '1838', '1838', array[1004,1017], '{"d1":"\u8f66\u660e\u98de","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":"\u5de5\u5355\u7f16\u53f7:PS250711001002"}') RETURNING "id" |
10:29:03.991 | 1.0 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_contact_attend_pre_sales" ("contact_id", "pre_sales_id") VALUES (5245, 1838) RETURNING "pre_sales_id", "contact_id" |
10:29:03.983 | 0.9 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_pre_sales" SET "client_id"=2815, "start_at"='2025-07-11 10:28:00', "updated_at"='now()', "end_at"='2025-07-11 10:28:00', "has_following_work"=FALSE, "is_draft"=FALSE, "case_id"=8279, "service_id"=273, "location_in_id"=19236, "location_out_id"=19237, "indistance"=956.05850737637, "outdistance"=960.36584996089 WHERE "id"=1838 |
10:29:03.975 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_cases" SET "updated_at"='now()' WHERE "id"=8279 |
10:29:03.968 | 0.8 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Location', 19237, 'a:0:{}', '', 1017, '223.104.40.121') |
10:29:03.974 | 0.8 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510520, 'a:13:{s:2:"id";i:510520;s:9:"object_id";i:1838;s:11:"object_type";i:4;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:609:"{"id":1838,"client_id":"2815","start_at":"2025-07-11 10:28:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":1017,"created_by":1017,"created_at":"2025-07-11 10:28:56","updated_at":"1970-01-01 08:00:00","following_work_content":null,"project_status":null,"end_at":"2025-07-11 10:28:00","has_following_work":"0","location_id":null,"is_draft":"0","case_id":"8279","service_id":"273","location_in_id":"19236","location_out_id":"19237","ticket_no":"PS250711001002","client_document_id":null,"client_document_file":null,"indistance":"956.05850737637","outdistance":"960.36584996089"}";s:9:"new_value";s:609:"{"id":1838,"client_id":"2815","start_at":"2025-07-11 10:28:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":1017,"created_by":1017,"created_at":"2025-07-11 10:28:56","updated_at":"1970-01-01 08:00:00","following_work_content":null,"project_status":null,"end_at":"2025-07-11 10:28:00","has_following_work":"0","location_id":null,"is_draft":"0","case_id":"8279","service_id":"273","location_in_id":"19236","location_out_id":"19237","ticket_no":"PS250711001002","client_document_id":null,"client_document_file":null,"indistance":"956.05850737637","outdistance":"960.36584996089"}";s:11:"description";s:93:"{"d1":"\u8f66\u660e\u98de","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":[]}";s:10:"created_by";i:1017;s:10:"created_at";s:19:"2025-07-11 10:28:56";s:9:"is_delete";N;}', '', 1017, '223.104.40.121') |
10:29:03.978 | 0.8 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "created_at", "description") VALUES (1, 'create', 8279, 18, 1838, 4, 1017, '[1838]', '[1838]', '2025-07-11 10:28:56', '{"d1":"\u8f66\u660e\u98de","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":"\u5de5\u5355\u7f16\u53f7:PS250711001002"}') RETURNING "id" |
10:29:03.989 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='5245' |
10:29:03.982 | 0.8 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 137129, 'a:15:{s:2:"id";i:137129;s:9:"object_id";s:4:"8279";s:11:"object_type";i:18;s:9:"target_id";i:1838;s:18:"target_object_type";i:4;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"1838";s:9:"new_value";s:4:"1838";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[1004,1017]";s:6:"params";a:0:{}}s:11:"description";s:132:"{"d1":"\u8f66\u660e\u98de","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":"\u5de5\u5355\u7f16\u53f7:PS250711001002"}";s:10:"created_by";i:1017;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1017, '223.104.40.121') |
10:29:03.979 | 0.7 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510521, 'a:13:{s:2:"id";i:510521;s:9:"object_id";s:4:"8279";s:11:"object_type";i:18;s:9:"target_id";i:1838;s:18:"target_object_type";i:4;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[1838]";s:9:"new_value";s:6:"[1838]";s:11:"description";s:132:"{"d1":"\u8f66\u660e\u98de","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":"\u5de5\u5355\u7f16\u53f7:PS250711001002"}";s:10:"created_by";i:1017;s:10:"created_at";s:19:"2025-07-11 10:28:56";s:9:"is_delete";N;}', '', 1017, '223.104.40.121') |
10:29:03.992 | 0.7 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ContactAttendPreSales', 0, 'a:3:{s:2:"id";N;s:12:"pre_sales_id";i:1838;s:10:"contact_id";i:5245;}', '', 1017, '223.104.40.121') |
10:29:03.984 | 0.7 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PreSales', 1838, 'a:4:{s:8:"start_at";s:19:"2025-07-11 10:28:00";s:6:"end_at";s:19:"2025-07-11 10:28:00";s:8:"is_draft";s:1:"0";s:18:"has_following_work";s:1:"0";}', '', 1017, '223.104.40.121') |
10:29:03.980 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
10:29:03.963 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "id"='1838' |
10:29:03.964 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279 |
10:29:03.969 | 0.5 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
10:29:03.993 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_pre_sales_product_types" WHERE "pre_sales_id"=1838 |
10:29:03.965 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19236' |
10:29:03.985 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
10:29:03.972 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:29:03.971 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017 |
10:29:03.988 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_attend_pre_sales" WHERE "pre_sales_id"=1838 |
10:29:03.972 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8279' |
10:29:03.991 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='5245') |
10:29:03.970 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017) |
10:29:03.970 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8279') |
10:29:03.991 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "id"=1838) |
10:29:03.994 | 0.2 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_pre_sales_product_types" WHERE "pre_sales_id"=1838 |
10:29:03.970 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1017) |
10:29:03.971 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19236') |
10:29:03.968 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19237' |
10:29:03.990 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE 0=1 |
10:29:03.971 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19237') |
10:29:03.990 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_attend_pre_sales" WHERE "pre_sales_id"=1838 |