| 17:03:08.140 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 17:03:08.140 | trace | yii\base\Module::getModule | Loading module: debug |
| 17:03:08.140 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 17:03:08.140 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 17:03:08.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 17:03:08.140 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.140 | info | time tracing start | 1780390988140933888 |
| 17:03:08.141 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 17:03:08.141 | trace | yii\web\Application::handleRequest | Route requested: 'vue/purchase-contract/save-edit-cost' |
| 17:03:08.141 | trace | yii\base\Module::getModule | Loading module: vue |
| 17:03:08.141 | info | yii\web\Session::open | Session started |
| 17:03:08.141 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 17:03:08.141 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 17:03:08.142 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.143 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.143 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.143 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.143 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:08.144 | trace | yii\base\Controller::runAction | Route to run: vue/purchase-contract/save-edit-cost |
| 17:03:08.144 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.145 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 17:03:08.145 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\PurchaseContractController::actionSaveEditCost() |
| 17:03:08.145 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4477' |
| 17:03:08.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.146 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.147 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\PurchaseContracts'. |
| 17:03:08.147 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractScans' in 'app\models\PurchaseContracts'. |
| 17:03:08.147 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'receiptScans' in 'app\models\PurchaseContracts'. |
| 17:03:08.147 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseClientRels' in 'app\models\PurchaseContracts'. |
| 17:03:08.147 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'PurchaseContractInvoices' in 'app\models\PurchaseContracts'. |
| 17:03:08.147 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'costContractAmounts' in 'app\models\PurchaseContracts'. |
| 17:03:08.148 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "serial_no"='方式第三方的身份' LIMIT 2 |
| 17:03:08.148 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431') |
| 17:03:08.149 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
| 17:03:08.149 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250) |
| 17:03:08.149 | trace | yii\db\Transaction::begin | Begin transaction |
| 17:03:08.150 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:08.150 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.150 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.150 | 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 (2, 'amount', 4477, 13, 1001, 'now()', '["1400\u5143"]', '["700\u5143"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5408\u540c\u603b\u989d","d4":["700\u5143 <b>\u53d8\u4e3a<\/b> 1400\u5143"]}') |
| 17:03:08.151 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("term_id"=18) AND ("object_type"=8) AND ("object_id"=4477) ORDER BY "id" |
| 17:03:08.151 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.151 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.151 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.152 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.152 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=386 |
| 17:03:08.152 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='386' |
| 17:03:08.152 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:08.153 | 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 (2, 'costContractAmounts', 4477, 13, 1001, 'now()', '[["\u8d44\u4ea7\u5904\u7f6e\u635f\u76ca:1400\u5143"]]', '[["\u8d44\u4ea7\u5904\u7f6e\u635f\u76ca:700\u5143"]]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u4fe1\u606f","d4":["\u8d44\u4ea7\u5904\u7f6e\u635f\u76ca:700\u5143; <b>\u53d8\u4e3a<\/b> \u8d44\u4ea7\u5904\u7f6e\u635f\u76ca:1400\u5143;"]}') |
| 17:03:08.153 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=4477) AND ("term_id"=18) AND ("object_type"=8) |
| 17:03:08.153 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "object_type", "taxonomy_id", "out_amount", "value", "object_id", "extra_int") VALUES (18, 8, 386, '1400', '', 4477, 385) |
| 17:03:08.158 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=4477) |
| 17:03:08.161 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=4477) |
| 17:03:08.163 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=111) AND ("object_id"=4477) |
| 17:03:08.165 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=111) AND ("object_id"=4477) |
| 17:03:08.167 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4477 |
| 17:03:08.167 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.167 | 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; |
| 17:03:08.172 | 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 |
| 17:03:08.186 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.186 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:03:08.186 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4477 |
| 17:03:08.187 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "purchase_id"=4477 |
| 17:03:08.187 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_purchase_client_rels" ("contract_id", "client_id", "project_id") VALUES (4477, 1188, 2665) RETURNING "id" |
| 17:03:08.191 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.191 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.191 | 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\PurchaseClientRels', 4811, 'a:4:{s:2:"id";i:4811;s:11:"contract_id";i:4477;s:9:"client_id";s:4:"1188";s:10:"project_id";s:4:"2665";}', '', 1001, '221.216.117.119') |
| 17:03:08.192 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"='2665' |
| 17:03:08.194 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE "contract_id"=4477 |
| 17:03:08.194 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4477 |
| 17:03:08.194 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE 0=1 |
| 17:03:08.195 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE 0=1 |
| 17:03:08.195 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "supplier_id"=431, "amount"='1400', "handler"=1011, "updated_at"='now()', "including_tax"=TRUE WHERE "id"=4477 |
| 17:03:08.195 | 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', 4477, 'a:1:{s:6:"amount";d:1400;}', '', 1001, '221.216.117.119') |
| 17:03:08.196 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
| 17:03:08.196 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.196 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.196 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4477 |
| 17:03:08.197 | 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"=4477) AND ("t"."status" IN (2, 5)) |
| 17:03:08.197 | 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"=4477) AND ("t"."status" IN (2, 5)) AND ("is_payment_settle"=TRUE) |
| 17:03:08.198 | 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"=4477) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 17:03:08.199 | 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"=4477) AND ("t"."status" IN (2, 5)) |
| 17:03:08.199 | 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"=4477) AND ("t"."status"=1)) |
| 17:03:08.200 | 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"=4477) AND ("t"."status"=1)) |
| 17:03:08.200 | 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"=4477) AND ("t"."status"=1) |
| 17:03:08.201 | 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"=4477) AND ("t"."status" IN (1, 2, 5)) |
| 17:03:08.201 | 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"=4477) AND ("t"."status" IN (1, 2, 5)) |
| 17:03:08.201 | 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"=4477) AND ("t"."status" IN (1, 2, 5)) |
| 17:03:08.202 | 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"=4477) AND ("t"."status" IN (1, 2, 5)) |
| 17:03:08.203 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "erp_settle_amount"='100', "erp_un_settle_amount"='1300', "erp_all_settle_amount"='100' WHERE "id"=4477 |
| 17:03:08.203 | 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', 4477, 'a:1:{s:20:"erp_un_settle_amount";d:1300;}', '', 1001, '221.216.117.119') |
| 17:03:08.203 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=431 |
| 17:03:08.204 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_costs" WHERE "purchase_contract_id"=4477 |
| 17:03:08.204 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.204 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.205 | 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\ErpPurchaseCosts', 50, 'a:0:{}', '', 1001, '221.216.117.119') |
| 17:03:08.205 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4477 |
| 17:03:08.205 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.206 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.206 | 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"=4477 |
| 17:03:08.206 | 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"=4477) AND ("t"."status" IN (2, 5, 1)) |
| 17:03:08.206 | info | yii\db\Command::query | SELECT r.amount, t.wrote_date as 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"=4477) AND ("t"."status" IN (2, 5, 1)) |
| 17:03:08.207 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.207 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_erp_cash_cost_ticket_purchase_contract_settles'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 17:03:08.209 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_erp_cash_cost_ticket_purchase_contract_settles'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 17:03:08.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:03:08.221 | info | yii\db\Command::query | SELECT r.amount, t.wrote_date as 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"=4477) AND ("t"."status" IN (2, 5, 1)) |
| 17:03:08.222 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=4477) AND (amount > paid_amount) ORDER BY "remind_date" |
| 17:03:08.222 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4477 ORDER BY "id" |
| 17:03:08.223 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:08.223 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:08.223 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1188 |
| 17:03:08.231 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=1188 |
| 17:03:08.233 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=1188) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 17:03:09.163 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.163 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.163 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1188, 1005, 'now()', NULL) RETURNING "id" |
| 17:03:09.166 | 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\ClientAmChangeLogs', 199815, 'a:5:{s:2:"id";i:199815;s:9:"client_id";i:1188;s:9:"sales_rep";i:1005;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '221.216.117.119') |
| 17:03:09.166 | 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\Clients', 1188, 'a:0:{}', '', 1001, '221.216.117.119') |
| 17:03:09.166 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:09.167 | 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', 1188, 10, 4477, 13, 1001, '[4477]', '[4477]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd"]}') RETURNING "id" |
| 17:03:09.167 | 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', 640960, 'a:13:{s:2:"id";i:640960;s:9:"object_id";i:1188;s:11:"object_type";i:10;s:9:"target_id";i:4477;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4477]";s:9:"new_value";s:6:"[4477]";s:11:"description";s:168:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 17:03:09.168 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.168 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.168 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=2665 |
| 17:03:09.171 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=2665 |
| 17:03:09.172 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=2665) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 17:03:09.178 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.178 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.178 | 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\Projects', 2665, 'a:1:{s:6:"end_at";s:19:"2021-11-15 15:35:38";}', '', 1001, '221.216.117.119') |
| 17:03:09.179 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1188 |
| 17:03:09.179 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:09.180 | 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', 2665, 1, 4477, 13, 1001, '[4477]', '[4477]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd"]}') RETURNING "id" |
| 17:03:09.180 | 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', 640961, 'a:13:{s:2:"id";i:640961;s:9:"object_id";i:2665;s:11:"object_type";i:1;s:9:"target_id";i:4477;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4477]";s:9:"new_value";s:6:"[4477]";s:11:"description";s:168:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 17:03:09.180 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:09.181 | 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, 4477, 13, 1001, '[4477]', '[4477]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd"]}') RETURNING "id" |
| 17:03:09.181 | 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', 640962, 'a:13:{s:2:"id";i:640962;s:9:"object_id";i:431;s:11:"object_type";i:12;s:9:"target_id";i:4477;s:18:"target_object_type";i:13;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[4477]";s:9:"new_value";s:6:"[4477]";s:11:"description";s:168:"{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u8d39\u7528\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd"]}";s:10:"created_by";i:1001;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1001, '221.216.117.119') |
| 17:03:09.182 | 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\ErpPurchaseCosts', 50, 'a:0:{}', '', 1001, '221.216.117.119') |
| 17:03:09.183 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_purchase_cost_projects" WHERE "erp_purchase_cost_id"=50 |
| 17:03:09.185 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.185 | 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_purchase_cost_projects'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 17:03:09.188 | 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_purchase_cost_projects'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 17:03:09.201 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.201 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:03:09.201 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_purchase_cost_projects" ("client_id", "project_id", "erp_purchase_cost_id") VALUES (1188, 2665, 50) |
| 17:03:09.203 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "is_edit_verify"=TRUE WHERE "id"=4477 |
| 17:03:09.203 | 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', 4477, 'a:0:{}', '', 1001, '221.216.117.119') |
| 17:03:09.204 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
| 17:03:09.204 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("term_id"=18) AND ("object_type"=8) AND ("object_id"=4477) ORDER BY "id" |
| 17:03:09.204 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.205 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.205 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_cost_verify_rels" SET "status"=3 WHERE ("erp_purchase_cost_id"=50) AND ("status"=0) |
| 17:03:09.205 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_purchase_cost_stop_verify_rels" WHERE "erp_purchase_cost_id"=50 |
| 17:03:09.205 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_costs" SET "stop_at"='now()' WHERE "id"=50 |
| 17:03:09.206 | 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\ErpPurchaseCosts', 50, 'a:1:{s:7:"stop_at";s:5:"now()";}', '', 1001, '221.216.117.119') |
| 17:03:09.206 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=50) AND ("term_id"=18) AND ("object_type"=13) |
| 17:03:09.208 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "object_type", "taxonomy_id", "out_amount", "value", "object_id", "extra_int") VALUES (18, 13, 386, '1400', '', 50, 385) |
| 17:03:09.209 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.209 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.209 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_verify_processes" WHERE "id"=21 |
| 17:03:09.209 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE ("id"='1001') AND ("user_status"='1') ORDER BY array_position(array[1001], id) |
| 17:03:09.210 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.210 | 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_purchase_cost_stop_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 17:03:09.213 | 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_purchase_cost_stop_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 17:03:09.224 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.224 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:03:09.224 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_purchase_cost_stop_verify_rels" ("erp_purchase_cost_id", "user_id", "status") VALUES (50, 1001, 0) |
| 17:03:09.225 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_cost_stop_verify_rels" WHERE ("erp_purchase_cost_id"=50) AND ("status"=0) ORDER BY "id" |
| 17:03:09.225 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_costs" SET "status"=5, "next_stop_verify_user"=1001, "amount"='1400', "updated_at"='now()' WHERE "id"=50 |
| 17:03:09.226 | 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\ErpPurchaseCosts', 50, 'a:3:{s:6:"amount";d:1400;s:6:"status";i:5;s:21:"next_stop_verify_user";i:1001;}', '', 1001, '221.216.117.119') |
| 17:03:09.226 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250 |
| 17:03:09.227 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_cost_stop_verify_rels" WHERE ("status"=0) AND ("erp_purchase_cost_id"=50) ORDER BY "id" |
| 17:03:09.227 | 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\ErpPurchaseCosts', 50, 'a:0:{}', '', 1001, '221.216.117.119') |
| 17:03:09.227 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:09.228 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:03:09.228 | 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 (11, 'status', 50, 20022, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u7f16\u8f91\u4e86","d3":"\u8d39\u7528\u8ba2\u5355\u7533\u8bf7","d4":""}') |
| 17:03:09.228 | trace | yii\db\Transaction::commit | Commit transaction |
| 17:03:09.230 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.230 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:03:09.230 | 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/purchase-contract/save-edit-cost', '{"PurchaseContracts":{"id":"4477","supplier_id":"431","amount":"1400","handler":"1011","serial_no":"\u65b9\u5f0f\u7b2c\u4e09\u65b9\u7684\u8eab\u4efd","signed_at":"2026-05-21","description":"","including_tax":"1","contractScans":"","receiptScans":"","purchaseClientRels":[{"client_id":"1188","project_id":"2665"}],"PurchaseContractInvoices":"","costContractAmounts":[{"id":"386","amount":"1400","description":"","parent_id":"385"}]},"web_access_token":"RxNsgwK6AoRe247CZ3IJbk6VpAgcDvb0"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u91c7\u8d2d\u5408\u540c\u5df2\u88ab\u6210\u529f\u4fee\u6539","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-02 17:03:09', 1089545984) RETURNING "id" |
| 17:03:09.231 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:03:09.231 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |