15:52:08.876 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
15:52:08.876 | trace | yii\base\Module::getModule | Loading module: debug |
15:52:08.876 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
15:52:08.877 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
15:52:08.877 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
15:52:08.877 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.877 | trace | yii\base\Module::getModule | Loading module: gii |
15:52:08.877 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
15:52:08.877 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
15:52:08.877 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-payment-ticket/save-new' |
15:52:08.877 | trace | yii\base\Module::getModule | Loading module: vue |
15:52:08.878 | info | yii\web\Session::open | Session started |
15:52:08.878 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
15:52:08.878 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
15:52:08.882 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.883 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.883 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.883 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.883 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:08.885 | trace | yii\base\Controller::runAction | Route to run: vue/erp-payment-ticket/save-new |
15:52:08.885 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.886 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
15:52:08.886 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpPaymentTicketController::actionSaveNew() |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_id' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_name' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_type' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.887 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'handler_name' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPaymentTicketVerifyRels' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'user_name' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contact_name' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPaymentTicketBankOuts' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPaymentTicketPayments' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpPaymentTicketSettles' in 'app\models\ErpPaymentTickets'. |
15:52:08.887 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.888 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.889 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_tickets" WHERE ("created_at" >= '2025-09-15 00:00:00') AND ("created_at" <= '2025-09-15 23:59:59') AND ("serial_no" ILIKE '%FKD-20250915-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC |
15:52:08.891 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_payment_tickets" WHERE "serial_no"='FKD-20250915-00010') |
15:52:08.892 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
15:52:08.892 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431') |
15:52:08.893 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
15:52:08.893 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_payment_tickets" ("handler", "wrote_date", "serial_no", "abstract", "description", "client_id", "supplier_id", "user_id", "contact_id", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "amount", "settle_amount", "paid_amount") VALUES (1011, '2025-09-15', 'FKD-20250915-00010', '3698 是个大范围的bug', '', NULL, 431, NULL, NULL, 2, 1001, 'now()', 1, FALSE, '0', '0', '0') RETURNING "id" |
15:52:08.899 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.899 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.899 | 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\ErpPaymentTickets', 2138, 'a:31:{s:2:"id";i:2138;s:9:"serial_no";s:18:"FKD-20250915-00010";s:10:"wrote_date";s:10:"2025-09-15";s:9:"from_date";N;s:7:"handler";s:4:"1011";s:9:"client_id";s:0:"";s:17:"sales_contract_id";N;s:11:"supplier_id";s:3:"431";s:20:"purchase_contract_id";N;s:6:"status";i:1;s:8:"abstract";s:26:"3698 是个大范围的bug";s:11:"description";s:0:"";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: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: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";i:0;s:10:"contact_id";s:0:"";s:7:"user_id";s:0:"";}', '', 1001, '114.246.237.213') |
15:52:08.901 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20020) AND ("object_id"=2138) |
15:52:08.903 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_payment_ticket_verify_rels" WHERE "erp_payment_ticket_id"=2138 |
15:52:08.903 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.903 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.903 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_payment_ticket_verify_rels" ("erp_payment_ticket_id", "user_id", "status") VALUES (2138, 1001, 0) |
15:52:08.905 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" WHERE "erp_payment_ticket_id"=2138 |
15:52:08.906 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.906 | 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_payment_ticket_settles'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:52:08.910 | 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_payment_ticket_settles'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:52:08.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:52:08.915 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_payment_ticket_settles" ("erp_payment_ticket_id", "sales_contract_id", "purchase_contract_id", "erp_cost_ticket_id", "erp_other_payment_ticket_id", "amount") VALUES (2138, NULL, 4141, NULL, NULL, '90') RETURNING "id" |
15:52:08.919 | 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\ErpPaymentTicketSettles', 2146, 'a:8:{s:2:"id";i:2146;s:21:"erp_payment_ticket_id";i:2138;s:17:"sales_contract_id";s:0:"";s:20:"purchase_contract_id";s:4:"4141";s:18:"erp_cost_ticket_id";s:0:"";s:27:"erp_other_payment_ticket_id";s:0:"";s:6:"amount";s:2:"90";s:11:"description";N;}', '', 1001, '114.246.237.213') |
15:52:08.919 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_payment_ticket_bank_outs" WHERE "erp_payment_ticket_id"=2138 |
15:52:08.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.920 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_payment_ticket_bank_outs" ("erp_payment_ticket_id", "erp_bank_id", "amount", "description") VALUES (2138, 1, '90', '') |
15:52:08.922 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_verify_rels" WHERE ("status"=0) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.923 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_payment_tickets" SET "amount"='90', "next_verify_user"=1001 WHERE "id"=2138 |
15:52:08.924 | 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\ErpPaymentTickets', 2138, 'a:1:{s:6:"amount";i:90;}', '', 1001, '114.246.237.213') |
15:52:08.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_tickets" WHERE "id"=2138 |
15:52:08.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_bank_outs" WHERE "erp_payment_ticket_id"=2138 ORDER BY "id" |
15:52:08.926 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_banks" WHERE "id"=1 |
15:52:08.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.926 | 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; |
15:52:08.929 | 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 |
15:52:08.933 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.933 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:52:08.933 | 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)) |
15:52:08.934 | 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)) |
15:52:08.935 | 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)) |
15:52:08.935 | 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) |
15:52:08.938 | 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) |
15:52:08.938 | 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)) |
15:52:08.939 | 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)) |
15:52:08.940 | 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) |
15:52:08.941 | 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)) |
15:52:08.941 | 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) |
15:52:08.942 | 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) |
15:52:08.943 | 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) |
15:52:08.944 | 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) |
15:52:08.944 | 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)) |
15:52:08.945 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_banks" SET "balance_amount"='115322.97' WHERE "id"=1 |
15:52:08.946 | 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, '114.246.237.213') |
15:52:08.947 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_banks" WHERE "id"=1 |
15:52:08.947 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_account_captions" WHERE "id"=71 |
15:52:08.948 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.948 | 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; |
15:52:08.951 | 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 |
15:52:08.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.955 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:52:08.955 | 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 |
15:52:08.956 | 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, '114.246.237.213') |
15:52:08.957 | 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, '114.246.237.213') |
15:52:08.958 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_approve_payment_settles" WHERE "erp_payment_ticket_id"=2138 ORDER BY "id" |
15:52:08.959 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" WHERE (purchase_contract_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.959 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
15:52:08.959 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.960 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.960 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_other_income_ticket_purchase_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON r.erp_other_income_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5)) |
15:52:08.960 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_purchase_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5)) |
15:52:08.961 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
15:52:08.962 | 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"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5)) |
15:52:08.962 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_purchase_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status"=1)) |
15:52:08.963 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status"=1)) |
15:52:08.963 | 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"."purchase_contract_id"=4141) AND ("t"."status"=1) |
15:52:08.964 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "erp_settle_amount"='44', "erp_un_settle_amount"='3390', "erp_payment_ticket_is_verify"=TRUE WHERE "id"=4141 |
15:52:08.965 | 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\PurchaseContracts', 4141, 'a:0:{}', '', 1001, '114.246.237.213') |
15:52:08.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=431 |
15:52:08.966 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.966 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.967 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_costs" WHERE "purchase_contract_id"=4141 |
15:52:08.967 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
15:52:08.968 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.968 | 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_purchase_contract_payment_collection_remind_dates'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:52:08.970 | 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_purchase_contract_payment_collection_remind_dates'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:52:08.974 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.974 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:52:08.974 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=4141 |
15:52:08.974 | info | yii\db\Command::query | SELECT r.amount, t.created_at FROM "a57be577deb434"."tbl_erp_other_income_ticket_purchase_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_other_income_tickets" "t" ON r.erp_other_income_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5, 1)) |
15:52:08.975 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.975 | 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_income_ticket_purchase_contract_settles'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:52:08.977 | 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_income_ticket_purchase_contract_settles'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:52:08.981 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.981 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:52:08.981 | info | yii\db\Command::query | SELECT r.amount, t.created_at FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_purchase_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5, 1)) |
15:52:08.982 | info | yii\db\Command::query | SELECT r.amount, t.created_at FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."purchase_contract_id"=4141) AND ("t"."status" IN (2, 5, 1)) |
15:52:08.982 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=4141) AND (amount > paid_amount) ORDER BY "remind_date" |
15:52:08.983 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" WHERE (sales_contract_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.983 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" WHERE (erp_cost_ticket_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.984 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" WHERE (erp_other_payment_ticket_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.984 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_payments" WHERE (erp_advance_payment_ticket_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.985 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_payments" WHERE (erp_other_collect_ticket_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.985 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:08.985 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_verify_rels" WHERE ("status"=0) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.986 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_verify_rels" WHERE ("status"=0) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.986 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:08.986 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.987 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.987 | 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', 2138, 20012, 1001, '2025-09-15 15:52:08', '{"id":2138,"serial_no":"FKD-20250915-00010","wrote_date":"2025-09-15","from_date":null,"handler":1011,"client_id":null,"sales_contract_id":null,"supplier_id":431,"purchase_contract_id":null,"status":1,"abstract":"3698 \u662f\u4e2a\u5927\u8303\u56f4\u7684bug","description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"90","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"is_old":false,"created_at":"2025-09-15 15:52:08","updated_at":"2025-09-15 15:52:08","paid_amount":"0","contact_id":null,"user_id":null}', '{"id":2138,"serial_no":"FKD-20250915-00010","wrote_date":"2025-09-15","from_date":null,"handler":1011,"client_id":null,"sales_contract_id":null,"supplier_id":431,"purchase_contract_id":null,"status":1,"abstract":"3698 \u662f\u4e2a\u5927\u8303\u56f4\u7684bug","description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"90","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"is_old":false,"created_at":"2025-09-15 15:52:08","updated_at":"2025-09-15 15:52:08","paid_amount":"0","contact_id":null,"user_id":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4ed8\u6b3e\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
15:52:08.988 | 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', 565407, 'a:13:{s:2:"id";i:565407;s:9:"object_id";i:2138;s:11:"object_type";i:20012;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:682:"{"id":2138,"serial_no":"FKD-20250915-00010","wrote_date":"2025-09-15","from_date":null,"handler":1011,"client_id":null,"sales_contract_id":null,"supplier_id":431,"purchase_contract_id":null,"status":1,"abstract":"3698 \u662f\u4e2a\u5927\u8303\u56f4\u7684bug","description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"90","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"is_old":false,"created_at":"2025-09-15 15:52:08","updated_at":"2025-09-15 15:52:08","paid_amount":"0","contact_id":null,"user_id":null}";s:9:"new_value";s:682:"{"id":2138,"serial_no":"FKD-20250915-00010","wrote_date":"2025-09-15","from_date":null,"handler":1011,"client_id":null,"sales_contract_id":null,"supplier_id":431,"purchase_contract_id":null,"status":1,"abstract":"3698 \u662f\u4e2a\u5927\u8303\u56f4\u7684bug","description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"90","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"is_payment_settle":false,"is_old":false,"created_at":"2025-09-15 15:52:08","updated_at":"2025-09-15 15:52:08","paid_amount":"0","contact_id":null,"user_id":null}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4ed8\u6b3e\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-09-15 15:52:08";s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
15:52:08.989 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" WHERE (purchase_contract_id is not null) AND ("erp_payment_ticket_id"=2138) ORDER BY "id" |
15:52:08.989 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
15:52:08.990 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4141 ORDER BY "id" |
15:52:08.990 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:08.990 | 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_purchase_client_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:52:08.993 | 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_purchase_client_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:52:08.996 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:08.996 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
15:52:08.997 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:08.997 | 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', 1661, 10, 4141, 13, 1001, '[4141]', '[4141]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u800c\u7279\u70ed\u821e"]}') RETURNING "id" |
15:52:08.998 | 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', 565408, 'a:13:{s:2:"id";i:565408;s:9:"object_id";i:1661;s:11:"object_type";i:10;s:9:"target_id";i:4141;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4141]";s:9:"new_value";s:6:"[4141]";s:11:"description";s:144:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u800c\u7279\u70ed\u821e"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
15:52:08.999 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:08.999 | 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', 1791, 1, 4141, 13, 1001, '[4141]', '[4141]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u800c\u7279\u70ed\u821e"]}') RETURNING "id" |
15:52:09.000 | 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', 565409, 'a:13:{s:2:"id";i:565409;s:9:"object_id";i:1791;s:11:"object_type";i:1;s:9:"target_id";i:4141;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4141]";s:9:"new_value";s:6:"[4141]";s:11:"description";s:144:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u800c\u7279\u70ed\u821e"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
15:52:09.001 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:09.002 | 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', 431, 12, 4141, 13, 1001, '[4141]', '[4141]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u800c\u7279\u70ed\u821e"]}') RETURNING "id" |
15:52:09.003 | 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', 565410, 'a:13:{s:2:"id";i:565410;s:9:"object_id";i:431;s:11:"object_type";i:12;s:9:"target_id";i:4141;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4141]";s:9:"new_value";s:6:"[4141]";s:11:"description";s:144:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u800c\u7279\u70ed\u821e"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
15:52:09.003 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:09.004 | 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 (1, 'create', 4141, 13, 2138, 20012, 1001, '[2138]', '[2138]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4ed8\u6b3e\u8bb0\u5f55","d4":["2025-09-15 \uffe590.00"]}') RETURNING "id" |
15:52:09.005 | 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', 565411, 'a:13:{s:2:"id";i:565411;s:9:"object_id";i:4141;s:11:"object_type";i:13;s:9:"target_id";i:2138;s:18:"target_object_type";i:20012;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[2138]";s:9:"new_value";s:6:"[2138]";s:11:"description";s:117:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u4ed8\u6b3e\u8bb0\u5f55","d4":["2025-09-15 \uffe590.00"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '114.246.237.213') |
15:52:09.005 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:09.006 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:09.006 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:09.006 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
15:52:09.007 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
15:52:09.007 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '13', 4141, '刘人诚提交了付款记录:而特热舞付款金额90元', TRUE, '采购合同:而特热舞') RETURNING "id" |
15:52:09.008 | 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', 191360, 'a:11:{s:2:"id";i:191360;s:9:"object_id";i:4141;s:11:"object_type";s:2:"13";s:6:"parent";N;s:11:"description";s:62:"刘人诚提交了付款记录:而特热舞付款金额90元";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:27:"采购合同:而特热舞";}', '', 1001, '114.246.237.213') |
15:52:09.009 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:09.009 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:09.009 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (4141, '13', 191360, 1011) |
15:52:09.010 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1011) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
15:52:09.011 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:52:09.012 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
15:52:09.012 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
15:52:09.012 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
15:52:09.012 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:09.012 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:09.012 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-09-15') |
15:52:09.016 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:09.016 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
15:52:09.016 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=1374, "last_visit_at"='now()' WHERE "id"=56557 |
15:52:09.017 | 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-payment-ticket/save-new', '{"ErpPaymentTickets":{"id":"","auto_id":"431","auto_name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8","auto_type":"supplier","handler":"1011","handler_name":"","wrote_date":"2025-09-15","serial_no":"FKD-20250915-00010","erpPaymentTicketVerifyRels":["1001"],"abstract":"3698 \u662f\u4e2a\u5927\u8303\u56f4\u7684bug","description":"","client_id":"","client_name":"","supplier_id":"431","supplier_name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8","user_id":"","user_name":"","contact_id":"","contact_name":"","files":"","erpPaymentTicketBankOuts":[{"amount":"90","id":"1","description":""}],"erpPaymentTicketPayments":"","erpPaymentTicketSettles":[{"purchase_contract_id":"4141","sales_contract_id":"","erp_cost_ticket_id":"","erp_other_payment_ticket_id":"","amount":"90","erpPaymentTicketApprovePaymentSettles":""}]},"web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"code":2000,"result":{"id":2138},"status":1,"msg":[{"name":"success","success":"\u65b0\u4ed8\u6b3e\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-09-15 15:52:09') RETURNING "id" |
15:52:09.018 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
15:52:09.018 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |