10:21:57.168 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
10:21:57.168 | trace | yii\base\Module::getModule | Loading module: debug |
10:21:57.169 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
10:21:57.169 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
10:21:57.169 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
10:21:57.169 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.169 | trace | yii\base\Module::getModule | Loading module: gii |
10:21:57.169 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
10:21:57.169 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
10:21:57.169 | trace | yii\web\Application::handleRequest | Route requested: 'v2/case/delete' |
10:21:57.169 | trace | yii\base\Module::getModule | Loading module: v2 |
10:21:57.170 | info | yii\web\Session::open | Session started |
10:21:57.170 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
10:21:57.173 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH' |
10:21:57.176 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.177 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.177 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.177 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.177 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:21:57.178 | trace | yii\base\Controller::runAction | Route to run: v2/case/delete |
10:21:57.179 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.179 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:21:57.179 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\CaseController::actionDelete() |
10:21:57.180 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8260' |
10:21:57.180 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.180 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.180 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: deleteCase |
10:21:57.180 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
10:21:57.180 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
10:21:57.180 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: 电话销售 |
10:21:57.180 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
10:21:57.180 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
10:21:57.180 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:21:57.181 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_calendars" WHERE "case_id"=8260 |
10:21:57.186 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_comments" WHERE ("object_id"=8260) AND ("object_type"=18) |
10:21:57.264 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_id"=8260) AND ("object_type"=18) |
10:21:57.275 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_visit_object_histories" WHERE ("object_id"=8260) AND ("object_type"=18) |
10:21:57.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.275 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
10:21:57.285 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3334 |
10:21:57.288 | 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 |
10:21:57.306 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.306 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.306 | 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" |
10:21:57.312 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.312 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.312 | 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', 165242, 'a:5:{s:2:"id";i:165242;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, '223.104.40.121') |
10:21:57.313 | 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, '223.104.40.121') |
10:21:57.314 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:21:57.314 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.314 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.314 | 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 (3, 'delete', 3334, 10, 8260, 18, 1000, '[8260]', '[8260]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:IM250423001"]}') RETURNING "id" |
10:21:57.319 | 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', 510499, 'a:13:{s:2:"id";i:510499;s:9:"object_id";i:3334;s:11:"object_type";i:10;s:9:"target_id";i:8260;s:18:"target_object_type";i:18;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:6:"[8260]";s:9:"new_value";s:6:"[8260]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:IM250423001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
10:21:57.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.320 | 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_projects'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
10:21:57.325 | 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_projects'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
10:21:57.338 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.338 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
10:21:57.338 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3786 |
10:21:57.339 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3786 |
10:21:57.341 | 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 |
10:21:57.347 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.347 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.347 | 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, '223.104.40.121') |
10:21:57.348 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
10:21:57.348 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:21:57.349 | 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 (3, 'delete', 3786, 1, 8260, 18, 1000, '[8260]', '[8260]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:IM250423001"]}') RETURNING "id" |
10:21:57.350 | 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', 510500, 'a:13:{s:2:"id";i:510500;s:9:"object_id";i:3786;s:11:"object_type";i:1;s:9:"target_id";i:8260;s:18:"target_object_type";i:18;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:6:"[8260]";s:9:"new_value";s:6:"[8260]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:IM250423001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
10:21:57.350 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3786 |
10:21:57.351 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
10:21:57.351 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
10:21:57.352 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.352 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.353 | 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 (3, 'delete', 3786, 1, 8260, 18, 1000, '8260', '8260', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:IM250423001"]}') RETURNING "id" |
10:21:57.361 | 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', 137118, 'a:15:{s:2:"id";i:137118;s:9:"object_id";i:3786;s:11:"object_type";i:1;s:9:"target_id";i:8260;s:18:"target_object_type";i:18;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:4:"8260";s:9:"new_value";s:4:"8260";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":"\u5220\u9664\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:IM250423001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '223.104.40.121') |
10:21:57.362 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
10:21:57.363 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_user_action_logs" WHERE (("object_id"=8260) AND ("object_type"=18)) OR (("target_id"=8260) AND ("target_object_type"=18)) |
10:21:57.408 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "new_value", "old_value", "users", "parent_id", "is_delete", "description") VALUES (3, 'delete', 8260, 18, 1000, '[""]', '[""]', array[1001], 3334, TRUE, '{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":"Case\u7f16\u53f7:IM250423001"}') RETURNING "id" |
10:21:57.409 | 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', 137119, 'a:15:{s:2:"id";i:137119;s:9:"object_id";i:8260;s:11:"object_type";i:18;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:3;s:9:"attribute";s:6:"delete";s:9:"old_value";s:4:"[""]";s:9:"new_value";s:4:"[""]";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:101:"{"d1":"\u66f9\u6c38\u751f","d2":"\u5220\u9664\u4e86","d3":"Case","d4":"Case\u7f16\u53f7:IM250423001"}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";b:1;s:9:"parent_id";i:3334;}', '', 1000, '223.104.40.121') |
10:21:57.409 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_object_change_logs" SET "is_delete"=TRUE WHERE (("object_id"=8260) AND ("object_type"=18)) OR (("target_id"=8260) AND ("target_object_type"=18)) |
10:21:57.499 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_user_action_logs" SET "is_delete"=TRUE WHERE (("object_id"=8260) AND ("object_type"=18)) OR (("target_id"=8260) AND ("target_object_type"=18)) |
10:21:57.519 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_comments" WHERE ("object_id"=8260) AND ("object_type"=18) |
10:21:57.530 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_id"=8260) AND ("object_type"=18) |
10:21:57.541 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_implement_records" WHERE "case_id"=8260 |
10:21:57.542 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_pre_sales" WHERE "case_id"=8260 |
10:21:57.543 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_cases" WHERE "id"=8260 |
10:21:57.551 | 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 ('DELETE', 'app\models\Cases', 8260, '', '', 1000, '223.104.40.121') |
10:21:57.552 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
10:21:57.552 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.553 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.554 | 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) |
10:21:57.555 | 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) |
10:21:57.557 | 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 |
10:21:57.568 | 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" |
10:21:57.569 | 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', 165243, 'a:5:{s:2:"id";i:165243;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, '223.104.40.121') |
10:21:57.570 | 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, '223.104.40.121') |
10:21:57.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
10:21:57.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
10:21:57.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
10:21:57.577 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
10:21:57.578 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
10:21:57.578 | 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, 2, 1141, 'v2/case/delete', '{"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","id":"8260","posttime":"1752200576","token":"62e9ced09394103652a53d712862521b","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"Case\u5df2\u88ab\u6210\u529f\u5220\u9664","error":""}]}', FALSE, '2025-07-11 10:21:57') RETURNING "id" |