16:24:28.420 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
16:24:28.420 | trace | yii\base\Module::getModule | Loading module: debug |
16:24:28.420 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
16:24:28.420 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
16:24:28.420 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
16:24:28.420 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.421 | trace | yii\base\Module::getModule | Loading module: gii |
16:24:28.421 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
16:24:28.421 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
16:24:28.421 | trace | yii\web\Application::handleRequest | Route requested: 'vue/purchase-contract/save-edit' |
16:24:28.421 | trace | yii\base\Module::getModule | Loading module: vue |
16:24:28.421 | info | yii\web\Session::open | Session started |
16:24:28.422 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
16:24:28.422 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
16:24:28.426 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.426 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.426 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.427 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.427 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:24:28.429 | trace | yii\base\Controller::runAction | Route to run: vue/purchase-contract/save-edit |
16:24:28.429 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.430 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
16:24:28.430 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\PurchaseContractController::actionSaveEdit() |
16:24:28.430 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4141' |
16:24:28.431 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.431 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.431 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.431 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'product_number' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'product_amount' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseContractProductRels' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractScans' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'receiptScans' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseClientRels' in 'app\models\PurchaseContracts'. |
16:24:28.432 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'PurchaseContractInvoices' in 'app\models\PurchaseContracts'. |
16:24:28.433 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "serial_no"='而特热舞' LIMIT 2 |
16:24:28.434 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431') |
16:24:28.434 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1011') |
16:24:28.435 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
16:24:28.435 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.435 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.435 | 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', 4141, 13, 1001, 'now()', '["6868\u5143"]', '["3434\u5143"]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5408\u540c\u603b\u989d","d4":["3434\u5143 <b>\u53d8\u4e3a<\/b> 6868\u5143"]}') |
16:24:28.437 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=4141) |
16:24:28.439 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=108) AND ("object_id"=4141) |
16:24:28.441 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=111) AND ("object_id"=4141) |
16:24:28.443 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=111) AND ("object_id"=4141) |
16:24:28.445 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4141 |
16:24:28.445 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.445 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.445 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4141 |
16:24:28.447 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "purchase_id"=4141 |
16:24:28.452 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_purchase_client_rels" ("contract_id", "client_id", "project_id") VALUES (4141, 1661, 1791) RETURNING "id" |
16:24:28.456 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.456 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.456 | 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', 3804, 'a:4:{s:2:"id";i:3804;s:11:"contract_id";i:4141;s:9:"client_id";s:4:"1661";s:10:"project_id";s:4:"1791";}', '', 1001, '114.246.237.213') |
16:24:28.457 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"='1791' |
16:24:28.458 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.459 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.459 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.459 | 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_sales_supplier_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:24:28.463 | 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_sales_supplier_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:24:28.468 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.468 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:24:28.468 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_sales_supplier_rels" ("contract_id", "supplier_id", "purchase_id") VALUES (1558, 431, 4141) RETURNING "id" |
16:24:28.474 | 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\SalesSupplierRels', 3208, 'a:4:{s:2:"id";i:3208;s:11:"contract_id";i:1558;s:11:"supplier_id";s:3:"431";s:11:"purchase_id";i:4141;}', '', 1001, '114.246.237.213') |
16:24:28.475 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE "contract_id"=4141 |
16:24:28.476 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4141 |
16:24:28.476 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE 0=1 |
16:24:28.477 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_invoices" WHERE 0=1 |
16:24:28.477 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "supplier_id"=431, "contract_type"=1, "amount"='6868', "handler"=1011, "updated_at"='now()', "including_tax"=TRUE, "is_draft"=FALSE WHERE "id"=4141 |
16:24:28.478 | 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:2:{s:6:"amount";s:4:"6868";s:8:"is_draft";s:1:"0";}', '', 1001, '114.246.237.213') |
16:24:28.479 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
16:24:28.479 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.479 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.479 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_product_rels" WHERE "purchase_contract_id"=4141 |
16:24:28.480 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.480 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.480 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.480 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.480 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1040 |
16:24:28.481 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"='1040' |
16:24:28.481 | 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, 'purchaseContractProductRels', 4141, 13, 1001, 'now()', '[["\u5b81\u76fe\u4ee4\u724c\u8f6f\u4ef6V1.0:\u6570\u91cf 2 \u91d1\u989d 3434\u5143"]]', '[["\u5b81\u76fe\u4ee4\u724c\u8f6f\u4ef6V1.0:\u6570\u91cf 1 \u91d1\u989d 3434\u5143"]]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u660e\u7ec6","d4":["\u5b81\u76fe\u4ee4\u724c\u8f6f\u4ef6V1.0:\u6570\u91cf 1 \u91d1\u989d 3434\u5143; <b>\u53d8\u4e3a<\/b> \u5b81\u76fe\u4ee4\u724c\u8f6f\u4ef6V1.0:\u6570\u91cf 2 \u91d1\u989d 3434\u5143;"]}') |
16:24:28.482 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_purchase_contract_product_rels" WHERE "purchase_contract_id"=4141 |
16:24:28.482 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_product_rels" WHERE "id"=96 |
16:24:28.483 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contract_product_rels" SET "product_id"=1040, "number"='2', "total_amount"='6868.00' WHERE "id"=96 |
16:24:28.483 | 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\PurchaseContractProductRels', 96, 'a:2:{s:6:"number";s:1:"2";s:12:"total_amount";s:7:"6868.00";}', '', 1001, '114.246.237.213') |
16:24:28.484 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_purchase_contract_product_rels" WHERE 0=1 |
16:24:28.484 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
16:24:28.485 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=4141 ORDER BY "id" |
16:24:28.485 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.486 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.486 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
16:24:28.512 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=1661 |
16:24:28.514 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=1661) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
16:24:28.536 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.536 | 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_client_am_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:24:28.539 | 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_client_am_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:24:28.543 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.543 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:24:28.543 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1661, 1001, 'now()', NULL) RETURNING "id" |
16:24:28.548 | 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', 180870, 'a:5:{s:2:"id";i:180870;s:9:"client_id";i:1661;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '114.246.237.213') |
16:24:28.549 | 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', 1661, 'a:0:{}', '', 1001, '114.246.237.213') |
16:24:28.550 | 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" |
16:24:28.551 | 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', 565463, 'a:13:{s:2:"id";i:565463;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') |
16:24:28.552 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.552 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.552 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=1791 |
16:24:28.554 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=1791 |
16:24:28.555 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=1791) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
16:24:28.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.561 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.561 | 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', 1791, 'a:1:{s:6:"end_at";s:19:"2021-04-19 22:25:38";}', '', 1001, '114.246.237.213') |
16:24:28.562 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
16:24:28.562 | 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" |
16:24:28.563 | 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', 565464, 'a:13:{s:2:"id";i:565464;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') |
16:24:28.564 | 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" |
16:24:28.565 | 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', 565465, 'a:13:{s:2:"id";i:565465;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') |
16:24:28.566 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "purchase_contract_id"=4141 |
16:24:28.567 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.567 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.567 | 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\ErpPurchaseOrders', 2044, 'a:0:{}', '', 1001, '114.246.237.213') |
16:24:28.568 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_purchase_order_projects" WHERE "erp_purchase_order_id"=2044 |
16:24:28.569 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.569 | 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_order_projects'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:24:28.572 | 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_order_projects'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:24:28.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.576 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:24:28.576 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_purchase_order_projects" ("client_id", "project_id", "erp_purchase_order_id") VALUES (1661, 1791, 2044) |
16:24:28.579 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "is_verify"=TRUE WHERE "id"=4141 |
16:24:28.580 | 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') |
16:24:28.581 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431' |
16:24:28.582 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contract_product_rels" WHERE "purchase_contract_id"=4141 |
16:24:28.582 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_orders" SET "number"='2', "amount"='6868' WHERE "id"=2044 |
16:24:28.583 | 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\ErpPurchaseOrders', 2044, 'a:1:{s:6:"amount";d:6868;}', '', 1001, '114.246.237.213') |
16:24:28.584 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.584 | 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_order_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:24:28.586 | 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_order_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:24:28.590 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.590 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:24:28.590 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_order_verify_rels" SET "status"=3 WHERE ("erp_purchase_order_id"=2044) AND ("status"=0) |
16:24:28.591 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_purchase_order_stop_verify_rels" WHERE "erp_purchase_order_id"=2044 |
16:24:28.591 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_purchase_order_stop_products" WHERE "erp_purchase_order_id"=2044 |
16:24:28.592 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_orders" SET "stop_at"='now()' WHERE "id"=2044 |
16:24:28.592 | 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\ErpPurchaseOrders', 2044, 'a:1:{s:7:"stop_at";s:5:"now()";}', '', 1001, '114.246.237.213') |
16:24:28.593 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.593 | 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_order_stop_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:24:28.596 | 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_order_stop_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:24:28.600 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.600 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:24:28.600 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_purchase_order_stop_products" ("erp_purchase_order_id", "erp_purchase_order_product_id", "product_id", "erp_store_id", "amount", "total_amount", "number", "description") VALUES (2044, 67, 1040, NULL, '3434', '6868.00', '2', '') |
16:24:28.602 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.602 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.602 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_verify_processes" WHERE "id"=1 |
16:24:28.603 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE ("id"='1011') AND ("user_status"='1') ORDER BY array_position(array[1011], id) |
16:24:28.603 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.603 | 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_order_stop_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:24:28.606 | 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_order_stop_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:24:28.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.610 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:24:28.610 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_purchase_order_stop_verify_rels" ("erp_purchase_order_id", "user_id", "status") VALUES (2044, 1011, 0) |
16:24:28.611 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_stop_verify_rels" WHERE ("erp_purchase_order_id"=2044) AND ("status"=0) ORDER BY "id" |
16:24:28.612 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_orders" SET "status"=5, "next_stop_verify_user"=1011, "updated_at"='now()' WHERE "id"=2044 |
16:24:28.613 | 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\ErpPurchaseOrders', 2044, 'a:1:{s:6:"status";i:5;}', '', 1001, '114.246.237.213') |
16:24:28.614 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:24:28.614 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_stop_verify_rels" WHERE ("status"=0) AND ("erp_purchase_order_id"=2044) ORDER BY "id" |
16:24:28.614 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_stop_verify_rels" WHERE ("status"=0) AND ("erp_purchase_order_id"=2044) ORDER BY "id" |
16:24:28.615 | 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\ErpPurchaseOrders', 2044, 'a:0:{}', '', 1001, '114.246.237.213') |
16:24:28.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.616 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.616 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"=2044 |
16:24:28.616 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
16:24:28.617 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1001, '20001', 2044, '刘人诚 有一个采购订单需要审批', TRUE, 'CGDD-20250912-00001') RETURNING "id" |
16:24:28.618 | 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', 191375, 'a:11:{s:2:"id";i:191375;s:9:"object_id";i:2044;s:11:"object_type";s:5:"20001";s:6:"parent";N;s:11:"description";s:43:"刘人诚 有一个采购订单需要审批";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:19:"CGDD-20250912-00001";}', '', 1001, '114.246.237.213') |
16:24:28.619 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.619 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.619 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (2044, '20001', 191375, 1011) |
16:24:28.620 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1011) AND ("id" != 1001) AND (channel_id IS NOT NULL) |
16:24:28.621 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:24:28.622 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
16:24:28.622 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
16:24:28.622 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
16:24:28.622 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=431 |
16:24:28.622 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
16:24:28.623 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
16:24:28.623 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
16:24:28.623 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
16:24:28.623 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:24:28.623 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:24:28.624 | 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', 2044, 20001, 1001, 'now()', '["\u5218\u4eba\u8bda"]', '[]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u7f16\u8f91\u4e86","d3":"\u91c7\u8d2d\u8ba2\u5355\u7533\u8bf7","d4":""}') |
16:24:28.624 | 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\ErpPurchaseOrders', 2044, 'a:0:{}', '', 1001, '114.246.237.213') |
16:24:28.625 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "erp_purchase_order_id"=2044 |
16:24:28.626 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.626 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.626 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_order_product_id"=67 |
16:24:28.626 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.627 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.627 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id" IN (36, 37, 35) |
16:24:28.627 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.628 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.628 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_order_products" SET "into_inventory"='1' WHERE "id"=67 |
16:24:28.629 | 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\ErpPurchaseOrderProducts', 67, 'a:0:{}', '', 1001, '114.246.237.213') |
16:24:28.629 | 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\ErpPurchaseOrders', 2044, 'a:0:{}', '', 1001, '114.246.237.213') |
16:24:28.630 | 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)) |
16:24:28.631 | 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)) |
16:24:28.632 | 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) |
16:24:28.633 | 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)) |
16:24:28.634 | 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)) |
16:24:28.634 | 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)) |
16:24:28.635 | 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) |
16:24:28.635 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_purchase_contracts" SET "erp_settle_amount"='44', "erp_un_settle_amount"='6824' WHERE "id"=4141 |
16:24:28.636 | 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:1:{s:20:"erp_un_settle_amount";i:6824;}', '', 1001, '114.246.237.213') |
16:24:28.637 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=431 |
16:24:28.637 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_costs" WHERE "purchase_contract_id"=4141 |
16:24:28.638 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=4141 |
16:24:28.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.638 | 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 |
16:24:28.639 | 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)) |
16:24:28.639 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.639 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.639 | 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)) |
16:24:28.640 | 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)) |
16:24:28.640 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.640 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.641 | 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" |
16:24:28.641 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.641 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:24:28.641 | 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/purchase-contract/save-edit', '{"PurchaseContracts":{"id":"4141","supplier_id":"431","is_draft":"0","amount":"6868","handler":"1011","contract_type":"1","serial_no":"\u800c\u7279\u70ed\u821e","signed_at":"2025-09-12","description":"","including_tax":"1","product_number":"2","product_amount":"6868","purchaseContractProductRels":{"96":{"product_id":"1040","number":"2","amount":"3434","total_amount":"6868.00","erp_store_id":"","description":""}},"contractScans":"","receiptScans":"","purchaseClientRels":[{"client_id":"1661","project_id":"1791"}],"PurchaseContractInvoices":""},"web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u91c7\u8d2d\u5408\u540c\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0}', FALSE, '2025-09-15 16:24:28') RETURNING "id" |
16:24:28.643 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:24:28.643 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |