14:19:12.554 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
14:19:12.554 | trace | yii\base\Module::getModule | Loading module: debug |
14:19:12.555 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
14:19:12.555 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
14:19:12.555 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
14:19:12.555 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.555 | trace | yii\base\Module::getModule | Loading module: gii |
14:19:12.555 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
14:19:12.556 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
14:19:12.556 | trace | yii\web\Application::handleRequest | Route requested: 'v2/case/save-edit' |
14:19:12.556 | trace | yii\base\Module::getModule | Loading module: v2 |
14:19:12.556 | info | yii\web\Session::open | Session started |
14:19:12.557 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
14:19:12.559 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd' |
14:19:12.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.562 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.562 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.562 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.562 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.563 | trace | yii\base\Controller::runAction | Route to run: v2/case/save-edit |
14:19:12.564 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.564 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:19:12.564 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\CaseController::actionSaveEdit() |
14:19:12.565 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8267' |
14:19:12.565 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.565 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.565 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.566 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.567 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Cases'. |
14:19:12.567 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'caseServices' in 'app\models\Cases'. |
14:19:12.567 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3334') |
14:19:12.568 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='6002') |
14:19:12.569 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3786') |
14:19:12.569 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064) |
14:19:12.569 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017') |
14:19:12.570 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.570 | info | yii\db\Command::execute | |
14:19:12.570 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.571 | info | yii\db\Command::execute | |
14:19:12.572 | info | yii\db\Command::query | SELECT * FROM "global"."tbl_enterprises" WHERE "id"=2 |
14:19:12.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.572 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.573 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:19:12.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:19:12.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:19:12.574 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3334' |
14:19:12.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.575 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.575 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_cases" SET "client_id"=3334, "contact_id"=6002, "project_id"=3786, "last_engineer"=1017, "case_type"=1, "start_at"='2025-05-26 17:17', "updated_at"='now()', "task_group_id"=NULL WHERE "id"=8267 |
14:19:12.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.576 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Cases', 8267, 'a:2:{s:8:"start_at";s:19:"2025-05-26 17:17:00";s:13:"last_engineer";s:4:"1017";}', '', 1000, '114.254.1.137') |
14:19:12.577 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=25) AND ("object_id"=8267) |
14:19:12.579 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=25) AND ("object_id"=8267) |
14:19:12.580 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id"=8267 |
14:19:12.581 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id"=8267 |
14:19:12.581 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.581 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.581 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_implement_records" SET "client_id"=3334 WHERE "case_id"=8267 |
14:19:12.583 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.583 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.583 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_pre_sales" SET "client_id"=3334 WHERE "case_id"=8267 |
14:19:12.584 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id"=8267 |
14:19:12.584 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.585 | info | yii\db\Command::query | 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_case_services'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:19:12.590 | info | yii\db\Command::query | 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_case_services'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:19:12.599 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.599 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:19:12.599 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_case_services" WHERE "case_id"=8267 |
14:19:12.601 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8267) |
14:19:12.601 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=275) |
14:19:12.601 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_case_services" ("case_id", "service_id", "quantity") VALUES (8267, 275, 1) RETURNING "id" |
14:19:12.602 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\CaseServices', 13439, 'a:4:{s:2:"id";i:13439;s:7:"case_id";i:8267;s:10:"service_id";i:275;s:8:"quantity";s:1:"1";}', '', 1000, '114.254.1.137') |
14:19:12.603 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.603 | info | yii\db\Command::query | 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_case_assignments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:19:12.606 | info | yii\db\Command::query | 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_case_assignments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:19:12.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:19:12.616 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017' |
14:19:12.616 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.617 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.617 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.617 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'engineer_id', 8267, 18, 1000, 'now()', '["\u8f66\u660e\u98de"]', '[""]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5de5\u7a0b\u5e08","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u8f66\u660e\u98de"]}') |
14:19:12.618 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.619 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.619 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.619 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'engineer_id', 8267, 18, 1000, 'now()', '["\u8f66\u660e\u98de"]', '[""]', array[1001,1017], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5de5\u7a0b\u5e08","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u8f66\u660e\u98de"]}') |
14:19:12.620 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_implement_records" WHERE ("case_id"=8267) AND ("is_draft"=TRUE) |
14:19:12.621 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_pre_sales" WHERE ("case_id"=8267) AND ("is_draft"=TRUE) |
14:19:12.622 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_assignments" WHERE "case_id"=8267 |
14:19:12.622 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_assignments" WHERE ("case_id"=8267) AND ("engineer_id"='1017') |
14:19:12.623 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8267) |
14:19:12.624 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017') |
14:19:12.624 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
14:19:12.624 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_case_assignments" ("case_id", "assignment_status", "points", "assigned_by", "engineer_id", "assigned_at") VALUES (8267, 1, 0, 1000, 1017, 'now()') RETURNING "id" |
14:19:12.625 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\CaseAssignments', 8313, 'a:9:{s:2:"id";i:8313;s:7:"case_id";i:8267;s:11:"engineer_id";s:4:"1017";s:17:"assignment_status";i:1;s:6:"points";i:0;s:11:"assigned_by";i:1000;s:11:"assigned_at";s:5:"now()";s:10:"updated_at";N;s:7:"percent";N;}', '', 1000, '114.254.1.137') |
14:19:12.626 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.627 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017' |
14:19:12.627 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8267 |
14:19:12.627 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id"=8267 |
14:19:12.628 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.628 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.628 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8267 |
14:19:12.628 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
14:19:12.629 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '18', 8267, '曹永生分配了一个Case给车明飞', TRUE, '') RETURNING "id" |
14:19:12.630 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 170266, 'a:11:{s:2:"id";i:170266;s:9:"object_id";i:8267;s:11:"object_type";s:2:"18";s:6:"parent";N;s:11:"description";s:40:"曹永生分配了一个Case给车明飞";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:0:"";}', '', 1000, '114.254.1.137') |
14:19:12.631 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.631 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.631 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (8267, '18', 170266, '1017'), (8267, '18', 170266, 1001) |
14:19:12.632 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id" IN ('1017', 1001)) AND ("id" != 1000) AND (channel_id IS NOT NULL) |
14:19:12.633 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8267 |
14:19:12.633 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
14:19:12.634 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:19:12.634 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:19:12.634 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:19:12.634 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3786' |
14:19:12.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:19:12.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:19:12.635 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:19:12.635 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id"=8267 |
14:19:12.636 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=275 |
14:19:12.636 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.636 | info | yii\db\Command::query | 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_services'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:19:12.639 | info | yii\db\Command::query | 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_services'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:19:12.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.648 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:19:12.648 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_cases" SET "case_status"=2 WHERE "id"=8267 |
14:19:12.649 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Cases', 8267, 'a:2:{s:8:"start_at";s:19:"2025-05-26 17:17:00";s:11:"case_status";i:2;}', '', 1000, '114.254.1.137') |
14:19:12.650 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_calendars" WHERE "case_id"=8267 |
14:19:12.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.653 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.653 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3334') |
14:19:12.653 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017') |
14:19:12.654 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8267) |
14:19:12.654 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_calendars" ("title", "end_at", "is_remind", "start_at", "is_public", "created_by", "client_id", "alarm_before", "case_id", "is_system", "is_sync") VALUES ('技术方案-二级文档:', '2025-05-26 18:17:00', TRUE, '2025-05-26 17:17:00', 1, 1017, 3334, NULL, 8267, FALSE, FALSE) RETURNING "id" |
14:19:12.656 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Calendars', 276906, 'a:17:{s:2:"id";i:276906;s:9:"client_id";s:4:"3334";s:5:"title";s:26:"技术方案-二级文档:";s:11:"description";N;s:8:"start_at";s:19:"2025-05-26 17:17:00";s:6:"end_at";s:19:"2025-05-26 18:17:00";s:9:"is_public";i:1;s:10:"created_by";s:4:"1017";s:10:"created_at";N;s:12:"alarm_before";N;s:9:"is_remind";b:1;s:18:"system_calendar_id";N;s:9:"is_system";b:0;s:7:"is_sync";b:0;s:7:"case_id";i:8267;s:11:"schedule_id";N;s:10:"project_id";N;}', '', 1000, '114.254.1.137') |
14:19:12.656 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3334' |
14:19:12.658 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3334 |
14:19:12.659 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3334) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:19:12.668 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.668 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.668 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3334, 1001, 'now()', NULL) RETURNING "id" |
14:19:12.669 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 165119, 'a:5:{s:2:"id";i:165119;s:9:"client_id";i:3334;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '114.254.1.137') |
14:19:12.670 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 3334, 'a:0:{}', '', 1000, '114.254.1.137') |
14:19:12.671 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.671 | info | yii\db\Command::query | 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 (2, 'update', 3334, 10, 8267, 18, 1000, '[8267]', '[8267]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250526003"]}') RETURNING "id" |
14:19:12.672 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510091, 'a:13:{s:2:"id";i:510091;s:9:"object_id";s:4:"3334";s:11:"object_type";i:10;s:9:"target_id";i:8267;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[8267]";s:9:"new_value";s:6:"[8267]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250526003"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '114.254.1.137') |
14:19:12.673 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3786' |
14:19:12.674 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3786 |
14:19:12.675 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3786) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:19:12.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.677 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3786, 'a:0:{}', '', 1000, '114.254.1.137') |
14:19:12.678 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
14:19:12.678 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.679 | info | yii\db\Command::query | 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 (2, 'update', 3786, 1, 8267, 18, 1000, '[8267]', '[8267]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250526003"]}') RETURNING "id" |
14:19:12.680 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 510092, 'a:13:{s:2:"id";i:510092;s:9:"object_id";s:4:"3786";s:11:"object_type";i:1;s:9:"target_id";i:8267;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[8267]";s:9:"new_value";s:6:"[8267]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250526003"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '114.254.1.137') |
14:19:12.681 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
14:19:12.681 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:19:12.681 | info | yii\db\Command::query | INSERT 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 (2, 'update', 3786, 1, 8267, 18, 1000, '8267', '8267', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250526003"]}') RETURNING "id" |
14:19:12.682 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 136977, 'a:15:{s:2:"id";i:136977;s:9:"object_id";s:4:"3786";s:11:"object_type";i:1;s:9:"target_id";i:8267;s:18:"target_object_type";i:18;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:4:"8267";s:9:"new_value";s:4:"8267";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250526003"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '114.254.1.137') |
14:19:12.683 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3334' |
14:19:12.684 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_cases" WHERE ("case_type"=1) AND ("case_status"=5) AND ("created_at" >= '2025-01-01 00:00:00') AND ("created_at" <= '2025-12-31 23:59:59') AND ("client_id"=3334) |
14:19:12.685 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_cases" WHERE ("case_type"=2) AND ("case_status"=5) AND ("created_at" >= '2025-01-01 00:00:00') AND ("created_at" <= '2025-12-31 23:59:59') AND ("client_id"=3334) |
14:19:12.687 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3334) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:19:12.695 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3334, 1001, 'now()', NULL) RETURNING "id" |
14:19:12.696 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 165120, 'a:5:{s:2:"id";i:165120;s:9:"client_id";i:3334;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '114.254.1.137') |
14:19:12.697 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 3334, 'a:0:{}', '', 1000, '114.254.1.137') |
14:19:12.698 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:19:12.699 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:19:12.699 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:19:12.699 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:19:12.699 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:19:12.699 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 0, 261, 'v2/case/save-edit', '{"access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","Cases":{"start_at":"2025-05-26 17:17","id":"8267","last_engineer":"1017","contact_id":"6002","client_id":"3334","description":"","case_type":"1","task_group_id":"","caseServices":{"275":"1"},"spent_time":"1 hour","project_id":"3786"},"device_type":"0","version_code":"261","token":"f86c17d3e2e5e422ceaadbb709099439","posttime":"1751609953"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"Case\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-07-04 14:19:12') RETURNING "id" |