All Latest
6a1d0ef2d4f3d: POST https://beta.jinchangxiao.com/vue/pre-sales/save-new at 2026-06-01 12:47:46 pm by 221.216.117.119

Database Queries

总计38条数据
TimeDurationTypeQuery
  
12:47:46.8740.6 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=5064

12:47:46.8750.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

12:47:46.8790.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9260'

12:47:46.8810.4 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3311')

12:47:46.8810.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9260')

12:47:46.8820.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064)

12:47:46.8820.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064)

12:47:46.8820.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "case_id"='9260' ORDER BY "id" DESC

12:47:46.8830.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='9260'

12:47:46.8833.8 msINSERTINSERT 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 (9260, 3311, 273, '2026/06/01 00:00', '2026/06/01 02:00', '', '', FALSE, '', '', FALSE, 'now()', 5064, 5064, 'PS260601001001') RETURNING "id"

12:47:46.8881.0 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\PreSales', 1945, 'a:25:{s:2:"id";i:1945;s:9:"client_id";s:4:"3311";s:8:"start_at";s:19:"2026-06-01 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-01 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:"9260";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:"PS260601001001";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')

12:47:46.8890.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3311'

12:47:46.8892.1 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=4) AND ("object_id"=1945)

12:47:46.8921.9 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=23) AND ("object_id"=1945)

12:47:46.8942.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_contact_attend_pre_sales" WHERE "pre_sales_id"=1945

12:47:46.8970.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_contacts" WHERE 0=1

12:47:46.8973.8 msSELECTSELECT 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;

12:47:46.90113.6 msSELECTselect 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

12:47:46.9150.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='5903')

12:47:46.9160.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "id"=1945)

12:47:46.9162.8 msINSERTINSERT INTO "a57be577deb434"."tbl_contact_attend_pre_sales" ("contact_id", "pre_sales_id") VALUES (5903, 1945) RETURNING "pre_sales_id", "contact_id"

12:47:46.9190.7 msINSERTINSERT 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:1945;s:10:"contact_id";i:5903;}', '', 5064, '221.216.117.119')

12:47:46.9200.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_pre_sales" WHERE "id"=1945

12:47:46.9200.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

12:47:46.9211.0 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 1945, 4, 5064, '2026-06-01 12:47:46', '{"id":1945,"client_id":3311,"start_at":"2026-06-01 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-01 12:47:46","updated_at":"2026-06-01 12:47:46","following_work_content":"","project_status":null,"end_at":"2026-06-01 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9260,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260601001001","client_document_id":null,"client_document_file":null,"indistance":null,"outdistance":null}', '{"id":1945,"client_id":3311,"start_at":"2026-06-01 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-01 12:47:46","updated_at":"2026-06-01 12:47:46","following_work_content":"","project_status":null,"end_at":"2026-06-01 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9260,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260601001001","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"

12:47:46.9220.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 640842, 'a:13:{s:2:"id";i:640842;s:9:"object_id";i:1945;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":1945,"client_id":3311,"start_at":"2026-06-01 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-01 12:47:46","updated_at":"2026-06-01 12:47:46","following_work_content":"","project_status":null,"end_at":"2026-06-01 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9260,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260601001001","client_document_id":null,"client_document_file":null,"indistance":null,"outdistance":null}";s:9:"new_value";s:573:"{"id":1945,"client_id":3311,"start_at":"2026-06-01 00:00:00","description":"","client_concerns":"","pre_sales_assessment":"","engineer_id":5064,"created_by":5064,"created_at":"2026-06-01 12:47:46","updated_at":"2026-06-01 12:47:46","following_work_content":"","project_status":null,"end_at":"2026-06-01 02:00:00","has_following_work":false,"location_id":null,"is_draft":false,"case_id":9260,"service_id":273,"location_in_id":null,"location_out_id":null,"ticket_no":"PS260601001001","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-01 12:47:46";s:9:"is_delete";N;}', '', 5064, '221.216.117.119')

12:47:46.9230.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=9260

12:47:46.9240.8 msUPDATEUPDATE "a57be577deb434"."tbl_cases" SET "updated_at"='now()' WHERE "id"=9260

12:47:46.9240.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Cases', 9260, 'a:1:{s:8:"start_at";s:19:"2026-06-01 00:00:00";}', '', 5064, '221.216.117.119')

12:47:46.9250.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

12:47:46.9260.8 msINSERTINSERT 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', 9260, 18, 1945, 4, 5064, '[1945]', '[1945]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260601001001"]}') RETURNING "id"

12:47:46.9270.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 640843, 'a:13:{s:2:"id";i:640843;s:9:"object_id";i:9260;s:11:"object_type";i:18;s:9:"target_id";i:1945;s:18:"target_object_type";i:4;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[1945]";s:9:"new_value";s:6:"[1945]";s:11:"description";s:134:"{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260601001001"]}";s:10:"created_by";i:5064;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5064, '221.216.117.119')

12:47:46.9280.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=9260

12:47:46.9280.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3311

12:47:46.9290.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

12:47:46.9291.0 msINSERTINSERT 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', 9260, 18, 1945, 4, 5064, '1945', '1945', array[1001,5064], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u552e\u524d\u5de5\u5355","d4":["\u5de5\u5355\u7f16\u53f7:PS260601001001"]}') RETURNING "id"

12:47:46.9300.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 171846, 'a:15:{s:2:"id";i:171846;s:9:"object_id";i:9260;s:11:"object_type";i:18;s:9:"target_id";i:1945;s:18:"target_object_type";i:4;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"1945";s:9:"new_value";s:4:"1945";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[1001,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:PS260601001001"]}";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')

12:47:46.9320.8 msINSERTINSERT 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":"9260","client_id":"3311","client_name":"\u5317\u4eac\u534e\u8fb0\u60a6\u79d1\u6280\u6709\u9650\u516c\u53f8","attendedContacts":["5903"],"service_id":"273","start_at":"2026\/06\/01 00:00","end_at":"2026\/06\/01 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":1945},"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-01 12:47:46', 59389184) RETURNING "id"