Database Queries

总计92条数据
TimeDurationTypeQuery
  
21:08:11.4302.8 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH'

21:08:11.4341.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:08:11.4374.3 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_location' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

21:08:11.4418.8 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_location' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

21:08:11.4512.9 msINSERTINSERT INTO "a57be577deb434"."tbl_location" ("created_by", "address", "geolocation", "updated_at") VALUES (1000, '北京市石景山区八角北路靠近八角北路特钢小区', '(116.1949522569444,39.91726752387153)', '2025-07-16 21:07') RETURNING "id"

21:08:11.4541.0 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Location', 19250, 'a:6:{s:2:"id";i:19250;s:11:"geolocation";s:37:"(116.1949522569444,39.91726752387153)";s:10:"created_by";i:1000;s:7:"address";s:63:"北京市石景山区八角北路靠近八角北路特钢小区";s:10:"created_at";N;s:10:"updated_at";s:19:"2025-07-16 21:07:00";}', '', 1000, '120.244.156.210')

21:08:11.4550.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Location', 19250, 'a:0:{}', '', 1000, '120.244.156.210')

21:08:11.4560.8 msINSERTINSERT INTO "a57be577deb434"."tbl_location" ("created_by", "address", "geolocation", "updated_at") VALUES (1000, '北京市石景山区八角北路靠近八角北路特钢小区', '(116.1949522569444,39.91726752387153)', '2025-07-16 21:08') RETURNING "id"

21:08:11.4570.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Location', 19251, 'a:6:{s:2:"id";i:19251;s:11:"geolocation";s:37:"(116.1949522569444,39.91726752387153)";s:10:"created_by";i:1000;s:7:"address";s:63:"北京市石景山区八角北路靠近八角北路特钢小区";s:10:"created_at";N;s:10:"updated_at";s:19:"2025-07-16 21:08:00";}', '', 1000, '120.244.156.210')

21:08:11.4580.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Location', 19251, 'a:0:{}', '', 1000, '120.244.156.210')

21:08:11.4590.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815')

21:08:11.4600.4 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3822')

21:08:11.4600.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=19250)

21:08:11.4610.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=19251)

21:08:11.4610.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1000')

21:08:11.4610.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='66')

21:08:11.4620.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id"='1')

21:08:11.4623.4 msINSERTINSERT INTO "a57be577deb434"."tbl_work_logs" ("client_id", "created_by", "description", "end_at", "escort", "is_draft", "project_id", "scenario_id", "scenario_option_id", "start_at", "indistance", "outdistance", "status", "location_in_id", "location_out_id") VALUES (2815, 1000, '你想娜娜', '2025-07-16 21:08:00', '精彩集锦吃', FALSE, 3822, 1, 66, '2025-07-16 21:07:00', 9122.2306441871, 9122.2306441871, 0, 19250, 19251) RETURNING "id"

21:08:11.4660.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\WorkLogs', 37034, 'a:19:{s:2:"id";i:37034;s:9:"client_id";s:4:"2815";s:11:"scenario_id";s:1:"1";s:18:"scenario_option_id";s:2:"66";s:6:"end_at";s:19:"2025-07-16 21:08:00";s:10:"created_by";s:4:"1000";s:10:"created_at";N;s:10:"updated_at";N;s:8:"start_at";s:19:"2025-07-16 21:07:00";s:11:"description";s:12:"你想娜娜";s:6:"escort";s:15:"精彩集锦吃";s:8:"is_draft";s:1:"0";s:11:"location_id";N;s:10:"project_id";s:4:"3822";s:14:"location_in_id";i:19250;s:15:"location_out_id";i:19251;s:6:"status";i:0;s:10:"indistance";s:16:"9122.23064418708";s:11:"outdistance";s:16:"9122.23064418708";}', '', 1000, '120.244.156.210')

21:08:11.4670.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815'

21:08:11.4681.3 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id"=37034)

21:08:11.4693.1 msINSERTINSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (18, 37034, 24899)

21:08:11.4731.5 msSELECTSELECT "contact_id" FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id"=37034

21:08:11.4742.4 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_work_log_contacts' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

21:08:11.4778.8 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_work_log_contacts' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

21:08:11.4860.4 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='6014')

21:08:11.4870.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37034)

21:08:11.4873.3 msINSERTINSERT INTO "a57be577deb434"."tbl_work_log_contacts" ("contact_id", "work_log_id") VALUES (6014, 37034) RETURNING "id"

21:08:11.4900.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\WorkLogContacts', 29496, 'a:3:{s:2:"id";i:29496;s:11:"work_log_id";i:37034;s:10:"contact_id";s:4:"6014";}', '', 1000, '120.244.156.210')

21:08:11.4910.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='5245')

21:08:11.4920.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37034)

21:08:11.4920.8 msINSERTINSERT INTO "a57be577deb434"."tbl_work_log_contacts" ("contact_id", "work_log_id") VALUES (5245, 37034) RETURNING "id"

21:08:11.4930.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\WorkLogContacts', 29497, 'a:3:{s:2:"id";i:29497;s:11:"work_log_id";i:37034;s:10:"contact_id";s:4:"5245";}', '', 1000, '120.244.156.210')

21:08:11.4940.6 msDELETEDELETE FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37034

21:08:11.4942.4 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_work_log_verify_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

21:08:11.4978.5 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_work_log_verify_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

21:08:11.5063.3 msINSERTINSERT INTO "a57be577deb434"."tbl_work_log_verify_rels" ("work_log_id", "user_id", "status") VALUES (37034, 1000, 0)

21:08:11.5090.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37034

21:08:11.5100.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id"=37034

21:08:11.5120.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='66'

21:08:11.5130.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37034

21:08:11.5140.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000)

21:08:11.5142.7 msINSERTINSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '19', 37034, '曹永生新建了一条客情增进的工作日志', TRUE, '你想娜娜') RETURNING "id"

21:08:11.5170.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 170519, 'a:11:{s:2:"id";i:170519;s:9:"object_id";i:37034;s:11:"object_type";s:2:"19";s:6:"parent";N;s:11:"description";s:51:"曹永生新建了一条客情增进的工作日志";s:10:"created_by";i:1000;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:12:"你想娜娜";}', '', 1000, '120.244.156.210')

21:08:11.5180.2 msSELECTSELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1000) AND (channel_id IS NOT NULL)

21:08:11.5190.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37034 ORDER BY "id"

21:08:11.5200.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37034

21:08:11.5210.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:08:11.5211.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', 37034, 19, 1000, '2025-07-16 21:08:11', '{"id":37034,"client_id":2815,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-07-16 21:08:00","created_by":1000,"created_at":"2025-07-16 21:08:11","updated_at":"2025-07-16 21:08:11","start_at":"2025-07-16 21:07:00","description":"\u4f60\u60f3\u5a1c\u5a1c","escort":"\u7cbe\u5f69\u96c6\u9526\u5403","is_draft":false,"location_id":null,"project_id":3822,"location_in_id":19250,"location_out_id":19251,"status":0,"indistance":9122.2306441871,"outdistance":9122.2306441871}', '{"id":37034,"client_id":2815,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-07-16 21:08:00","created_by":1000,"created_at":"2025-07-16 21:08:11","updated_at":"2025-07-16 21:08:11","start_at":"2025-07-16 21:07:00","description":"\u4f60\u60f3\u5a1c\u5a1c","escort":"\u7cbe\u5f69\u96c6\u9526\u5403","is_draft":false,"location_id":null,"project_id":3822,"location_in_id":19250,"location_out_id":19251,"status":0,"indistance":9122.2306441871,"outdistance":9122.2306441871}', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":[]}') RETURNING "id"

21:08:11.5220.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510903, 'a:13:{s:2:"id";i:510903;s:9:"object_id";i:37034;s:11:"object_type";i:19;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:475:"{"id":37034,"client_id":2815,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-07-16 21:08:00","created_by":1000,"created_at":"2025-07-16 21:08:11","updated_at":"2025-07-16 21:08:11","start_at":"2025-07-16 21:07:00","description":"\u4f60\u60f3\u5a1c\u5a1c","escort":"\u7cbe\u5f69\u96c6\u9526\u5403","is_draft":false,"location_id":null,"project_id":3822,"location_in_id":19250,"location_out_id":19251,"status":0,"indistance":9122.2306441871,"outdistance":9122.2306441871}";s:9:"new_value";s:475:"{"id":37034,"client_id":2815,"scenario_id":1,"scenario_option_id":66,"end_at":"2025-07-16 21:08:00","created_by":1000,"created_at":"2025-07-16 21:08:11","updated_at":"2025-07-16 21:08:11","start_at":"2025-07-16 21:07:00","description":"\u4f60\u60f3\u5a1c\u5a1c","escort":"\u7cbe\u5f69\u96c6\u9526\u5403","is_draft":false,"location_id":null,"project_id":3822,"location_in_id":19250,"location_out_id":19251,"status":0,"indistance":9122.2306441871,"outdistance":9122.2306441871}";s:11:"description";s:93:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":[]}";s:10:"created_by";i:1000;s:10:"created_at";s:19:"2025-07-16 21:08:11";s:9:"is_delete";N;}', '', 1000, '120.244.156.210')

21:08:11.5230.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815'

21:08:11.5241.0 msUPDATEUPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2815

21:08:11.5268.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

21:08:11.5341.0 msINSERTINSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id"

21:08:11.5360.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 165382, 'a:5:{s:2:"id";i:165382;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '120.244.156.210')

21:08:11.5360.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 2815, 'a:0:{}', '', 1000, '120.244.156.210')

21:08:11.5370.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"=66

21:08:11.5370.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:08:11.5380.9 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', 2815, 10, 37034, 19, 1000, '[37034]', '[37034]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}') RETURNING "id"

21:08:11.5390.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510904, 'a:13:{s:2:"id";i:510904;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:37034;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[37034]";s:9:"new_value";s:7:"[37034]";s:11:"description";s:119:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '120.244.156.210')

21:08:11.5400.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815

21:08:11.5400.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:08:11.5411.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', 2815, 10, 37034, 19, 1000, '37034', '37034', array[1004,1000], '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}') RETURNING "id"

21:08:11.5420.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 137266, 'a:15:{s:2:"id";i:137266;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:37034;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"37034";s:9:"new_value";s:5:"37034";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[1004,1000]";s:6:"params";a:0:{}}s:11:"description";s:119:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '120.244.156.210')

21:08:11.5430.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3822

21:08:11.5440.9 msUPDATEUPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3822

21:08:11.5461.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3822) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

21:08:11.5470.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3822, 'a:0:{}', '', 1000, '120.244.156.210')

21:08:11.5480.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815

21:08:11.5490.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:08:11.5490.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', 3822, 1, 37034, 19, 1000, '[37034]', '[37034]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}') RETURNING "id"

21:08:11.5500.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510905, 'a:13:{s:2:"id";i:510905;s:9:"object_id";i:3822;s:11:"object_type";i:1;s:9:"target_id";i:37034;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[37034]";s:9:"new_value";s:7:"[37034]";s:11:"description";s:119:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '120.244.156.210')

21:08:11.5510.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3822

21:08:11.5510.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815

21:08:11.5520.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000

21:08:11.5520.7 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', 3822, 1, 37034, 19, 1000, '37034', '37034', array[1004], '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}') RETURNING "id"

21:08:11.5530.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', 137267, 'a:15:{s:2:"id";i:137267;s:9:"object_id";i:3822;s:11:"object_type";i:1;s:9:"target_id";i:37034;s:18:"target_object_type";i:19;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"37034";s:9:"new_value";s:5:"37034";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1004]";s:6:"params";a:0:{}}s:11:"description";s:119:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u5ba2\u60c5\u589e\u8fdb"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '120.244.156.210')

21:08:11.5540.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815'

21:08:11.5540.4 msSELECTSELECT COUNT(*) FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("scenario_id"=1) AND ("location_out_id" IS NOT NULL) AND ("location_in_id" IS NOT NULL) AND ("created_at" >= '2025-01-01 00:00:00') AND ("created_at" <= '2025-12-31 23:59:59') AND ("client_id"=2815)

21:08:11.5560.8 msUPDATEUPDATE "a57be577deb434"."tbl_clients" SET "visit_count"=6 WHERE "id"=2815

21:08:11.5567.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

21:08:11.5650.8 msINSERTINSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id"

21:08:11.5650.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 165383, 'a:5:{s:2:"id";i:165383;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '120.244.156.210')

21:08:11.5660.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 2815, 'a:1:{s:11:"visit_count";i:5;}', '', 1000, '120.244.156.210')

21:08:11.5670.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37034 ORDER BY "id"

21:08:11.56819.8 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id"=37034) AND ("created_by"=1000))

21:08:11.5881.1 msUPDATEUPDATE "a57be577deb434"."tbl_work_log_verify_rels" SET "status"=1 WHERE "id"=14325

21:08:11.5890.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\WorkLogVerifyRels', 14325, 'a:1:{s:6:"status";i:1;}', '', 1000, '120.244.156.210')

21:08:11.5900.9 msUPDATEUPDATE "a57be577deb434"."tbl_work_logs" SET "status"=1 WHERE "id"=37034

21:08:11.5910.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\WorkLogs', 37034, 'a:1:{s:11:"location_id";N;}', '', 1000, '120.244.156.210')

21:08:11.5920.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815'

21:08:11.5931.1 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 2, 1142, 'v2/work-log/save-new', '{"WorkLogs":{"attachmentFiles":["24899"],"client_id":"2815","created_by":"1000","description":"\u4f60\u60f3\u5a1c\u5a1c","end_at":"2025-07-16 21:08","escort":"\u7cbe\u5f69\u96c6\u9526\u5403","form_workLogCarbonCopyRels":"","form_workLogVerifyRels":["1000"],"is_draft":"0","location_in_address":"\u5317\u4eac\u5e02\u77f3\u666f\u5c71\u533a\u516b\u89d2\u5317\u8def\u9760\u8fd1\u516b\u89d2\u5317\u8def\u7279\u94a2\u5c0f\u533a","location_in_distance":"9122.23064418708","location_in_lat":"39.91726752387153","location_in_lng":"116.1949522569444","location_in_updated_at":"2025-07-16 21:07","location_out_address":"\u5317\u4eac\u5e02\u77f3\u666f\u5c71\u533a\u516b\u89d2\u5317\u8def\u9760\u8fd1\u516b\u89d2\u5317\u8def\u7279\u94a2\u5c0f\u533a","location_out_distance":"9122.23064418708","location_out_lat":"39.91726752387153","location_out_lng":"116.1949522569444","location_out_updated_at":"2025-07-16 21:08","project_id":"3822","scenario_id":"1","scenario_option_id":"66","start_at":"2025-07-16 21:07","workLogContacts":["6014","5245"]},"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","posttime":"1752671232","token":"bf544b1fb18d05aa63051757d56cbd26","version_code":"1142"}', '{"code":200,"data":{"id":37034},"status":1,"msg":[{"name":"success","success":"\u65b0\u5de5\u4f5c\u65e5\u5fd7\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-07-16 21:08:11') RETURNING "id"