| 15:20:59.257 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 15:20:59.257 | trace | yii\base\Module::getModule | Loading module: debug |
| 15:20:59.257 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 15:20:59.257 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 15:20:59.257 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 15:20:59.257 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.257 | info | time tracing start | 1780298459257988864 |
| 15:20:59.258 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 15:20:59.258 | trace | yii\web\Application::handleRequest | Route requested: 'vue/sales-contract/save-edit' |
| 15:20:59.258 | trace | yii\base\Module::getModule | Loading module: vue |
| 15:20:59.258 | info | yii\web\Session::open | Session started |
| 15:20:59.259 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=5493 |
| 15:20:59.259 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 15:20:59.260 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.260 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.260 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.260 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.261 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.261 | trace | yii\base\Controller::runAction | Route to run: vue/sales-contract/save-edit |
| 15:20:59.261 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.262 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 15:20:59.262 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\SalesContractController::actionSaveEdit() |
| 15:20:59.262 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"='8' |
| 15:20:59.263 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.263 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.263 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.263 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'project_name' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'budget' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'profit' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'profit_pct' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'project_product_version_id' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPayments' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindReceivers' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractFileList' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'contractScans' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectContactPoints' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectContactPointRels' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'serviceContractRemindDates' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesSupplierRels' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductRels' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractInvoices' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractRemindReceivers' in 'app\models\SalesContracts'. |
| 15:20:59.264 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'serviceContractRemindReceivers' in 'app\models\SalesContracts'. |
| 15:20:59.264 | info | yii\db\Command::query | SELECT "id" FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "serial_no"='2026-05-27-001' LIMIT 2 |
| 15:20:59.265 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"='1') |
| 15:20:59.266 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_contract_types" WHERE "id"='1') |
| 15:20:59.266 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"='1') |
| 15:20:59.266 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493) |
| 15:20:59.267 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493) |
| 15:20:59.267 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1) |
| 15:20:59.267 | trace | yii\db\Transaction::begin | Begin transaction |
| 15:20:59.267 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.268 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.268 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_product_types" WHERE "project_id"=1 |
| 15:20:59.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.269 | 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_project_product_types'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.273 | 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_project_product_types'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.287 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.288 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.288 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.288 | 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_product_types'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.290 | 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_product_types'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.302 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.302 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.302 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_product_types" WHERE "id"=1 |
| 15:20:59.303 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_product_types" WHERE "id"=1 |
| 15:20:59.303 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.303 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.304 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.304 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'projectProductTypes', 1, 1, 5493, 'now()', '[["\u9632\u706b\u5899:20000\u5143 60%"]]', '[["\u9632\u706b\u5899:10000\u5143 60%"]]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u91d1\u989d","d4":["\u9632\u706b\u5899:10000\u5143 60%; <b>\u53d8\u4e3a<\/b> \u9632\u706b\u5899:20000\u5143 60%;"]}') |
| 15:20:59.304 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.305 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.306 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.306 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.306 | 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_user_action_logs'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.309 | 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_user_action_logs'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.320 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'projectProductTypes', 1, 1, 5493, 'now()', '[["\u9632\u706b\u5899:20000\u5143 60%"]]', '[["\u9632\u706b\u5899:10000\u5143 60%"]]', array[5493], '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u91d1\u989d","d4":["\u9632\u706b\u5899:10000\u5143 60%; <b>\u53d8\u4e3a<\/b> \u9632\u706b\u5899:20000\u5143 60%;"]}') |
| 15:20:59.323 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "from_project"=1 |
| 15:20:59.324 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.324 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'projectProductTypes', 8, 7, 5493, 'now()', '[["\u9632\u706b\u5899:20000\u5143 60%"]]', '[["\u9632\u706b\u5899:10000\u5143 60%"]]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u5408\u540c\u91d1\u989d","d4":["\u9632\u706b\u5899:10000\u5143 60%; <b>\u53d8\u4e3a<\/b> \u9632\u706b\u5899:20000\u5143 60%;"]}') |
| 15:20:59.325 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_project_product_types" WHERE "project_id"=1 |
| 15:20:59.325 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_product_types" WHERE "id"=1 |
| 15:20:59.325 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_project_product_types" ("project_id", "product_type_id", "name", "budget", "pct", "profit") VALUES (1, 1, '防火墙', '20000', 60, '12000') |
| 15:20:59.327 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_contact_points" WHERE "project_id"=1 |
| 15:20:59.328 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_project_contact_points" WHERE "project_id"=1 |
| 15:20:59.329 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_contact_point_rels" WHERE "project_id"=1 |
| 15:20:59.330 | info | yii\db\Command::query | SELECT "id" FROM "o6a13e2c574d5a"."tbl_project_contact_point_rels" WHERE "project_id"=1 |
| 15:20:59.330 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_project_contact_point_rels" WHERE 0=1 |
| 15:20:59.330 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "project_id"=1 ORDER BY "id" |
| 15:20:59.331 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.331 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.331 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.331 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.331 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_products" WHERE "id"=1 |
| 15:20:59.332 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_products" WHERE "id"='1' |
| 15:20:59.332 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.332 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'projectProducts', 1, 1, 5493, 'now()', '[["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 2-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -"]]', '[["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 1-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -"]]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u6e05\u5355","d4":["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 1-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -; <b>\u53d8\u4e3a<\/b> \u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 2-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -;"]}') |
| 15:20:59.333 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.333 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'projectProducts', 1, 1, 5493, 'now()', '[["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 2-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -"]]', '[["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 1-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -"]]', array[5493], '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u6e05\u5355","d4":["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 1-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -; <b>\u53d8\u4e3a<\/b> \u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 2-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -;"]}') |
| 15:20:59.334 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"=8 |
| 15:20:59.334 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_orders" WHERE "sales_contract_id"=8 ORDER BY "id" DESC |
| 15:20:59.335 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.335 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.335 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.336 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'erpSalesOrderProducts', 1, 20007, 5493, 'now()', '[["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 2-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -"]]', '[["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 1-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -"]]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u6e05\u5355","d4":["\u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 1-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -; <b>\u53d8\u4e3a<\/b> \u6df1\u4fe1\u670d AF-1210-A:\u5408\u540c\u5355\u4ef7 10000\u5143 \u6570\u91cf 2-\u5143 \u5907\u6ce8:- \u4f9b\u5e94\u5546 - \u786c\u4ef6\u8d28\u4fdd - \u8f6f\u4ef6\u8d28\u4fdd - \u8fd0\u7ef4\u670d\u52a1 -;"]}') |
| 15:20:59.336 | info | yii\db\Command::query | SELECT "id" FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "project_id"=1 |
| 15:20:59.336 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "id"=2 |
| 15:20:59.337 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_project_product_rels" SET "product_id"=1, "amount"='10000', "number"=2, "supplier_id"=NULL, "hardware_from"=NULL, "software_from"=NULL, "maintenance_from"=NULL, "hardware_to"=NULL, "software_to"=NULL, "maintenance_to"=NULL, "total_amount"='20000' WHERE "id"=2 |
| 15:20:59.337 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.337 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.337 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 2, 'a:1:{s:12:"total_amount";s:5:"20000";}', '', 5493, '43.224.72.82') |
| 15:20:59.338 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE 0=1 |
| 15:20:59.339 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "budget"='20000', "profit_pct"='60', "description"='', "project_product_version_id"=NULL WHERE "id"=1 |
| 15:20:59.340 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.340 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.340 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.340 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=3 |
| 15:20:59.341 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectChangeLogs', 3, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 5493, '43.224.72.82') |
| 15:20:59.341 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_project_change_logs" ("project_id", "project_status", "budget", "profit_pct", "collected", "start_from", "end_at") VALUES (1, 3, '20000', '60', '0', 'now()', NULL) RETURNING "id" |
| 15:20:59.342 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectChangeLogs', 4, 'a:8:{s:2:"id";i:4;s:10:"project_id";i:1;s:14:"project_status";i:3;s:6:"budget";d:20000;s:10:"profit_pct";d:60;s:9:"collected";s:1:"0";s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.342 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:1:{s:6:"budget";d:20000;}', '', 5493, '43.224.72.82') |
| 15:20:59.343 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.343 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.344 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "project_id"=1 ORDER BY "id" |
| 15:20:59.345 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.345 | 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_project_product_versions'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.347 | 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_project_product_versions'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.361 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.361 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.361 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_project_product_versions" ("project_id", "created_by", "created_at") VALUES (1, 5493, '2026-06-01 15:20:59') RETURNING "id" |
| 15:20:59.364 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectProductVersions', 2, 'a:4:{s:2:"id";i:2;s:10:"project_id";i:1;s:10:"created_by";i:5493;s:10:"created_at";s:19:"2026-06-01 15:20:59";}', '', 5493, '43.224.72.82') |
| 15:20:59.364 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.365 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 1, 1, 2, 112, 5493, '[2]', '[2]', '{"d1":"97289742","d2":"\u521b\u5efa\u4e86","d3":"\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355","d4":["2026-06-01 15:20\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355"]}') RETURNING "id" |
| 15:20:59.365 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 167, 'a:13:{s:2:"id";i:167;s:9:"object_id";i:1;s:11:"object_type";i:1;s:9:"target_id";i:2;s:18:"target_object_type";i:112;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:3:"[2]";s:9:"new_value";s:3:"[2]";s:11:"description";s:173:"{"d1":"97289742","d2":"\u521b\u5efa\u4e86","d3":"\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355","d4":["2026-06-01 15:20\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355"]}";s:10:"created_by";i:5493;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.366 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "from_project"=1 |
| 15:20:59.366 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.367 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 8, 7, 1, 112, 5493, '[1]', '[1]', '{"d1":"97289742","d2":"\u521b\u5efa\u4e86","d3":"\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355","d4":["2026-06-01 15:20\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355"]}') RETURNING "id" |
| 15:20:59.367 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 168, 'a:13:{s:2:"id";i:168;s:9:"object_id";i:8;s:11:"object_type";i:7;s:9:"target_id";i:1;s:18:"target_object_type";i:112;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:3:"[1]";s:9:"new_value";s:3:"[1]";s:11:"description";s:173:"{"d1":"97289742","d2":"\u521b\u5efa\u4e86","d3":"\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355","d4":["2026-06-01 15:20\u4ea7\u54c1\u5386\u53f2\u62a5\u4ef7\u6e05\u5355"]}";s:10:"created_by";i:5493;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.368 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "project_product_version_id"=2 WHERE "id"=1 |
| 15:20:59.373 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.373 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:1:{s:26:"project_product_version_id";i:2;}', '', 5493, '43.224.72.82') |
| 15:20:59.373 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.374 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.375 | 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_project_product_version_rels'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.378 | 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_project_product_version_rels'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.392 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.393 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.393 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_project_product_version_rels" ("project_product_version_id", "product_id", "amount", "number", "total_amount", "description", "supplier_id", "hardware_from", "software_from", "maintenance_from", "hardware_to", "software_to", "maintenance_to") VALUES (2, 1, '10000', 2, '20000', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL) |
| 15:20:59.395 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.396 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "project_id"=1 ORDER BY "id" |
| 15:20:59.396 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_order_items" WHERE ("project_id"=1) AND (erp_sales_outbound_id is not null) |
| 15:20:59.397 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.397 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.398 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "is_sales_order_ready"=FALSE WHERE "id"=1 |
| 15:20:59.398 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.399 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.399 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.399 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_orders" WHERE "sales_contract_id"=8 ORDER BY "id" DESC |
| 15:20:59.400 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.400 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'number', 1, 20007, 5493, 'now()', '[2]', '["1"]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u6570\u91cf","d4":["1 <b>\u53d8\u4e3a<\/b> 2"]}'), (2, 'amount', 1, 20007, 5493, 'now()', '[20000]', '["10000"]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u91d1\u989d","d4":["10000 <b>\u53d8\u4e3a<\/b> 20000"]}') |
| 15:20:59.401 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_orders" SET "description"='', "number"='2', "amount"='20000' WHERE "id"=1 |
| 15:20:59.401 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1, 'a:1:{s:6:"amount";d:20000;}', '', 5493, '43.224.72.82') |
| 15:20:59.402 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contracts" SET "client_id"=1, "amount"='20000', "description"='', "updated_at"='now()', "contract_scan"=NULL, "receipt_scan"=NULL, "contract_type"=1, "project_id"=1, "expire_date"=NULL, "sla"='', "remind_ahead"='0 day', "expire_remind_ahead"='0 day', "including_tax"=TRUE, "is_settle"=FALSE, "is_deliver"=FALSE, "is_outbound"=TRUE, "is_verify"=TRUE, "is_draft"=TRUE WHERE "id"=8 |
| 15:20:59.402 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:3:{s:6:"amount";d:20000;s:12:"remind_ahead";s:5:"0 day";s:19:"expire_remind_ahead";s:5:"0 day";}', '', 5493, '43.224.72.82') |
| 15:20:59.403 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"='1' |
| 15:20:59.403 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"='1' |
| 15:20:59.404 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "project_id"=1 ORDER BY "id" |
| 15:20:59.404 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.404 | 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_sales_order_verify_rels'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.407 | 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_sales_order_verify_rels'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.420 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.421 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.421 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_order_verify_rels" SET "status"=3 WHERE ("erp_sales_order_id"=1) AND ("status"=0) |
| 15:20:59.421 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_erp_sales_order_stop_verify_rels" WHERE "erp_sales_order_id"=1 |
| 15:20:59.421 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_erp_sales_order_stop_products" WHERE "erp_sales_order_id"=1 |
| 15:20:59.422 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_orders" SET "stop_at"='now()' WHERE "id"=1 |
| 15:20:59.423 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1, 'a:1:{s:7:"stop_at";s:5:"now()";}', '', 5493, '43.224.72.82') |
| 15:20:59.423 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.423 | 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_sales_order_stop_products'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.426 | 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_sales_order_stop_products'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.444 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.444 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.444 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_erp_sales_order_stop_products" ("erp_sales_order_id", "erp_sales_order_product_id", "product_id", "amount", "total_amount", "number", "description", "supplier_id", "hardware_from", "software_from", "maintenance_from", "hardware_to", "software_to", "maintenance_to") VALUES (1, 1, 1, '10000', '20000', '2', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL) |
| 15:20:59.446 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.446 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.446 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_verify_processes" WHERE "id"=6 |
| 15:20:59.447 | info | yii\db\Command::execute | |
| 15:20:59.447 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_stop_verify_rels" WHERE ("erp_sales_order_id"=1) AND ("status"=0) ORDER BY "id" |
| 15:20:59.447 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.448 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_stop_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1) ORDER BY "id" |
| 15:20:59.448 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_carbon_copy_rels" WHERE "erp_sales_order_id"=1 |
| 15:20:59.448 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_verify_rels" WHERE "erp_sales_order_id"=1 ORDER BY "id" |
| 15:20:59.449 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.449 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.449 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_orders" WHERE "id"=1 |
| 15:20:59.449 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493) |
| 15:20:59.450 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (5493, '20007', 1, '97289742通过了这个审批', TRUE, 'XSDD-20260527-00001') RETURNING "id" |
| 15:20:59.453 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 52, 'a:11:{s:2:"id";i:52;s:9:"object_id";i:1;s:11:"object_type";s:5:"20007";s:6:"parent";N;s:11:"description";s:29:"97289742通过了这个审批";s:10:"created_by";i:5493;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:"XSDD-20260527-00001";}', '', 5493, '43.224.72.82') |
| 15:20:59.454 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 5493) AND (channel_id IS NOT NULL) |
| 15:20:59.455 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.455 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.462 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
| 15:20:59.462 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
| 15:20:59.462 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
| 15:20:59.462 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_orders" SET "updated_at"='now()' WHERE "id"=1 |
| 15:20:59.463 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.463 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_stop_products" WHERE "erp_sales_order_id"=1 |
| 15:20:59.463 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.463 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.463 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_products" WHERE "id"=1 |
| 15:20:59.464 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_order_products" SET "number"='2', "total_amount"='20000', "last_number"='2', "last_amount"='10000', "last_total_amount"='20000' WHERE "id"=1 |
| 15:20:59.464 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1, 'a:4:{s:6:"number";s:1:"2";s:12:"total_amount";s:5:"20000";s:11:"last_number";s:1:"2";s:17:"last_total_amount";s:5:"20000";}', '', 5493, '43.224.72.82') |
| 15:20:59.465 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.465 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_erp_sales_order_products" WHERE ("id"<>1) AND ("erp_sales_order_id"=1) |
| 15:20:59.465 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_erp_sales_order_stop_products" WHERE "erp_sales_order_id"=1 |
| 15:20:59.465 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1 |
| 15:20:59.465 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_project_product_rels" WHERE "project_id"=1 |
| 15:20:59.466 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_project_product_rels" ("project_id", "erp_sales_order_product_id", "product_id", "amount", "total_amount", "number", "description", "supplier_id", "hardware_from", "software_from", "maintenance_from", "hardware_to", "software_to", "maintenance_to") VALUES (1, 1, 1, '10000', '20000', 2, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL) |
| 15:20:59.468 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.468 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.468 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.469 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"=8 |
| 15:20:59.469 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contracts" SET "is_verify"=FALSE WHERE "id"=8 |
| 15:20:59.470 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.470 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.471 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.471 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 15:20:59.472 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5)) |
| 15:20:59.475 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:20:59.476 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status"=1)) |
| 15:20:59.477 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status"=1)) |
| 15:20:59.478 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "o6a13e2c574d5a"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status"=1)) |
| 15:20:59.478 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 15:20:59.479 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (1, 2, 5)) |
| 15:20:59.480 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (1, 2, 5)) |
| 15:20:59.480 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='20000', "erp_all_settle_amount"='0' WHERE "id"=8 |
| 15:20:59.481 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:1:{s:20:"erp_un_settle_amount";s:5:"10000";}', '', 5493, '43.224.72.82') |
| 15:20:59.482 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.482 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.483 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.484 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "collected"='0' WHERE "id"=1 |
| 15:20:59.485 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.485 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.486 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.487 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_status_logs" WHERE "project_id"=1 ORDER BY "created_at" DESC |
| 15:20:59.489 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.489 | 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_project_status_logs'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.492 | 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_project_status_logs'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.507 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.509 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.509 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"=8 |
| 15:20:59.510 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.512 | 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_contract_payment_collection_remind_dates'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.515 | 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_contract_payment_collection_remind_dates'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.527 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.527 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.527 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=8 |
| 15:20:59.528 | info | yii\db\Command::query | SELECT r.amount, t.created_at FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5, 1)) |
| 15:20:59.528 | info | yii\db\Command::query | SELECT r.amount, t.wrote_date as created_at FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5, 1)) |
| 15:20:59.528 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.529 | info | yii\db\Command::query | SELECT SUM(amount) FROM "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=8 |
| 15:20:59.530 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.530 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.530 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.531 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=8) AND (amount > paid_amount) ORDER BY "remind_date" |
| 15:20:59.531 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1 |
| 15:20:59.532 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1 |
| 15:20:59.532 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.532 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.532 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_outbounds" WHERE "id"=1 |
| 15:20:59.533 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.533 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.533 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=1 |
| 15:20:59.534 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.534 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.534 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id"=1 |
| 15:20:59.535 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1 |
| 15:20:59.535 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.535 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_project_product_rels" SET "cost"=NULL, "total_cost"=NULL WHERE "erp_sales_order_product_id"=1 |
| 15:20:59.536 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_erp_sales_orders" SET "outbound_status"=FALSE WHERE "id"=1 |
| 15:20:59.536 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.537 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contracts" SET "is_outbound"=FALSE WHERE "id"=8 |
| 15:20:59.537 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.538 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.538 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.539 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.539 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.540 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (11, 'status', 1, 20007, 5493, 'now()', '["97289742"]', '[]', '{"d1":"97289742","d2":"\u7f16\u8f91\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":""}') |
| 15:20:59.540 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "contract_type"=1 WHERE "id"=1 |
| 15:20:59.541 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.541 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.542 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.542 | info | yii\db\Command::query | SELECT "id" FROM "o6a13e2c574d5a"."tbl_sales_contract_invoices" WHERE "contract_id"=8 |
| 15:20:59.543 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contract_invoices" WHERE 0=1 |
| 15:20:59.543 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_sales_contract_invoices" WHERE 0=1 |
| 15:20:59.544 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.544 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_invoices" WHERE "project_id"=1 |
| 15:20:59.547 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contract_invoices" WHERE "contract_id"=8 |
| 15:20:59.547 | info | yii\db\Command::execute | |
| 15:20:59.547 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_orders" WHERE "sales_contract_id"=8 ORDER BY "id" DESC |
| 15:20:59.548 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1) |
| 15:20:59.548 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"=8 |
| 15:20:59.548 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.549 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.549 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493) |
| 15:20:59.550 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5493, '7', 8, TRUE, '产品出库未完成', '商机:销售线索生成20260527001;客户:逻辑测试-销售合同') RETURNING "id" |
| 15:20:59.550 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 53, 'a:11:{s:2:"id";i:53;s:9:"object_id";i:8;s:11:"object_type";s:1:"7";s:6:"parent";N;s:11:"description";s:21:"产品出库未完成";s:10:"created_by";i:5493;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:75:"商机:销售线索生成20260527001;客户:逻辑测试-销售合同";}', '', 5493, '43.224.72.82') |
| 15:20:59.551 | info | yii\db\Command::query | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 5493) AND (channel_id IS NOT NULL) |
| 15:20:59.551 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.551 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'is_outbound', 8, 7, 5493, 'now()', '["\u672a\u5b8c\u6210"]', '["\u5df2\u5b8c\u6210"]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u4ea7\u54c1\u51fa\u5e93","d4":["\u5df2\u5b8c\u6210 <b>\u53d8\u4e3a<\/b> \u672a\u5b8c\u6210"]}') |
| 15:20:59.552 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contracts" SET "is_outbound"=FALSE WHERE "id"=8 |
| 15:20:59.552 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.553 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"='1' |
| 15:20:59.553 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"='1' |
| 15:20:59.554 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_supplier_rels" WHERE "contract_id"=8 |
| 15:20:59.554 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_sales_supplier_rels" WHERE "contract_id"=8 |
| 15:20:59.555 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_purchase_client_rels" WHERE "project_id"=1 |
| 15:20:59.556 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_attachement_relationships" WHERE ("object_type"=105) AND ("object_id"=8) |
| 15:20:59.557 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.557 | 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_attachement_relationships'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.559 | 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_attachement_relationships'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.570 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.571 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.571 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_attachement_relationships" WHERE ("object_type"=105) AND ("object_id"=8) |
| 15:20:59.571 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (105, 8, 2) |
| 15:20:59.573 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contract_remind_receivers" WHERE "contract_id"=8 |
| 15:20:59.573 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_sales_contract_remind_receivers" WHERE "contract_id"=8 |
| 15:20:59.573 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=8 |
| 15:20:59.574 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.574 | 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_contract_payment_collection_remind_receivers'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 15:20:59.576 | 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_contract_payment_collection_remind_receivers'
and ns.nspname='o6a13e2c574d5a'
order by
fns.nspname, fc.relname, a.attnum |
| 15:20:59.589 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.589 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 15:20:59.589 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id"=8 |
| 15:20:59.590 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_receivers" ("contract_id", "user_id") VALUES (8, 5493) RETURNING "id" |
| 15:20:59.591 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\SalesContractPaymentCollectionRemindReceivers', 2, 'a:3:{s:2:"id";i:2;s:11:"contract_id";i:8;s:7:"user_id";s:4:"5493";}', '', 5493, '43.224.72.82') |
| 15:20:59.592 | info | yii\db\Command::query | SELECT "remind_date" FROM "o6a13e2c574d5a"."tbl_service_contract_remind_dates" WHERE "contract_id"=8 |
| 15:20:59.592 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_service_contract_remind_dates" WHERE ("contract_id"=8) AND (0=1) |
| 15:20:59.592 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_service_contract_remind_receivers" WHERE "contract_id"=8 |
| 15:20:59.593 | info | yii\db\Command::execute | DELETE FROM "o6a13e2c574d5a"."tbl_service_contract_remind_receivers" WHERE "contract_id"=8 |
| 15:20:59.593 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"=8 |
| 15:20:59.593 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"='1' |
| 15:20:59.594 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_clients" SET "updated_at"='now()' WHERE "id"=1 |
| 15:20:59.595 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_client_am_change_logs" WHERE ("client_id"=1) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.596 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.596 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.596 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1, 5493, 'now()', NULL) RETURNING "id" |
| 15:20:59.596 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 8, 'a:5:{s:2:"id";i:8;s:9:"client_id";i:1;s:9:"sales_rep";i:5493;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.597 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.597 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.598 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."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', 1, 10, 8, 7, 5493, '[8]', '[8]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-05-27-001"]}') RETURNING "id" |
| 15:20:59.598 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 173, 'a:13:{s:2:"id";i:173;s:9:"object_id";s:1:"1";s:11:"object_type";i:10;s:9:"target_id";i:8;s:18:"target_object_type";i:7;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:3:"[8]";s:9:"new_value";s:3:"[8]";s:11:"description";s:124:"{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-05-27-001"]}";s:10:"created_by";i:5493;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.598 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"='1' |
| 15:20:59.599 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "updated_at"='now()' WHERE "id"=1 |
| 15:20:59.600 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.600 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.601 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.601 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.602 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."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', 1, 1, 8, 7, 5493, '[8]', '[8]', '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-05-27-001"]}') RETURNING "id" |
| 15:20:59.602 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 174, 'a:13:{s:2:"id";i:174;s:9:"object_id";s:1:"1";s:11:"object_type";i:1;s:9:"target_id";i:8;s:18:"target_object_type";i:7;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:3:"[8]";s:9:"new_value";s:3:"[8]";s:11:"description";s:124:"{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-05-27-001"]}";s:10:"created_by";i:5493;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.602 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"='1' |
| 15:20:59.603 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_users" WHERE "id"=5493 |
| 15:20:59.603 | info | yii\db\Command::query | INSERT INTO "o6a13e2c574d5a"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (2, 'update', 1, 1, 8, 7, 5493, '8', '8', array[5493], '{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-05-27-001"]}') RETURNING "id" |
| 15:20:59.605 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 18, 'a:15:{s:2:"id";i:18;s:9:"object_id";s:1:"1";s:11:"object_type";i:1;s:9:"target_id";i:8;s:18:"target_object_type";i:7;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:1:"8";s:9:"new_value";s:1:"8";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[5493]";s:6:"params";a:0:{}}s:11:"description";s:124:"{"d1":"97289742","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:2026-05-27-001"]}";s:10:"created_by";i:5493;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 5493, '43.224.72.82') |
| 15:20:59.605 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) |
| 15:20:59.606 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5)) |
| 15:20:59.606 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5)) AND ("t"."is_payment_settle"=TRUE) |
| 15:20:59.607 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status"=1)) |
| 15:20:59.607 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status"=1)) |
| 15:20:59.608 | info | yii\db\Command::query | SELECT EXISTS(SELECT "r".* FROM "o6a13e2c574d5a"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status"=1)) |
| 15:20:59.608 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (1, 2, 5)) |
| 15:20:59.609 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (1, 2, 5)) |
| 15:20:59.609 | info | yii\db\Command::query | SELECT SUM(r.amount) FROM "o6a13e2c574d5a"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (1, 2, 5)) |
| 15:20:59.610 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contracts" SET "erp_settle_amount"='0', "erp_un_settle_amount"='20000', "erp_all_settle_amount"='0' WHERE "id"=8 |
| 15:20:59.610 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.610 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.611 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.611 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.612 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_projects" SET "collected"='0' WHERE "id"=1 |
| 15:20:59.613 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.613 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.614 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.614 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_status_logs" WHERE "project_id"=1 ORDER BY "created_at" DESC |
| 15:20:59.614 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contracts" WHERE "id"=8 |
| 15:20:59.615 | info | yii\db\Command::execute | UPDATE "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=8 |
| 15:20:59.615 | info | yii\db\Command::query | SELECT r.amount, t.created_at FROM "o6a13e2c574d5a"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5, 1)) |
| 15:20:59.616 | info | yii\db\Command::query | SELECT r.amount, t.wrote_date as created_at FROM "o6a13e2c574d5a"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "o6a13e2c574d5a"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE ("r"."sales_contract_id"=8) AND ("t"."status" IN (2, 5, 1)) |
| 15:20:59.616 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.616 | info | yii\db\Command::query | SELECT SUM(amount) FROM "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=8 |
| 15:20:59.617 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_project_change_logs" WHERE ("project_id"=1) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
| 15:20:59.617 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 1, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.618 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.618 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=8) AND (amount > paid_amount) ORDER BY "remind_date" |
| 15:20:59.619 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_attachement_relationships" WHERE ("object_id"=8) AND ("object_type"=106)) |
| 15:20:59.619 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_attachement_relationships" WHERE ("object_id"=8) AND ("object_type"=107)) |
| 15:20:59.619 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "o6a13e2c574d5a"."tbl_attachement_relationships" WHERE ("object_id"=8) AND ("object_type"=105)) |
| 15:20:59.619 | info | yii\db\Command::execute | INSERT INTO "o6a13e2c574d5a"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 8, 'a:0:{}', '', 5493, '43.224.72.82') |
| 15:20:59.620 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_clients" WHERE "id"=1 |
| 15:20:59.620 | info | yii\db\Command::query | SELECT * FROM "o6a13e2c574d5a"."tbl_projects" WHERE "id"=1 |
| 15:20:59.621 | trace | yii\db\Transaction::commit | Commit transaction |
| 15:20:59.621 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.622 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 15:20:59.622 | 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, 'o6a13e2c574d5a', 5493, 5, 'vue/sales-contract/save-edit', '{"SalesContracts":{"id":"8","client_id":"1","project_id":"1","project_name":"\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001","amount":"10000","contract_scan":"","receipt_scan":"","contract_type":"1","serial_no":"2026-05-27-001","signed_at":"2026-05-27","budget":"10000","profit":"12000","profit_pct":"60.00","description":"","expire_date":"","expire_remind_ahead":"","project_product_version_id":"","salesContractPayments":{"new":[""]},"salesContractPaymentCollectionRemindDates":{"2026-05-29":"10000"},"payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["5493"],"sla":"","including_tax":"1","remind_ahead":"","contractFileList":{"2":"\u91d1\u7545\u900d\u4f7f\u7528\u6d41\u7a0b\u56fe.pdf"},"contractScans":["2"],"is_draft":"1","is_settle":"0","is_deliver":"0","is_outbound":"1","client_name":"\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","projectContactPoints":"","projectContactPointRels":"","serviceContractRemindDates":"","salesSupplierRels":"","projectProductRels":{"2":{"product_id":"1","amount":"10000","total_amount":"20000","number":"2","description":"","hardware_from":"","hardware_to":"","maintenance_from":"","maintenance_to":"","software_from":"","software_to":"","supplier_id":""}},"salesContractInvoices":"","projectProductTypes":{"1":{"budget":"20000","profit":"12000","pct":"60"}},"salesContractRemindReceivers":"","serviceContractRemindReceivers":""},"web_access_token":"YwFaPh8a1dbQrFwOp6grZ7RlSTuMSejO"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u9500\u552e\u5408\u540c\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0,"ip":"43.224.72.82","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-01 15:20:59', 364152064) RETURNING "id" |
| 15:20:59.623 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 15:20:59.623 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |