All Latest
6a1eabf8729b6: POST https://beta.jinchangxiao.com/vue/pre-sales/save-new at 2026-06-02 06:10:00 pm by 221.216.117.119

Performance Profiling

Total processing time: 64 ms; Peak memory: 5.551 MB. Show Profiling Timeline

总计39条数据
TimeDurationCategoryInfo
  
18:10:00.50013.4 msyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_contact_attend_pre_sales' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
18:10:00.4824.0 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_pre_sales" ("case_id", "client_id", "service_id", "start_at", "end_at", "client_concerns", "pre_sales_assessment", "has_following_work", "following_work_content", "description", "is_draft", "updated_at", "created_by", "engineer_id", "ticket_no") VALUES (9262, 3464, 273, '2026/06/02 00:00', '2026/06/02 02:00', '', '', FALSE, '', '', FALSE, 'now()', 5064, 5064, 'PS260602001001') RETURNING "id"
18:10:00.4954.0 msyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_contact_attend_pre_sales' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
18:10:00.5143.2 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_contact_attend_pre_sales" ("contact_id", "pre_sales_id") VALUES (6258, 1946) RETURNING "pre_sales_id", "contact_id"
18:10:00.4882.2 msyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=4) AND ("object_id"=1946)
18:10:00.4902.0 msyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=23) AND ("object_id"=1946)
18:10:00.4932.0 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_attend_pre_sales" WHERE "pre_sales_id"=1946
18:10:00.5200.9 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 1946, 4, 5064, '2026-06-02 18:10:00', '{"id":1946,"client_id":3464,"start_at":"2026-06-02 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-02 18:10:00","updated_at":"2026-06-02 18:10:00","following_work_content":"","project_status":null,"end_at":"2026-06-02 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9262,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260602001001","client_document_id":null,"client_document_file":null,"indistance":null,"outdistance":null}', '{"id":1946,"client_id":3464,"start_at":"2026-06-02 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-02 18:10:00","updated_at":"2026-06-02 18:10:00","following_work_content":"","project_status":null,"end_at":"2026-06-02 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9262,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260602001001","client_document_id":null,"client_document_file":null,"indistance":null,"outdistance":null}', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":[]}') RETURNING "id"
18:10:00.5300.8 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 5064, 5, 'vue/pre-sales/save-new', '{"PreSales":{"id":"","case_id":"9262","client_id":"3464","client_name":"\u9690\u6027\u9700\u6c42","attendedContacts":["6258"],"service_id":"273","start_at":"2026\/06\/02 00:00","end_at":"2026\/06\/02 02:00","client_concerns":"","pre_sales_assessment":"","has_following_work":"0","following_work_content":"","description":"","is_draft":"0"},"web_access_token":"66P66ib-3t6D-JRCTEPzE250hI-J5OEu"}', '{"code":2000,"result":{"id":1946},"status":1,"msg":[{"name":"success","success":"\u65b0\u552e\u524d\u5de5\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/148.0.0.0 Safari\/537.36"}', FALSE, '2026-06-02 18:10:00', 59889152) RETURNING "id"
18:10:00.5180.8 msyii\db\Command::executeINSERT 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:1946;s:10:"contact_id";i:6258;}', '', 5064, '221.216.117.119')
18:10:00.5280.8 msyii\db\Command::queryINSERT 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', 9262, 18, 1946, 4, 5064, '1946', '1946', array[5449,5064], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260602001001"]}') RETURNING "id"
18:10:00.5240.7 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 9262, 18, 1946, 4, 5064, '[1946]', '[1946]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260602001001"]}') RETURNING "id"
18:10:00.4860.7 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\PreSales', 1946, 'a:25:{s:2:"id";i:1946;s:9:"client_id";s:4:"3464";s:8:"start_at";s:19:"2026-06-02 00:00:00";s:11:"description";s:0:"";s:15:"client_concerns";s:0:"";s:20:"pre_sales_assessment";s:0:"";s:11:"engineer_id";i:5064;s:10:"created_by";i:5064;s:10:"created_at";N;s:10:"updated_at";s:19:"1970-01-01 08:00:00";s:22:"following_work_content";s:0:"";s:14:"project_status";N;s:6:"end_at";s:19:"2026-06-02 02:00:00";s:18:"has_following_work";s:1:"0";s:11:"location_id";N;s:8:"is_draft";s:1:"0";s:7:"case_id";s:4:"9262";s:10:"service_id";s:3:"273";s:14:"location_in_id";N;s:15:"location_out_id";N;s:9:"ticket_no";s:14:"PS260602001001";s:18:"client_document_id";N;s:20:"client_document_file";N;s:10:"indistance";N;s:11:"outdistance";N;}', '', 5064, '221.216.117.119')
18:10:00.4800.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "case_id"='9262' ORDER BY "id" DESC
18:10:00.4710.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=5064
18:10:00.5230.7 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Cases', 9262, 'a:1:{s:8:"start_at";s:19:"2026-06-02 00:00:00";}', '', 5064, '221.216.117.119')
18:10:00.5220.7 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_cases" SET "updated_at"='now()' WHERE "id"=9262
18:10:00.5210.7 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 640989, 'a:13:{s:2:"id";i:640989;s:9:"object_id";i:1946;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:573:"{"id":1946,"client_id":3464,"start_at":"2026-06-02 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-02 18:10:00","updated_at":"2026-06-02 18:10:00","following_work_content":"","project_status":null,"end_at":"2026-06-02 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9262,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260602001001","client_document_id":null,"client_document_file":null,"indistance":null,"outdistance":null}";s:9:"new_value";s:573:"{"id":1946,"client_id":3464,"start_at":"2026-06-02 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-02 18:10:00","updated_at":"2026-06-02 18:10:00","following_work_content":"","project_status":null,"end_at":"2026-06-02 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9262,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260602001001","client_document_id":null,"client_document_file":null,"indistance":null,"outdistance":null}";s:11:"description";s:93:"{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":[]}";s:10:"created_by";i:5064;s:10:"created_at";s:19:"2026-06-02 18:10:00";s:9:"is_delete";N;}', '', 5064, '221.216.117.119')
18:10:00.5250.7 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 640990, 'a:13:{s:2:"id";i:640990;s:9:"object_id";i:9262;s:11:"object_type";i:18;s:9:"target_id";i:1946;s:18:"target_object_type";i:4;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[1946]";s:9:"new_value";s:6:"[1946]";s:11:"description";s:134:"{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260602001001"]}";s:10:"created_by";i:5064;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5064, '221.216.117.119')
18:10:00.5280.7 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 171888, 'a:15:{s:2:"id";i:171888;s:9:"object_id";i:9262;s:11:"object_type";i:18;s:9:"target_id";i:1946;s:18:"target_object_type";i:4;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"1946";s:9:"new_value";s:4:"1946";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[5449,5064]";s:6:"params";a:0:{}}s:11:"description";s:134:"{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260602001001"]}";s:10:"created_by";i:5064;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 5064, '221.216.117.119')
18:10:00.4730.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064
18:10:00.4710.4 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
18:10:00.4870.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3464'
18:10:00.5190.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064
18:10:00.5270.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064
18:10:00.5260.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3464
18:10:00.5240.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064
18:10:00.4790.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3464')
18:10:00.5140.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='6258')
18:10:00.4770.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9262'
18:10:00.4800.2 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064)
18:10:00.4800.2 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064)
18:10:00.5220.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=9262
18:10:00.5190.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "id"=1946
18:10:00.5140.2 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "id"=1946)
18:10:00.4810.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9262'
18:10:00.4790.2 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9262')
18:10:00.4950.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contacts" WHERE 0=1
18:10:00.5260.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=9262