17:31:22.837 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:31:22.837 | trace | yii\base\Module::getModule | Loading module: debug |
17:31:22.837 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:31:22.837 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:31:22.837 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:31:22.837 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.838 | trace | yii\base\Module::getModule | Loading module: gii |
17:31:22.838 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:31:22.838 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:31:22.838 | trace | yii\web\Application::handleRequest | Route requested: 'v2/reimbursement/save-new' |
17:31:22.838 | trace | yii\base\Module::getModule | Loading module: v2 |
17:31:22.838 | info | yii\web\Session::open | Session started |
17:31:22.839 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:31:22.841 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc' |
17:31:22.843 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.844 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.844 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.844 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.844 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:31:22.845 | trace | yii\base\Controller::runAction | Route to run: v2/reimbursement/save-new |
17:31:22.846 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: createReimbursement |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Accountant |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: TechDirector |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: CommercialAttache |
17:31:22.846 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: SalesDirector |
17:31:22.846 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ReimbursementController::actionSaveNew() |
17:31:22.847 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.847 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.847 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'attachmentFiles' in 'app\models\Reimbursements'. |
17:31:22.847 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
17:31:22.848 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
17:31:22.849 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3822') |
17:31:22.849 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"='37033') |
17:31:22.850 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
17:31:22.850 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
17:31:22.850 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3822') |
17:31:22.851 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"='37033') |
17:31:22.851 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_reimbursements" ("amount", "client_id", "description", "occurrence_at", "project_id", "status", "work_log_id", "created_by") VALUES ('111', 2815, '', '2025-07-13 17:30', 3822, 0, 37033, 1004) RETURNING "id" |
17:31:22.856 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.856 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.856 | 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\Reimbursements', 7457, 'a:18:{s:2:"id";i:7457;s:6:"status";s:1:"0";s:6:"amount";s:3:"111";s:13:"occurrence_at";s:19:"2025-07-13 17:30:00";s:18:"settle_accounts_at";N;s:18:"settle_accounts_by";N;s:11:"description";s:0:"";s:10:"created_by";i:1004;s:10:"created_at";N;s:10:"updated_at";N;s:18:"refuse_description";N;s:9:"client_id";s:4:"2815";s:10:"project_id";s:4:"3822";s:16:"next_verify_user";N;s:13:"is_resubmited";N;s:11:"work_log_id";s:5:"37033";s:12:"pre_sales_id";N;s:19:"implement_record_id";N;}', '', 1004, '120.244.156.33') |
17:31:22.857 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=19) AND ("object_id"=7457) |
17:31:22.859 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.859 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.859 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (19, 7457, 24893) |
17:31:22.860 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=7457) AND ("term_id"=15) |
17:31:22.860 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.860 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.862 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='185') |
17:31:22.862 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_terms" WHERE "id"=15) |
17:31:22.862 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (15, 185, 7457) RETURNING "id" |
17:31:22.864 | 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\TermTaxonomyRelationships', 118259, 'a:9:{s:2:"id";i:118259;s:9:"object_id";i:7457;s:11:"taxonomy_id";s:3:"185";s:7:"term_id";i:15;s:5:"value";N;s:11:"object_type";N;s:9:"extra_int";N;s:9:"in_amount";N;s:10:"out_amount";N;}', '', 1004, '120.244.156.33') |
17:31:22.867 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_reimbursement_verify_rels" WHERE "reimbursement_id"=7457 |
17:31:22.869 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.869 | 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_reimbursement_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:31:22.873 | 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_reimbursement_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:31:22.882 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.882 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:31:22.882 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_reimbursement_verify_rels" ("reimbursement_id", "user_id", "status") VALUES (7457, 1004, 0) |
17:31:22.890 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_reimbursement_settle_rels" WHERE "reimbursement_id"=7457 |
17:31:22.891 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.891 | 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_reimbursement_settle_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:31:22.893 | 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_reimbursement_settle_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:31:22.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.902 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:31:22.902 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_reimbursement_settle_rels" ("reimbursement_id", "user_id") VALUES (7457, 1004) |
17:31:22.906 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_reimbursement_verify_rels" WHERE ("status"=0) AND ("reimbursement_id"=7457) ORDER BY "id" |
17:31:22.907 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
17:31:22.907 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
17:31:22.908 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3822') |
17:31:22.908 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_work_logs" WHERE "id"='37033') |
17:31:22.908 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_reimbursements" SET "next_verify_user"=1004 WHERE "id"=7457 |
17:31:22.910 | 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\Reimbursements', 7457, 'a:1:{s:13:"occurrence_at";s:19:"2025-07-13 17:30:00";}', '', 1004, '120.244.156.33') |
17:31:22.911 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:31:22.911 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:31:22.911 | 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', 1004, 2, 1141, 'v2/reimbursement/save-new', '{"Reimbursements":{"amount":"111","attachmentFiles":["24893"],"client_id":"2815","description":"","form_costType":"","form_reimbursementSettleRels":["1004"],"form_reimbursementVerifyRels":["1004"],"form_type":"185","occurrence_at":"2025-07-13 17:30","project_id":"3822","status":"0","work_log_id":"37033"},"access_token":"NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc","device_type":"2","posttime":"1752399104","token":"55e87a58c3438cd26d71bb3a6d6ac8c9","version_code":"1141"}', '{"code":200,"data":{"id":7457},"status":1,"msg":[{"name":"success","success":"\u65b0\u62a5\u9500\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-07-13 17:31:22') RETURNING "id" |