10:18:58.338 | 2.7 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='qLUfmF7prXLXaLejyBy9ATRtm1ACl6bA' |
10:18:58.341 | 1.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5295 |
10:18:58.345 | 1.6 ms | SELECT | SELECT "c".* FROM "a57be577deb434"."tbl_contacts" "c" LEFT JOIN "a57be577deb434"."tbl_contact_mobiles" "cm" ON c.id = cm.contact_id WHERE ("client_id"='90') AND (client_id is not null) AND ("cm"."mobile"='13300000000') AND ("c"."user_status" != 1) GROUP BY "c"."id" |
10:18:58.347 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"='2') |
10:18:58.348 | 0.5 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='90') |
10:18:58.349 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5295) |
10:18:58.349 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"='2') |
10:18:58.349 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='90') |
10:18:58.350 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5295) |
10:18:58.352 | 3.4 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_contacts" ("contact_type", "user_status", "birth_date", "client_id", "department", "description", "email", "job_position", "name", "sex", "telephone", "telephone_area_code", "telephone_extension_number", "created_by", "mobile", "pinyin_shortcut", "pinyin1", "pinyin2", "pinyin3", "namecut1", "namecut2", "namecut3") VALUES ('1', 2, NULL, 90, '', '', '', '', '卡赫风', 'M', '', '', '', 5295, '', 'khf', 'ka', 'he', 'feng', '卡', '赫', '风') RETURNING "id" |
10:18:58.355 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Contacts', 6119, 'a:31:{s:2:"id";i:6119;s:4:"name";s:9:"卡赫风";s:5:"email";s:0:"";s:15:"pinyin_shortcut";s:3:"khf";s:3:"sex";s:1:"M";s:10:"birth_date";s:0:"";s:10:"department";s:0:"";s:12:"job_position";s:0:"";s:6:"mobile";s:0:"";s:9:"telephone";s:0:"";s:9:"client_id";s:2:"90";s:11:"supplier_id";N;s:10:"created_by";i:5295;s:10:"created_at";N;s:10:"updated_at";N;s:11:"user_status";s:1:"2";s:11:"description";s:0:"";s:12:"contact_type";s:1:"1";s:16:"contact_attitude";N;s:19:"telephone_area_code";s:0:"";s:26:"telephone_extension_number";s:0:"";s:10:"mp_open_id";N;s:7:"pinyin1";s:2:"ka";s:7:"pinyin2";s:2:"he";s:7:"pinyin3";s:4:"feng";s:7:"pinyin4";N;s:8:"namecut1";s:3:"卡";s:8:"namecut2";s:3:"赫";s:8:"namecut3";s:3:"风";s:8:"namecut4";N;s:10:"is_mp_bind";N;}', '', 5295, '223.104.39.199') |
10:18:58.357 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='90' |
10:18:58.358 | 4.1 ms | SELECT | SELECT
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_mobiles'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
10:18:58.362 | 7.9 ms | SELECT | select
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_mobiles'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
10:18:58.370 | 3.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_contact_mobiles" ("mobile", "contact_id") VALUES ('13300000000', 6119) |
10:18:58.374 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=6119) AND ("term_id"=11) |
10:18:58.374 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=6119) AND ("term_id"=12) |
10:18:58.374 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"=6119 |
10:18:58.375 | 1.1 ms | INSERT | 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', 6119, 14, 5295, '2025-08-08 10:18:58', '{"mobiles":null,"operation_status":null,"keyword":"","from":"","to":"","period":"","unread":0}', '{"mobiles":null,"operation_status":null,"keyword":"","from":"","to":"","period":"","unread":0}', '{"d1":"\u9b4f\u6cfd\u6587","d2":"\u521b\u5efa\u4e86","d3":"\u8054\u7cfb\u4eba","d4":[]}') RETURNING "id" |
10:18:58.376 | 0.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 551844, 'a:13:{s:2:"id";i:551844;s:9:"object_id";i:6119;s:11:"object_type";i:14;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:94:"{"mobiles":null,"operation_status":null,"keyword":"","from":"","to":"","period":"","unread":0}";s:9:"new_value";s:94:"{"mobiles":null,"operation_status":null,"keyword":"","from":"","to":"","period":"","unread":0}";s:11:"description";s:87:"{"d1":"\u9b4f\u6cfd\u6587","d2":"\u521b\u5efa\u4e86","d3":"\u8054\u7cfb\u4eba","d4":[]}";s:10:"created_by";i:5295;s:10:"created_at";s:19:"2025-08-08 10:18:58";s:9:"is_delete";N;}', '', 5295, '223.104.39.199') |
10:18:58.377 | 0.8 ms | INSERT | INSERT 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', 90, 10, 6119, 14, 5295, '6119', '6119', '{"d1":"\u9b4f\u6cfd\u6587","d2":"\u521b\u5efa\u4e86","d3":"\u8054\u7cfb\u4eba","d4":["\u5361\u8d6b\u98ce"]}') RETURNING "id" |
10:18:58.378 | 0.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 551845, 'a:13:{s:2:"id";i:551845;s:9:"object_id";i:90;s:11:"object_type";i:10;s:9:"target_id";i:6119;s:18:"target_object_type";i:14;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"6119";s:9:"new_value";s:4:"6119";s:11:"description";s:107:"{"d1":"\u9b4f\u6cfd\u6587","d2":"\u521b\u5efa\u4e86","d3":"\u8054\u7cfb\u4eba","d4":["\u5361\u8d6b\u98ce"]}";s:10:"created_by";i:5295;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5295, '223.104.39.199') |
10:18:58.379 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='90' |
10:18:58.380 | 0.9 ms | SELECT | SELECT COUNT(*) FROM "a57be577deb434"."tbl_contacts" WHERE ("user_status"=2) AND ("client_id"=90) |
10:18:58.381 | 1.2 ms | UPDATE | UPDATE "a57be577deb434"."tbl_clients" SET "contact_count"=7 WHERE "id"=90 |
10:18:58.383 | 16.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=90) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
10:18:58.399 | 2.4 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (90, 5295, 'now()', NULL) RETURNING "id" |
10:18:58.402 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 177400, 'a:5:{s:2:"id";i:177400;s:9:"client_id";i:90;s:9:"sales_rep";i:5295;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5295, '223.104.39.199') |
10:18:58.403 | 0.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 90, 'a:1:{s:13:"contact_count";i:7;}', '', 5295, '223.104.39.199') |
10:18:58.404 | 1.0 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5295, 2, 1146, 'v2/contact/save-new-for-client', '{"Contacts":{"birth_date":"","client_id":"90","contactAttitude":"","department":"","description":"","email":"","job_position":"","mobiles":["13300000000"],"name":"\u5361\u8d6b\u98ce","sex":"M","telephone":"","telephone_area_code":"","telephone_extension_number":"","user_status":"2"},"access_token":"qLUfmF7prXLXaLejyBy9ATRtm1ACl6bA","device_type":"2","posttime":"1754619520","token":"e1957a6056fd7504a068666565b790b1","version_code":"1146"}', '{"code":200,"data":{"id":6119},"status":1,"msg":[{"name":"success","success":"\u65b0\u8054\u7cfb\u4eba\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-08-08 10:18:58') RETURNING "id" |