| 16:33:32.856 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 16:33:32.856 | trace | yii\base\Module::getModule | Loading module: debug |
| 16:33:32.857 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 16:33:32.857 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 16:33:32.858 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 16:33:32.858 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.858 | info | time tracing start | 1781166812858656768 |
| 16:33:32.858 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 16:33:32.858 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-other-collect-ticket/stop-refuse' |
| 16:33:32.858 | trace | yii\base\Module::getModule | Loading module: vue |
| 16:33:32.859 | info | yii\web\Session::open | Session started |
| 16:33:32.860 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 16:33:32.860 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 16:33:32.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.862 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:32.863 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.863 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:32.863 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 16:33:32.864 | trace | yii\base\Controller::runAction | Route to run: vue/erp-other-collect-ticket/stop-refuse |
| 16:33:32.865 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.866 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: viewErp |
| 16:33:32.866 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: StoreKeeper |
| 16:33:32.866 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: FinancialAudit |
| 16:33:32.866 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: AccountManager |
| 16:33:32.866 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpOtherCollectTicketController::actionStopRefuse() |
| 16:33:32.867 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE "id"='58' |
| 16:33:32.868 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.868 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:32.868 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_stop_verify_rels" WHERE ("status"=0) AND ("erp_other_collect_ticket_id"=58) ORDER BY "id" |
| 16:33:32.869 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.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_erp_other_collect_ticket_stop_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 16:33:32.875 | 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_other_collect_ticket_stop_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 16:33:32.894 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:32.895 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 16:33:32.895 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.896 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.899 | trace | yii\db\Transaction::begin | Begin transaction |
| 16:33:32.900 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_other_collect_ticket_stop_verify_rels" SET "status"=2, "description"='', "verify_at"='now()' WHERE "id"=5 |
| 16:33:32.901 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.901 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:32.902 | 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\ErpOtherCollectTicketStopVerifyRels', 5, 'a:2:{s:6:"status";i:2;s:9:"verify_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 16:33:32.944 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_other_collect_ticket_stop_verify_rels" SET "status"=3 WHERE ("erp_other_collect_ticket_id"=58) AND ("status"=0) |
| 16:33:32.945 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_other_collect_tickets" SET "status"=2, "next_stop_verify_user"=NULL, "stop_at"=NULL, "updated_at"='now()' WHERE "id"=58 |
| 16:33:32.947 | 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\ErpOtherCollectTickets', 58, 'a:2:{s:6:"status";i:5;s:7:"stop_at";s:29:"2026-06-11 16:15:30.845146+08";}', '', 1001, '221.216.117.119') |
| 16:33:32.947 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_approve_borrow_settles" WHERE "erp_other_collect_ticket_id"=58 ORDER BY "id" |
| 16:33:32.948 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_bank_outs" WHERE "erp_other_collect_ticket_id"=58 ORDER BY "id" |
| 16:33:32.949 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.949 | 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_other_collect_ticket_bank_outs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 16:33:32.952 | 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_other_collect_ticket_bank_outs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 16:33:32.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:32.973 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 16:33:32.973 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_banks" WHERE "id"=1 |
| 16:33:32.983 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:32.984 | 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_banks'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 16:33:32.987 | 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_banks'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 16:33:33.004 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:33.004 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 16:33:33.010 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_income_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON r.erp_other_income_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 16:33:33.016 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_bank_transfer_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_bank_transfer_tickets" "t" ON r.erp_bank_transfer_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 16:33:33.033 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_bank_transfer_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_bank_transfer_tickets" "t" ON r.erp_bank_transfer_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 16:33:33.040 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.049 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_advance_payment_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_advance_payment_tickets" "t" ON r.erp_advance_payment_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.053 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_payment_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_payment_tickets" "t" ON r.erp_other_payment_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 16:33:33.057 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_collect_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_collect_tickets" "t" ON r.erp_other_collect_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND (t.bank_settle_at IS NOT NULL) |
| 16:33:33.060 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.066 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_bank_ins" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 16:33:33.070 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_social_insurance_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_social_insurances" "t" ON r.erp_social_insurance_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.073 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_provident_fund_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_provident_funds" "t" ON r.erp_provident_fund_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.077 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_personal_tax_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_personal_taxs" "t" ON r.erp_personal_tax_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.081 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_prize_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_prizes" "t" ON r.erp_wage_prize_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 16:33:33.085 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_bank_outs" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_tickets" "t" ON r.erp_wage_ticket_id = t.id WHERE ("r"."erp_bank_id"=1) AND ("t"."status" IN (2, 5)) |
| 16:33:33.087 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_banks" SET "balance_amount"='1476234.72' WHERE "id"=1 |
| 16:33:33.087 | 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\ErpBanks', 1, 'a:0:{}', '', 1001, '221.216.117.119') |
| 16:33:33.088 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_banks" WHERE "id"=1 |
| 16:33:33.100 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_account_captions" WHERE "id"=71 |
| 16:33:33.105 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:33.106 | 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_account_captions'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 16:33:33.110 | 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_account_captions'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 16:33:33.125 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:33.126 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 16:33:33.126 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_account_captions" SET "created_at"='2025-08-01 23:14:45', "updated_at"='2025-08-08 18:50:15' WHERE "id"=71 |
| 16:33:33.128 | 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\ErpAccountCaptions', 71, 'a:0:{}', '', 1001, '221.216.117.119') |
| 16:33:33.128 | 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\ErpBanks', 1, 'a:0:{}', '', 1001, '221.216.117.119') |
| 16:33:33.129 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (2, 5)) |
| 16:33:33.130 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (2, 5)) |
| 16:33:33.131 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_amount_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_tickets" "t" ON r.erp_wage_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (2, 5)) |
| 16:33:33.132 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (2, 5)) |
| 16:33:33.133 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (1, 2, 5)) |
| 16:33:33.133 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (1, 2, 5)) |
| 16:33:33.134 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_wage_ticket_amount_payments" "r" LEFT JOIN "a57be577deb434"."tbl_erp_wage_tickets" "t" ON r.erp_wage_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (1, 2, 5)) |
| 16:33:33.135 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."erp_other_collect_ticket_id"=58) AND ("t"."status" IN (1, 2, 5)) |
| 16:33:33.135 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_other_collect_tickets" SET "settle_amount"='0', "all_settle_amount"='0' WHERE "id"=58 |
| 16:33:33.137 | 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\ErpOtherCollectTickets', 58, 'a:0:{}', '', 1001, '221.216.117.119') |
| 16:33:33.137 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_payments" WHERE "erp_other_collect_ticket_id"=58 ORDER BY "id" |
| 16:33:33.138 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_carbon_copy_rels" WHERE "erp_other_collect_ticket_id"=58 |
| 16:33:33.139 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_ticket_stop_verify_rels" WHERE "erp_other_collect_ticket_id"=58 ORDER BY "id" |
| 16:33:33.139 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:33.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:33.140 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_other_collect_tickets" WHERE "id"=58 |
| 16:33:33.141 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 16:33:33.142 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '20021', 58, '刘人诚拒绝了这个其他应收单申请', TRUE, 'QTYSD-20260611-00002') RETURNING "id" |
| 16:33:33.149 | 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', 220829, 'a:11:{s:2:"id";i:220829;s:9:"object_id";i:58;s:11:"object_type";s:5:"20021";s:6:"parent";N;s:11:"description";s:45:"刘人诚拒绝了这个其他应收单申请";s:10:"created_by";i:1001;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:20:"QTYSD-20260611-00002";}', '', 1001, '221.216.117.119') |
| 16:33:33.150 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
| 16:33:33.150 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 16:33:33.157 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 16:33:33.158 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 16:33:33.158 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 16:33:33.159 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 16:33:33.160 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 16:33:33.160 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:33.160 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:33.161 | 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 (24, 'status', 58, 20021, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u62d2\u7edd\u4e86\u7ea2\u5b57\u53cd\u51b2","d3":"\u5176\u4ed6\u5e94\u6536\u5355\u7533\u8bf7","d4":""}') |
| 16:33:33.170 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=20021) AND ("object_id"=58) AND ("remind_user_id"=1001) AND ("is_read"=FALSE) |
| 16:33:33.201 | trace | yii\db\Transaction::commit | Commit transaction |
| 16:33:33.204 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:33.205 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 16:33:33.205 | 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-other-collect-ticket/stop-refuse', '{"id":"58","description":"","web_access_token":"s1xKbg9e3rlah-dvFsDEWCxiJPk9VpSm"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u5176\u4ed6\u5e94\u6536\u5355\u7ea2\u5b57\u53cd\u51b2\u62d2\u7edd\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-11 16:33:33', 346582272) RETURNING "id" |
| 16:33:33.238 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 16:33:33.238 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |