| 12:52:52.648 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 12:52:52.648 | trace | yii\base\Module::getModule | Loading module: debug |
| 12:52:52.649 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 12:52:52.649 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 12:52:52.649 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 12:52:52.649 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.649 | info | time tracing start | 1780289572649864960 |
| 12:52:52.649 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 12:52:52.649 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-personal-tax/save-new' |
| 12:52:52.650 | trace | yii\base\Module::getModule | Loading module: vue |
| 12:52:52.650 | info | yii\web\Session::open | Session started |
| 12:52:52.650 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 12:52:52.650 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 12:52:52.651 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.652 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 12:52:52.653 | trace | yii\base\Controller::runAction | Route to run: vue/erp-personal-tax/save-new |
| 12:52:52.653 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.654 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 12:52:52.654 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpPersonalTaxController::actionSaveNew() |
| 12:52:52.655 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpPersonalTaxs'. |
| 12:52:52.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.655 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpPersonalTaxs'. |
| 12:52:52.655 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPersonalTaxVerifyRels' in 'app\models\ErpPersonalTaxs'. |
| 12:52:52.655 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPersonalTaxAmounts' in 'app\models\ErpPersonalTaxs'. |
| 12:52:52.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.656 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_taxs" WHERE ("created_at" >= '2026-06-01 00:00:00') AND ("created_at" <= '2026-06-01 23:59:59') AND ("serial_no" ILIKE '%GSD-20260601-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC |
| 12:52:52.657 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_personal_taxs" WHERE "serial_no"='GSD-20260601-00001') |
| 12:52:52.658 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 12:52:52.658 | trace | yii\db\Transaction::begin | Begin transaction |
| 12:52:52.658 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_personal_taxs" ("wrote_date", "settle_month", "serial_no", "abstract", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "amount", "settle_amount", "description") VALUES ('now()', '2026-06-01', 'GSD-20260601-00001', '1000', 2, 1001, 'now()', 1, FALSE, '0', '0', NULL) RETURNING "id" |
| 12:52:52.662 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.662 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.662 | 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\ErpPersonalTaxs', 11, 'a:25:{s:2:"id";i:11;s:9:"serial_no";s:18:"GSD-20260601-00001";s:10:"wrote_date";s:5:"now()";s:12:"settle_month";s:10:"2026-06-01";s:6:"status";i:1;s:8:"abstract";s:4:"1000";s:11:"description";N;s:11:"verify_type";s:1:"2";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:6:"number";N;s:13:"settle_amount";i:0;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";N;s:17:"is_payment_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:14:"bank_settle_at";N;s:11:"print_times";N;}', '', 1001, '221.216.117.119') |
| 12:52:52.663 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20045) AND ("object_id"=11) |
| 12:52:52.665 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_personal_tax_amounts" WHERE "erp_personal_tax_id"=11 |
| 12:52:52.666 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.666 | 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_personal_tax_amounts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 12:52:52.670 | 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_personal_tax_amounts'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 12:52:52.682 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.682 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 12:52:52.682 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_personal_tax_amounts" ("erp_personal_tax_id", "user_id", "amount", "settle_month") VALUES (11, 1001, '1000', '2026-06-01'), (11, 5087, '1000', '2026-06-01'), (11, 5295, '1000', '2026-06-01'), (11, 1022, '1000', '2026-06-01'), (11, 1023, '1000', '2026-06-01'), (11, 1011, '1000', '2026-06-01'), (11, 5388, '1000', '2026-06-01'), (11, 1013, '1000', '2026-06-01'), (11, 1004, '1000', '2026-06-01'), (11, 1005, '1000', '2026-06-01'), (11, 1000, '1000', '2026-06-01'), (11, 5250, '1000', '2026-06-01'), (11, 5064, '1000', '2026-06-01') |
| 12:52:52.685 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_tax_verify_rels" WHERE ("status"=0) AND ("erp_personal_tax_id"=11) ORDER BY "id" |
| 12:52:52.685 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_personal_taxs" SET "amount"='13000', "number"=13, "next_verify_user"=NULL WHERE "id"=11 |
| 12:52:52.685 | 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\ErpPersonalTaxs', 11, 'a:2:{s:6:"amount";d:13000;s:6:"number";i:13;}', '', 1001, '221.216.117.119') |
| 12:52:52.686 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_taxs" WHERE "id"=11 |
| 12:52:52.686 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_tax_bank_outs" WHERE "erp_personal_tax_id"=11 ORDER BY "id" |
| 12:52:52.687 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_taxs" WHERE "id"=11 |
| 12:52:52.687 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_personal_taxs" SET "settle_amount"='0' WHERE "id"=11 |
| 12:52:52.687 | 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\ErpPersonalTaxs', 11, 'a:0:{}', '', 1001, '221.216.117.119') |
| 12:52:52.688 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 12:52:52.688 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_tax_verify_rels" WHERE ("status"=0) AND ("erp_personal_tax_id"=11) ORDER BY "id" |
| 12:52:52.688 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_personal_taxs" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=11 |
| 12:52:52.689 | 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\ErpPersonalTaxs', 11, 'a:2:{s:6:"status";i:1;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 12:52:52.689 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_tax_bank_outs" WHERE "erp_personal_tax_id"=11 ORDER BY "id" |
| 12:52:52.690 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_taxs" WHERE "id"=11 |
| 12:52:52.690 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_erp_personal_tax_bank_outs" WHERE "erp_personal_tax_id"=11 |
| 12:52:52.690 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_personal_taxs" SET "settle_amount"='0' WHERE "id"=11 |
| 12:52:52.691 | 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\ErpPersonalTaxs', 11, 'a:0:{}', '', 1001, '221.216.117.119') |
| 12:52:52.691 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_personal_taxs" WHERE "id"=11 |
| 12:52:52.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.691 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.692 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "amount", "client_id", "supplier_id", "contact_id", "user_id", "created_by", "created_at", "updated_at", "object_id", "verify_at") VALUES (2, 20026, 'GSD-20260601-00001', '2026-06-01', NULL, '1000', '13000', NULL, NULL, NULL, NULL, 1001, '2026-06-01 12:52:52', '2026-06-01 12:52:52', 11, '2026-06-01 12:52:52.658818+08') RETURNING "id" |
| 12:52:52.693 | 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\ErpTicketChangeLogs', 2917, 'a:17:{s:2:"id";i:2917;s:9:"serial_no";s:18:"GSD-20260601-00001";s:11:"ticket_type";i:20026;s:10:"wrote_date";s:10:"2026-06-01";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";N;s:8:"abstract";s:4:"1000";s:11:"description";N;s:9:"verify_at";s:29:"2026-06-01 12:52:52.658818+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-01 12:52:52";s:10:"updated_at";s:19:"2026-06-01 12:52:52";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:5:"13000";s:9:"object_id";i:11;}', '', 1001, '221.216.117.119') |
| 12:52:52.693 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 12:52:52.693 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.693 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.694 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 11, 20026, 1001, '2026-06-01 12:52:52', '{"id":11,"serial_no":"GSD-20260601-00001","wrote_date":"2026-06-01","settle_month":"2026-06-01","status":2,"abstract":"1000","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"13000","number":13,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2026-06-01 12:52:52","updated_at":"1970-01-01 08:00:00","bank_settle_at":null,"print_times":null}', '{"id":11,"serial_no":"GSD-20260601-00001","wrote_date":"2026-06-01","settle_month":"2026-06-01","status":2,"abstract":"1000","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"13000","number":13,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2026-06-01 12:52:52","updated_at":"1970-01-01 08:00:00","bank_settle_at":null,"print_times":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4e2a\u7a0e\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 12:52:52.694 | 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', 640852, 'a:13:{s:2:"id";i:640852;s:9:"object_id";i:11;s:11:"object_type";i:20026;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:543:"{"id":11,"serial_no":"GSD-20260601-00001","wrote_date":"2026-06-01","settle_month":"2026-06-01","status":2,"abstract":"1000","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"13000","number":13,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2026-06-01 12:52:52","updated_at":"1970-01-01 08:00:00","bank_settle_at":null,"print_times":null}";s:9:"new_value";s:543:"{"id":11,"serial_no":"GSD-20260601-00001","wrote_date":"2026-06-01","settle_month":"2026-06-01","status":2,"abstract":"1000","description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"13000","number":13,"settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"created_at":"2026-06-01 12:52:52","updated_at":"1970-01-01 08:00:00","bank_settle_at":null,"print_times":null}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4e2a\u7a0e\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-01 12:52:52";s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 12:52:52.695 | trace | yii\db\Transaction::commit | Commit transaction |
| 12:52:52.695 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.695 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 12:52:52.696 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-personal-tax/save-new', '{"ErpPersonalTaxs":{"id":"","wrote_date":"2026-06-01","settle_month":"2026-06","serial_no":"GSD-20260601-00001","abstract":"1000","files":"","erpPersonalTaxVerifyRels":"","erpPersonalTaxAmounts":[{"user_id":"1001","amount":"1000"},{"user_id":"5087","amount":"1000"},{"user_id":"5295","amount":"1000"},{"user_id":"1022","amount":"1000"},{"user_id":"1023","amount":"1000"},{"user_id":"1011","amount":"1000"},{"user_id":"5388","amount":"1000"},{"user_id":"1013","amount":"1000"},{"user_id":"1004","amount":"1000"},{"user_id":"1005","amount":"1000"},{"user_id":"1000","amount":"1000"},{"user_id":"5250","amount":"1000"},{"user_id":"5064","amount":"1000"}]},"web_access_token":"YNQKwEYJYN8muCSh8ExnNlBf2oepDAlv"}', '{"code":2000,"result":{"id":11},"status":1,"msg":[{"name":"success","success":"\u65b0\u4e2a\u7a0e\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-01 12:52:52', 46194944) RETURNING "id" |
| 12:52:52.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 12:52:52.697 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |