14:03:29.298 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
14:03:29.298 | trace | yii\base\Module::getModule | Loading module: debug |
14:03:29.298 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
14:03:29.298 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
14:03:29.298 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
14:03:29.298 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.299 | trace | yii\base\Module::getModule | Loading module: gii |
14:03:29.299 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
14:03:29.299 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
14:03:29.299 | trace | yii\web\Application::handleRequest | Route requested: 'v2/work-log/save-edit' |
14:03:29.299 | trace | yii\base\Module::getModule | Loading module: v2 |
14:03:29.299 | info | yii\web\Session::open | Session started |
14:03:29.300 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
14:03:29.302 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH' |
14:03:29.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.305 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:03:29.306 | trace | yii\base\Controller::runAction | Route to run: v2/work-log/save-edit |
14:03:29.307 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.307 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
14:03:29.307 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\WorkLogController::actionSaveEdit() |
14:03:29.308 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"='37030' |
14:03:29.308 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.308 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.308 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.309 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.310 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id"=37030 |
14:03:29.312 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'form_workLogVerifyRels' in 'app\models\WorkLogs'. |
14:03:29.312 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\WorkLogs'. |
14:03:29.312 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'location_in_distance' in 'app\models\WorkLogs'. |
14:03:29.312 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'location_out_distance' in 'app\models\WorkLogs'. |
14:03:29.312 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'workLogContacts' in 'app\models\WorkLogs'. |
14:03:29.312 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.312 | 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_location'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:03:29.317 | 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_location'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:03:29.326 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.326 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:03:29.326 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19230' |
14:03:29.327 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.327 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.327 | 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\Location', 19230, 'a:0:{}', '', 1000, '223.104.40.121') |
14:03:29.328 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19231' |
14:03:29.328 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_location" SET "geolocation"='(116.2892336697049,39.9605287000868)', "updated_at"='2025-07-11 14:03' WHERE "id"=19231 |
14:03:29.329 | 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\Location', 19231, 'a:1:{s:11:"geolocation";s:36:"(116.2892336697049,39.9605287000868)";}', '', 1000, '223.104.40.121') |
14:03:29.330 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.330 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.330 | 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, 'location_out_id', 37030, 19, 1000, 'now()', '["(116.2892336697049,39.9605287000868)"]', '["(116.2892336697049,39.9605287000868)"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u7b7e\u9000\u5b9a\u4f4d","d4":[""]}') |
14:03:29.331 | 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\Location', 19231, 'a:0:{}', '', 1000, '223.104.40.121') |
14:03:29.332 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338') |
14:03:29.333 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19230') |
14:03:29.333 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=19231) |
14:03:29.334 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1000') |
14:03:29.334 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='71') |
14:03:29.334 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id"='1') |
14:03:29.335 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:03:29.335 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:03:29.336 | 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, 'end_at', 37030, 19, 1000, 'now()', '["2025-07-11 14:03:00"]', '["2025-07-10 16:33:00"]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u7ed3\u675f\u65f6\u95f4","d4":["2025-07-10 16:33:00 <b>\u53d8\u4e3a<\/b> 2025-07-11 14:03:00"]}'), (2, 'indistance', 37030, 19, 1000, 'now()', '["2890"]', '[2890.424364318]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u7b7e\u5230\u8ddd\u79bb","d4":["2890.424364318 <b>\u53d8\u4e3a<\/b> 2890"]}'), (2, 'outdistance', 37030, 19, 1000, 'now()', '["2870.11415455382"]', '[2890.4614004537]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u7b7e\u9000\u8ddd\u79bb","d4":["2890.4614004537 <b>\u53d8\u4e3a<\/b> 2870.11415455382"]}') |
14:03:29.337 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338') |
14:03:29.337 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"='19230') |
14:03:29.337 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_location" WHERE "id"=19231) |
14:03:29.338 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1000') |
14:03:29.338 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='71') |
14:03:29.338 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_log_scenarios" WHERE "id"='1') |
14:03:29.338 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_work_logs" SET "client_id"=3338, "scenario_id"=1, "scenario_option_id"=71, "end_at"='2025-07-11 14:03:00', "created_by"=1000, "updated_at"='now()', "start_at"='2025-07-10 16:33:00', "is_draft"=FALSE, "project_id"=NULL, "location_in_id"=19230, "indistance"=2890, "outdistance"=2870.1141545538 WHERE "id"=37030 |
14:03:29.339 | 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\WorkLogs', 37030, 'a:5:{s:6:"end_at";s:19:"2025-07-11 14:03:00";s:8:"start_at";s:19:"2025-07-10 16:33:00";s:10:"indistance";s:4:"2890";s:11:"outdistance";s:16:"2870.11415455382";s:8:"is_draft";s:1:"0";}', '', 1000, '223.104.40.121') |
14:03:29.340 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338' |
14:03:29.341 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.341 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.341 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id"=37030) |
14:03:29.343 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=18) AND ("object_id"=37030) |
14:03:29.344 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id"=37030 |
14:03:29.345 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE 0=1 |
14:03:29.346 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_work_log_contacts" WHERE "work_log_id"=37030 |
14:03:29.347 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id"=37030 |
14:03:29.348 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id"=37030 |
14:03:29.349 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37030 ORDER BY "id" |
14:03:29.350 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.350 | 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_work_log_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:03:29.352 | 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_work_log_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:03:29.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.362 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:03:29.362 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37030 |
14:03:29.363 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_work_log_verify_rels" ("work_log_id", "user_id", "status") VALUES (37030, 1000, 0) |
14:03:29.367 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_carbon_copy_rels" WHERE "work_log_id"=37030 |
14:03:29.367 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37030 ORDER BY "id" |
14:03:29.368 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_scenario_options" WHERE "id"='71' |
14:03:29.368 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.368 | 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_work_log_scenario_options'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:03:29.371 | 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_work_log_scenario_options'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:03:29.379 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.380 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:03:29.380 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.380 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.380 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"=37030 |
14:03:29.381 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
14:03:29.381 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '19', 37030, '曹永生更新了一条拜访客户的工作日志', TRUE, '好想好就行') RETURNING "id" |
14:03:29.385 | 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', 170409, 'a:11:{s:2:"id";i:170409;s:9:"object_id";i:37030;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:15:"好想好就行";}', '', 1000, '223.104.40.121') |
14:03:29.386 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1000) AND (channel_id IS NOT NULL) |
14:03:29.387 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338' |
14:03:29.388 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3338 |
14:03:29.390 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3338) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:03:29.398 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.398 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.399 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3338, 1004, 'now()', NULL) RETURNING "id" |
14:03:29.400 | 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', 165257, 'a:5:{s:2:"id";i:165257;s:9:"client_id";i:3338;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.40.121') |
14:03:29.401 | 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', 3338, 'a:0:{}', '', 1000, '223.104.40.121') |
14:03:29.401 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:03:29.402 | 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', 3338, 10, 37030, 19, 1000, '[37030]', '[37030]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u62dc\u8bbf\u5ba2\u6237"]}') RETURNING "id" |
14:03:29.403 | 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', 510556, 'a:13:{s:2:"id";i:510556;s:9:"object_id";s:4:"3338";s:11:"object_type";i:10;s:9:"target_id";i:37030;s:18:"target_object_type";i:19;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:7:"[37030]";s:9:"new_value";s:7:"[37030]";s:11:"description";s:119:"{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u62dc\u8bbf\u5ba2\u6237"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
14:03:29.404 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338' |
14:03:29.404 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
14:03:29.405 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.405 | 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_user_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:03:29.408 | 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_user_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
14:03:29.417 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.417 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
14:03:29.417 | 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', 3338, 10, 37030, 19, 1000, '37030', '37030', array[1004,1000], '{"d1":"\u66f9\u6c38\u751f","d2":"\u66f4\u65b0\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u62dc\u8bbf\u5ba2\u6237"]}') RETURNING "id" |
14:03:29.423 | 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', 137143, 'a:15:{s:2:"id";i:137143;s:9:"object_id";s:4:"3338";s:11:"object_type";i:10;s:9:"target_id";i:37030;s:18:"target_object_type";i:19;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:5:"37030";s:9:"new_value";s:5:"37030";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":"\u66f4\u65b0\u4e86","d3":"\u5de5\u4f5c\u65e5\u5fd7","d4":["\u62dc\u8bbf\u5ba2\u6237"]}";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') |
14:03:29.424 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338' |
14:03:29.425 | info | yii\db\Command::query | SELECT 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"=3338) |
14:03:29.426 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3338) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
14:03:29.434 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3338, 1004, 'now()', NULL) RETURNING "id" |
14:03:29.435 | 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', 165258, 'a:5:{s:2:"id";i:165258;s:9:"client_id";i:3338;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.40.121') |
14:03:29.436 | 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', 3338, 'a:0:{}', '', 1000, '223.104.40.121') |
14:03:29.442 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
14:03:29.443 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
14:03:29.443 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
14:03:29.443 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_work_log_verify_rels" WHERE "work_log_id"=37030 ORDER BY "id" |
14:03:29.443 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=19) AND ("object_id"=37030) AND ("created_by"=1000)) |
14:03:29.463 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_work_log_verify_rels" SET "status"=1 WHERE "id"=14317 |
14:03:29.464 | 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\WorkLogVerifyRels', 14317, 'a:1:{s:6:"status";i:1;}', '', 1000, '223.104.40.121') |
14:03:29.465 | 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\WorkLogs', 37030, 'a:0:{}', '', 1000, '223.104.40.121') |
14:03:29.466 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3338' |
14:03:29.467 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
14:03:29.467 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
14:03:29.467 | 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/work-log/save-edit', '{"WorkLogs":{"client_id":"3338","created_by":"1000","description":"\u597d\u60f3\u597d\u5c31\u884c","end_at":"2025-07-11 14:03","escort":"","form_workLogCarbonCopyRels":"","form_workLogVerifyRels":["1000"],"id":"37030","is_draft":"0","location_in_address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","location_in_distance":"2890","location_in_id":"19230","location_in_lat":"39.9605032009549","location_in_lng":"116.288951551649","location_in_updated_at":"2025-07-10 16:33:00","location_out_address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u84dd\u975b\u5382\u4e1c\u8def\u9760\u8fd1\u5317\u4eac\u4e16\u7eaa\u661f\u8c6a\u9152\u5e97","location_out_distance":"2870.11415455382","location_out_id":"19231","location_out_lat":"39.9605287000868","location_out_lng":"116.2892336697049","location_out_updated_at":"2025-07-11 14:03","project_id":"","scenario_id":"1","scenario_option_id":"71","start_at":"2025-07-10 16:33","workLogContacts":""},"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","posttime":"1752213760","token":"f0a6b65cb2f601b3d48c977f133502c3","version_code":"1141"}', '{"code":200,"data":"","status":1,"msg":[{"name":"success","success":"\u5de5\u4f5c\u65e5\u5fd7\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}]}', FALSE, '2025-07-11 14:03:29') RETURNING "id" |