11:59:41.244 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
11:59:41.244 | trace | yii\base\Module::getModule | Loading module: debug |
11:59:41.244 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
11:59:41.244 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
11:59:41.245 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
11:59:41.245 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.245 | trace | yii\base\Module::getModule | Loading module: gii |
11:59:41.245 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
11:59:41.245 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
11:59:41.245 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-cash-cost-ticket/save-new' |
11:59:41.245 | trace | yii\base\Module::getModule | Loading module: vue |
11:59:41.245 | info | yii\web\Session::open | Session started |
11:59:41.246 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
11:59:41.246 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
11:59:41.250 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.251 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.251 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.251 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.251 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
11:59:41.253 | trace | yii\base\Controller::runAction | Route to run: vue/erp-cash-cost-ticket/save-new |
11:59:41.253 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.254 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
11:59:41.254 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpCashCostTicketController::actionSaveNew() |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_id' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_name' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_type' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_search_id' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_search_name' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'sales_contract_name' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchase_contract_name' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCashCostTicketVerifyRels' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCashCostTicketAmounts' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCashCostTicketBankOuts' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCashCostTicketHandlers' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCashCostTicketSalesContractSettles' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpCashCostTicketPurchaseContractSettles' in 'app\models\ErpCashCostTickets'. |
11:59:41.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.256 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.256 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE ("created_at" >= '2025-08-13 00:00:00') AND ("created_at" <= '2025-08-13 23:59:59') AND ("serial_no" ILIKE '%XJFYD-20250813-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC |
11:59:41.259 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "serial_no"='XJFYD-20250813-00001') |
11:59:41.261 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
11:59:41.261 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_cash_cost_tickets" ("wrote_date", "serial_no", "abstract", "description", "client_id", "sales_contract_id", "supplier_id", "purchase_contract_id", "status", "verify_type", "created_by", "created_at", "is_resubmitted", "amount", "settle_amount") VALUES ('2025-08-13', 'XJFYD-20250813-00001', '', '', NULL, NULL, NULL, NULL, 0, 1, 1001, 'now()', FALSE, '0', '0') RETURNING "id" |
11:59:41.265 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.265 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.265 | 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\ErpCashCostTickets', 7347, 'a:27:{s:2:"id";i:7347;s:9:"serial_no";s:20:"XJFYD-20250813-00001";s:10:"wrote_date";s:10:"2025-08-13";s:9:"client_id";s:0:"";s:17:"sales_contract_id";s:0:"";s:11:"supplier_id";s:0:"";s:20:"purchase_contract_id";s:0:"";s:16:"reimbursement_id";N;s:6:"status";s:1:"0";s:8:"abstract";s:0:"";s:11:"description";s:0:"";s:11:"verify_type";s:1:"1";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"amount";i:0;s:13:"settle_amount";i:0;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";N;s:6:"is_old";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"paid_amount";N;}', '', 1001, '124.64.23.198') |
11:59:41.267 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20032) AND ("object_id"=7347) |
11:59:41.269 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" WHERE "erp_cash_cost_ticket_id"=7347 |
11:59:41.270 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.270 | 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_erp_cash_cost_ticket_handlers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:41.274 | 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_erp_cash_cost_ticket_handlers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:41.278 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.278 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
11:59:41.278 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_cash_cost_ticket_handlers" ("erp_cash_cost_ticket_id", "user_id", "amount", "pct") VALUES (7347, 1001, '1', '100') |
11:59:41.281 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=7347) AND ("term_id"=18) AND ("object_type"=11) |
11:59:41.282 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.282 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.282 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "object_type", "taxonomy_id", "out_amount", "value", "object_id", "extra_int") VALUES (18, 11, 406, '1', '', 7347, 385) |
11:59:41.283 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" WHERE "erp_cash_cost_ticket_id"=7347 |
11:59:41.284 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.284 | 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_erp_cash_cost_ticket_bank_outs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:41.286 | 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_erp_cash_cost_ticket_bank_outs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:41.290 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.290 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
11:59:41.290 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" ("erp_cash_cost_ticket_id", "erp_bank_id", "amount", "description") VALUES (7347, 1, '1', '') |
11:59:41.294 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" WHERE "erp_cash_cost_ticket_id"=7347 |
11:59:41.294 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_purchase_contract_settles" WHERE "erp_cash_cost_ticket_id"=7347 |
11:59:41.294 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_verify_rels" WHERE ("status"=0) AND ("erp_cash_cost_ticket_id"=7347) ORDER BY "id" |
11:59:41.296 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_cash_cost_tickets" SET "amount"='1', "next_verify_user"=NULL WHERE "id"=7347 |
11:59:41.297 | 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\ErpCashCostTickets', 7347, 'a:0:{}', '', 1001, '124.64.23.198') |
11:59:41.298 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "id"=7347 |
11:59:41.298 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE "id"=7347 |
11:59:41.299 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.299 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
11:59:41.299 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-cash-cost-ticket/save-new', '{"ErpCashCostTickets":{"id":"","auto_id":"","auto_name":"","auto_type":"","auto_search_id":"","auto_search_name":"","wrote_date":"2025-08-13","serial_no":"XJFYD-20250813-00001","abstract":"","description":"","client_id":"","client_name":"","sales_contract_id":"","sales_contract_name":"","supplier_id":"","supplier_name":"","purchase_contract_id":"","purchase_contract_name":"","status":"0","files":"","erpCashCostTicketVerifyRels":"","erpCashCostTicketAmounts":[{"id":"406","amount":"1","description":"","parent_id":"385"}],"erpCashCostTicketBankOuts":[{"amount":"1","id":"1","description":""}],"erpCashCostTicketHandlers":[{"user_id":"1001","amount":"1","pct":"100"}],"erpCashCostTicketSalesContractSettles":"","erpCashCostTicketPurchaseContractSettles":""},"web_access_token":"dPFEBxDCNesd10Ar-2x3OenPGyrzQr4P"}', '{"code":2000,"result":{"id":7347},"status":1,"msg":[{"name":"success","success":"\u65b0\u73b0\u91d1\u8d39\u7528\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-08-13 11:59:41') RETURNING "id" |
11:59:41.301 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
11:59:41.301 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |