| 15:25:18.955 | 0.9 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 15:25:18.957 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:25:18.971 | 1.7 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "name"='23') |
| 15:25:18.974 | 1.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_client_classes" WHERE "id"='1') |
| 15:25:18.975 | 0.9 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_client_industries" WHERE "id"='57') |
| 15:25:18.976 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_client_types" WHERE "id"='1') |
| 15:25:18.977 | 1.1 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_company_natures" WHERE "id"='1') |
| 15:25:18.978 | 1.5 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1005') |
| 15:25:18.980 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 15:25:18.981 | 6.9 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_clients" ("name", "en_name", "description", "corp_rep", "website", "capital", "established_at", "tax_no", "telephone", "fax", "branch", "company_nature", "client_class", "client_industry", "client_type", "from_contact", "capital_currency", "invoice_info", "sales_rep", "created_by", "pick_at", "purchase_freq", "pinyin_shortcut") VALUES ('23', '', '', '', '', NULL, NULL, '', '', '', '', 1, 1, 57, 1, NULL, 'rmb', '', 1005, 1001, 'now()', '', '23') RETURNING "id" |
| 15:25:18.989 | 5.5 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3460, 1005, 'now()', NULL) RETURNING "id" |
| 15:25:18.996 | 4.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\ClientAmChangeLogs', 199802, 'a:5:{s:2:"id";i:199802;s:9:"client_id";i:3460;s:9:"sales_rep";s:4:"1005";s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 15:25:19.001 | 0.9 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\Clients', 3460, 'a:55:{s:2:"id";i:3460;s:4:"name";s:2:"23";s:4:"abbr";N;s:15:"pinyin_shortcut";s:2:"23";s:11:"description";s:0:"";s:8:"corp_rep";s:0:"";s:7:"website";s:0:"";s:7:"capital";s:0:"";s:14:"established_at";s:0:"";s:9:"headcount";N;s:11:"reg_address";N;s:15:"working_address";N;s:9:"telephone";s:0:"";s:3:"fax";s:0:"";s:5:"scale";N;s:6:"branch";s:0:"";s:21:"purchase_scale_per_yr";N;s:13:"purchase_freq";s:0:"";s:14:"company_nature";s:1:"1";s:12:"client_class";s:1:"1";s:15:"client_industry";s:2:"57";s:11:"client_type";s:1:"1";s:9:"sales_rep";s:4:"1005";s:12:"main_contact";N;s:10:"created_by";i:1001;s:10:"created_at";N;s:10:"updated_at";N;s:13:"main_business";N;s:7:"deleted";N;s:16:"capital_currency";s:3:"rmb";s:12:"invoice_info";s:0:"";s:4:"logo";N;s:7:"en_name";s:0:"";s:7:"pick_at";s:5:"now()";s:9:"it_budget";N;s:15:"deployment_mode";N;s:10:"it_per_num";N;s:27:"public_relations_difficulty";N;s:9:"it_status";N;s:16:"decision_process";N;s:5:"coach";N;s:10:"competitor";N;s:5:"peers";N;s:8:"supplier";N;s:12:"main_product";N;s:22:"client_base_info_count";N;s:21:"client_key_info_count";N;s:13:"contact_count";N;s:11:"visit_count";N;s:15:"cooperate_count";N;s:20:"case_pre_sales_count";N;s:20:"case_implement_count";N;s:17:"is_overdue_remind";N;s:12:"from_contact";s:0:"";s:6:"tax_no";s:0:"";}', '', 1001, '221.216.117.119') |
| 15:25:19.002 | 28.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_client_sales_rep_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 15:25:19.031 | 25.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_client_sales_rep_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 15:25:19.058 | 6.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_sales_rep_rels" ("sales_rep", "client_id") VALUES (1005, 3460) RETURNING "id" |
| 15:25:19.065 | 0.9 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\ClientSalesRepRels', 2969, 'a:5:{s:2:"id";i:2969;s:9:"client_id";i:3460;s:9:"sales_rep";s:4:"1005";s:8:"start_at";N;s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 15:25:19.066 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3460) AND ("term_id"=14) |
| 15:25:19.066 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3460 |
| 15:25:19.067 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:25:19.069 | 6.5 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', 3460, 10, 1001, '2026-06-02 15:25:18', '{"id":3460,"name":"23","abbr":null,"pinyin_shortcut":"23","description":"","corp_rep":"","website":"","capital":null,"established_at":null,"headcount":null,"reg_address":null,"working_address":null,"telephone":"","fax":"","scale":null,"branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":1,"client_class":1,"client_industry":57,"client_type":1,"sales_rep":1005,"main_contact":null,"created_by":1001,"created_at":"2026-06-02 15:25:18","updated_at":"2026-06-02 15:25:18","main_business":null,"deleted":false,"capital_currency":"rmb","invoice_info":"","logo":null,"en_name":"","pick_at":"2026-06-02 15:25:18.982187+08","it_budget":null,"deployment_mode":null,"it_per_num":null,"public_relations_difficulty":null,"it_status":null,"decision_process":null,"coach":null,"competitor":null,"peers":null,"supplier":null,"main_product":null,"client_base_info_count":0,"client_key_info_count":0,"contact_count":0,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":null,"tax_no":""}', '{"id":3460,"name":"23","abbr":null,"pinyin_shortcut":"23","description":"","corp_rep":"","website":"","capital":null,"established_at":null,"headcount":null,"reg_address":null,"working_address":null,"telephone":"","fax":"","scale":null,"branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":1,"client_class":1,"client_industry":57,"client_type":1,"sales_rep":1005,"main_contact":null,"created_by":1001,"created_at":"2026-06-02 15:25:18","updated_at":"2026-06-02 15:25:18","main_business":null,"deleted":false,"capital_currency":"rmb","invoice_info":"","logo":null,"en_name":"","pick_at":"2026-06-02 15:25:18.982187+08","it_budget":null,"deployment_mode":null,"it_per_num":null,"public_relations_difficulty":null,"it_status":null,"decision_process":null,"coach":null,"competitor":null,"peers":null,"supplier":null,"main_product":null,"client_base_info_count":0,"client_key_info_count":0,"contact_count":0,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":null,"tax_no":""}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u5ba2\u6237","d4":[]}') RETURNING "id" |
| 15:25:19.075 | 1.6 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', 640900, 'a:13:{s:2:"id";i:640900;s:9:"object_id";i:3460;s:11:"object_type";i:10;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:1070:"{"id":3460,"name":"23","abbr":null,"pinyin_shortcut":"23","description":"","corp_rep":"","website":"","capital":null,"established_at":null,"headcount":null,"reg_address":null,"working_address":null,"telephone":"","fax":"","scale":null,"branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":1,"client_class":1,"client_industry":57,"client_type":1,"sales_rep":1005,"main_contact":null,"created_by":1001,"created_at":"2026-06-02 15:25:18","updated_at":"2026-06-02 15:25:18","main_business":null,"deleted":false,"capital_currency":"rmb","invoice_info":"","logo":null,"en_name":"","pick_at":"2026-06-02 15:25:18.982187+08","it_budget":null,"deployment_mode":null,"it_per_num":null,"public_relations_difficulty":null,"it_status":null,"decision_process":null,"coach":null,"competitor":null,"peers":null,"supplier":null,"main_product":null,"client_base_info_count":0,"client_key_info_count":0,"contact_count":0,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":null,"tax_no":""}";s:9:"new_value";s:1070:"{"id":3460,"name":"23","abbr":null,"pinyin_shortcut":"23","description":"","corp_rep":"","website":"","capital":null,"established_at":null,"headcount":null,"reg_address":null,"working_address":null,"telephone":"","fax":"","scale":null,"branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":1,"client_class":1,"client_industry":57,"client_type":1,"sales_rep":1005,"main_contact":null,"created_by":1001,"created_at":"2026-06-02 15:25:18","updated_at":"2026-06-02 15:25:18","main_business":null,"deleted":false,"capital_currency":"rmb","invoice_info":"","logo":null,"en_name":"","pick_at":"2026-06-02 15:25:18.982187+08","it_budget":null,"deployment_mode":null,"it_per_num":null,"public_relations_difficulty":null,"it_status":null,"decision_process":null,"coach":null,"competitor":null,"peers":null,"supplier":null,"main_product":null,"client_base_info_count":0,"client_key_info_count":0,"contact_count":0,"visit_count":0,"cooperate_count":0,"case_pre_sales_count":0,"case_implement_count":0,"is_overdue_remind":false,"from_contact":null,"tax_no":""}";s:11:"description";s:81:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u5ba2\u6237","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-02 15:25:18";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 15:25:19.078 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 15:25:19.078 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1005 |
| 15:25:19.079 | 7.9 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (1, 'create', 3460, 10, 1001, '2026-06-02 15:25:18', '{"cooperated":null,"last_contact":null,"lost_contact_days":null,"keyword":"","from":"","to":"","period":"","unread":0}', '{"cooperated":null,"last_contact":null,"lost_contact_days":null,"keyword":"","from":"","to":"","period":"","unread":0}', array[1005,1001], '{"d1":"\u5218\u4eba\u8bda","d2":"\u7ed9\u8d75\u660e\uff08\u9500\u552e\u4eba\u5458\uff09\u521b\u5efa\u4e86","d3":"\u5ba2\u6237","d4":[]}') RETURNING "id" |
| 15:25:19.087 | 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\UserActionLogs', 171854, 'a:15:{s:2:"id";i:171854;s:9:"object_id";i:3460;s:11:"object_type";i:10;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:118:"{"cooperated":null,"last_contact":null,"lost_contact_days":null,"keyword":"","from":"","to":"","period":"","unread":0}";s:9:"new_value";s:118:"{"cooperated":null,"last_contact":null,"lost_contact_days":null,"keyword":"","from":"","to":"","period":"","unread":0}";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[1005,1001]";s:6:"params";a:0:{}}s:11:"description";s:135:"{"d1":"\u5218\u4eba\u8bda","d2":"\u7ed9\u8d75\u660e\uff08\u9500\u552e\u4eba\u5458\uff09\u521b\u5efa\u4e86","d3":"\u5ba2\u6237","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-02 15:25:18";s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1001, '221.216.117.119') |
| 15:25:19.088 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3460 |
| 15:25:19.089 | 0.9 ms | SELECT | SELECT COUNT(*) FROM "a57be577deb434"."tbl_contacts" WHERE ("user_status"=2) AND ("client_id"=3460) |
| 15:25:19.090 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_addresses" WHERE "client_id"=3460 |
| 15:25:19.090 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3460 |
| 15:25:19.091 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_addresses" WHERE ("address2" != '') AND ("address2" IS NOT NULL) AND (0=1) |
| 15:25:19.091 | 976.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3460) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:25:20.068 | 1.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3460, 1005, 'now()', NULL) RETURNING "id" |
| 15:25:20.070 | 0.9 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', 199803, 'a:5:{s:2:"id";i:199803;s:9:"client_id";i:3460;s:9:"sales_rep";i:1005;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 15:25:20.071 | 0.8 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', 3460, 'a:0:{}', '', 1001, '221.216.117.119') |
| 15:25:20.072 | 0.9 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/client/save-new', '{"Clients":{"id":"","name":"23","en_name":"","description":"","corp_rep":"","website":"","capital":"","established_at":"","tax_no":"","telephone":"","fax":"","branch":"","company_nature":"1","client_class":"1","client_industry":"57","client_type":"1","clientFrom":"","from_contact_name":"","from_contact":"","capital_currency":"rmb","invoice_info":"","sales_rep":"1005","workingAddresses":""},"web_access_token":"eLSqRe8hqEgPBX_zWO9QINJWKjv2Vvg4"}', '{"code":2000,"result":{"id":3460},"status":1,"msg":[{"name":"success","success":"\u65b0\u5ba2\u6237\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-02 15:25:20', 1118901760) RETURNING "id" |