17:06:04.203 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
17:06:04.203 | trace | yii\base\Module::getModule | Loading module: debug |
17:06:04.203 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
17:06:04.204 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
17:06:04.204 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
17:06:04.204 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.204 | trace | yii\base\Module::getModule | Loading module: gii |
17:06:04.204 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
17:06:04.204 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
17:06:04.204 | trace | yii\web\Application::handleRequest | Route requested: 'vue/project/save-edit' |
17:06:04.204 | trace | yii\base\Module::getModule | Loading module: vue |
17:06:04.207 | info | yii\web\Session::open | Session started |
17:06:04.208 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
17:06:04.208 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
17:06:04.213 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.213 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.213 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.214 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.214 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:06:04.216 | trace | yii\base\Controller::runAction | Route to run: vue/project/save-edit |
17:06:04.216 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.218 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
17:06:04.218 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ProjectController::actionSaveEdit() |
17:06:04.219 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3854' |
17:06:04.220 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.220 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.220 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'payment_collection_remind_ahead' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindReceivers' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesContractPaymentCollectionRemindDates' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'profit' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'from_contact_name' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'salesForecast' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'purchaseType' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'opportunityFrom' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectArchitects' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectRemindReceivers' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductRels' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectContactPoints' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectContactPointRels' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectUsedClient' in 'app\models\Projects'. |
17:06:04.222 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'projectProductTypes' in 'app\models\Projects'. |
17:06:04.224 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3854 |
17:06:04.225 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (1, 165, 142, 197, 199, 377, 349)) ORDER BY "sort" |
17:06:04.226 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.226 | 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_term_taxonomies'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:06:04.239 | 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_term_taxonomies'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:06:04.244 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.244 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:06:04.252 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"='2128') AND ("project_title"='壹进制备份二期') AND ("id" != 3854)) |
17:06:04.254 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1') |
17:06:04.254 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2128') |
17:06:04.256 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"='5') |
17:06:04.256 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"='3') |
17:06:04.257 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
17:06:04.259 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3854) |
17:06:04.260 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:06:04.262 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3854 |
17:06:04.263 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.263 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.263 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3854 |
17:06:04.266 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.266 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.266 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=7 |
17:06:04.266 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_project_product_types" ("project_id", "product_type_id", "name", "budget", "pct", "profit") VALUES (3854, 7, '软件', '1150000', 100, '1150000') |
17:06:04.269 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3854 |
17:06:04.270 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.270 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.271 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.272 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.272 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1040 |
17:06:04.273 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_product_units" WHERE "id"=2 |
17:06:04.274 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.274 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.274 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"='1040' |
17:06:04.274 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_product_units" WHERE "id"=2 |
17:06:04.274 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3854 |
17:06:04.275 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "id"=10731 |
17:06:04.276 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_product_rels" SET "product_id"=1040, "number"=1, "supplier_id"=NULL, "hardware_from"=NULL, "software_from"=NULL, "maintenance_from"=NULL, "hardware_to"=NULL, "software_to"=NULL, "maintenance_to"=NULL WHERE "id"=10731 |
17:06:04.279 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.279 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.279 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 10731, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.281 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_product_rels" WHERE 0=1 |
17:06:04.282 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id"=3854 |
17:06:04.283 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id"=3854 |
17:06:04.284 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE "project_id"=3854 |
17:06:04.285 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE "project_id"=3854 |
17:06:04.286 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE 0=1 |
17:06:04.287 | info | yii\db\Command::execute | |
17:06:04.288 | info | yii\db\Command::execute | |
17:06:04.326 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "client_id"=2128, "project_progress"=5, "budget"='1150000', "profit_pct"='100', "updated_at"='now()', "status_updated_at"='now()', "contract_type"=1, "end_at"='now()', "from_contact"=NULL, "project_product_version_id"=1011, "change_status_to"=3 WHERE "id"=3854 |
17:06:04.329 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3854) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:06:04.332 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.332 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.332 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3854, 'a:2:{s:6:"end_at";s:19:"1970-01-01 08:00:00";s:16:"change_status_to";i:3;}', '', 1001, '114.244.128.96') |
17:06:04.333 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2128' |
17:06:04.334 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.334 | 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_clients'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:06:04.339 | 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_clients'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:06:04.345 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.345 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:06:04.345 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:06:04.346 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3854 |
17:06:04.347 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.347 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.347 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3854 |
17:06:04.348 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_project_architects" ("project_id", "engineer_id", "contribution", "created_by") VALUES (3854, 1015, '1', 1001) |
17:06:04.353 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3854 |
17:06:04.353 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (1, 165, 142, 197, 199, 377, 349)) ORDER BY "sort" |
17:06:04.354 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=165 |
17:06:04.354 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='165' |
17:06:04.355 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3854) AND ("term_id"=9) |
17:06:04.356 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.356 | 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_term_taxonomy_relationships'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:06:04.359 | 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_term_taxonomy_relationships'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:06:04.364 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.364 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:06:04.364 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (9, 165, 3854) |
17:06:04.372 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"=142 |
17:06:04.373 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='142' |
17:06:04.373 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3854) AND ("term_id"=13) |
17:06:04.374 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 142, 3854) |
17:06:04.376 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3854 |
17:06:04.376 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.377 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.377 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3854 |
17:06:04.378 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_project_remind_receivers" ("project_id", "user_id") VALUES (3854, 1001) RETURNING "id" |
17:06:04.382 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectRemindReceivers', 1781, 'a:3:{s:2:"id";i:1781;s:10:"project_id";i:3854;s:7:"user_id";s:4:"1001";}', '', 1001, '114.244.128.96') |
17:06:04.384 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3854 |
17:06:04.386 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "project_id"=3854 |
17:06:04.386 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.387 | 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_used_clients'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:06:04.390 | 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_used_clients'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:06:04.393 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.394 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:06:04.394 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_used_clients" SET "used_client"=NULL, "budget"=NULL, "profit"=NULL, "profit_pct"=NULL WHERE "id"=187 |
17:06:04.395 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectUsedClients', 187, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.396 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectUsedClients', 187, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.397 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_receivers" WHERE "project_used_client_id"=187 |
17:06:04.398 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_receivers" WHERE "project_used_client_id"=187 |
17:06:04.399 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=187 |
17:06:04.399 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=187 |
17:06:04.400 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE "project_used_client_id"=187 |
17:06:04.400 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE "project_used_client_id"=187 |
17:06:04.401 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE 0=1 |
17:06:04.401 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "id"=187 |
17:06:04.401 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.401 | 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_used_client_payments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:06:04.404 | 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_used_client_payments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:06:04.408 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.409 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:06:04.409 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_used_client_payments" SET "paid_amount"='0' WHERE "project_used_client_id"=187 |
17:06:04.409 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.409 | 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_used_client_payment_collection_remind_dates'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:06:04.412 | 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_used_client_payment_collection_remind_dates'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:06:04.415 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.415 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
17:06:04.415 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "project_used_client_id"=187 |
17:06:04.416 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=187 |
17:06:04.416 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectUsedClients', 187, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.417 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE ("project_used_client_id"=187) AND (amount > paid_amount) ORDER BY "collected_date", "created_at" |
17:06:04.418 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE "project_used_client_id"=187 |
17:06:04.419 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE "project_used_client_id"=187 |
17:06:04.419 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE 0=1 |
17:06:04.419 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2128' |
17:06:04.420 | info | yii\db\Command::query | SELECT COUNT(*) FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01 00:00:00') AND ("bargain_date" <= '2025-12-31 23:59:59') AND ("client_id"=2128) |
17:06:04.422 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2128) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:06:04.446 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.446 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.446 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2128, 1001, 'now()', NULL) RETURNING "id" |
17:06:04.449 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 180888, 'a:5:{s:2:"id";i:180888;s:9:"client_id";i:2128;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1001, '114.244.128.96') |
17:06:04.450 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 2128, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.455 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
17:06:04.455 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
17:06:04.456 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
17:06:04.456 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: INCR |
17:06:04.457 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: HSET |
17:06:04.457 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: LPUSH |
17:06:04.457 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3854 |
17:06:04.457 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3854) |
17:06:04.459 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_projects" SET "is_verify"=TRUE WHERE "id"=3854 |
17:06:04.460 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3854) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:06:04.461 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3854, 'a:1:{s:6:"end_at";s:19:"2025-09-16 17:06:04";}', '', 1001, '114.244.128.96') |
17:06:04.462 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2128 |
17:06:04.463 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3854 |
17:06:04.463 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("created_at" >= '2025-09-16 00:00:00') AND ("created_at" <= '2025-09-16 23:59:59') AND ("serial_no" ILIKE '%XSDD-20250916-%') AND (LENGTH(serial_no) = 19) ORDER BY "serial_no" DESC |
17:06:04.467 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.467 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.468 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.468 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.468 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_verify_processes" WHERE "id"=6 |
17:06:04.469 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE ("id"='1001') AND ("user_status"='1') ORDER BY array_position(array[1001], id) |
17:06:04.470 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_orders" ("serial_no", "handler", "created_by", "amount", "wrote_date", "created_at", "verify_type", "status", "client_id", "project_id", "description", "extra", "outbound_status") VALUES ('XSDD-20250916-00001', 1001, 1001, '1150000', '2025-09-10', 'now()', 2, 1, 2128, 3854, '', '{"payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["1001"],"salesContractPaymentCollectionRemindDates":null}', FALSE) RETURNING "id" |
17:06:04.474 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOrders', 1587, 'a:36:{s:2:"id";i:1587;s:9:"serial_no";s:19:"XSDD-20250916-00001";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-09-10";s:7:"handler";i:1001;s:9:"client_id";i:2128;s:20:"purchase_contract_id";N;s:10:"project_id";i:3854;s:17:"sales_contract_id";N;s:12:"erp_store_id";N;s:6:"status";i:1;s:16:"erp_send_type_id";N;s:8:"abstract";N;s:11:"description";s:0:"";s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:23:"next_cancel_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:9:"cancel_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";N;s:7:"is_done";N;s:6:"number";N;s:6:"amount";s:7:"1150000";s:10:"created_by";i:1001;s:16:"stop_description";N;s:5:"extra";s:149:"{"payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["1001"],"salesContractPaymentCollectionRemindDates":null}";s:15:"outbound_status";b:0;s:7:"is_used";N;s:9:"is_cancel";N;s:9:"is_settle";N;s:6:"is_old";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;}', '', 1001, '114.244.128.96') |
17:06:04.476 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE "erp_sales_order_id"=1587 |
17:06:04.476 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.476 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.476 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_sales_order_verify_rels" ("erp_sales_order_id", "user_id", "status") VALUES (1587, 1001, 0) |
17:06:04.479 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1587) ORDER BY "id" |
17:06:04.479 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "amount"='0', "number"='0', "next_verify_user"=1001 WHERE "id"=1587 |
17:06:04.480 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1587, 'a:2:{s:6:"amount";i:0;s:6:"number";i:0;}', '', 1001, '114.244.128.96') |
17:06:04.481 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1587 |
17:06:04.481 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:06:04.482 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1587) ORDER BY "id" |
17:06:04.482 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1587) ORDER BY "id" |
17:06:04.483 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
17:06:04.483 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.484 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.484 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 1587, 20007, 1001, '2025-09-16 17:06:04', '{"id":1587,"serial_no":"XSDD-20250916-00001","from_date":null,"wrote_date":"2025-09-10","handler":1001,"client_id":2128,"purchase_contract_id":null,"project_id":3854,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":1001,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"1001\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-16 17:06:04","updated_at":"2025-09-16 17:06:04"}', '{"id":1587,"serial_no":"XSDD-20250916-00001","from_date":null,"wrote_date":"2025-09-10","handler":1001,"client_id":2128,"purchase_contract_id":null,"project_id":3854,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":1001,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"1001\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-16 17:06:04","updated_at":"2025-09-16 17:06:04"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
17:06:04.490 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 570603, 'a:13:{s:2:"id";i:570603;s:9:"object_id";i:1587;s:11:"object_type";i:20007;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:892:"{"id":1587,"serial_no":"XSDD-20250916-00001","from_date":null,"wrote_date":"2025-09-10","handler":1001,"client_id":2128,"purchase_contract_id":null,"project_id":3854,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":1001,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"1001\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-16 17:06:04","updated_at":"2025-09-16 17:06:04"}";s:9:"new_value";s:892:"{"id":1587,"serial_no":"XSDD-20250916-00001","from_date":null,"wrote_date":"2025-09-10","handler":1001,"client_id":2128,"purchase_contract_id":null,"project_id":3854,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":"","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":1001,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"1001\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-16 17:06:04","updated_at":"2025-09-16 17:06:04"}";s:11:"description";s:105:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-09-16 17:06:04";s:9:"is_delete";N;}', '', 1001, '114.244.128.96') |
17:06:04.493 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3854 |
17:06:04.494 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.494 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.494 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_order_products" ("erp_sales_order_id", "product_id", "number", "amount", "total_amount", "description", "cost", "total_cost", "supplier_id", "hardware_from", "software_from", "maintenance_from", "hardware_to", "software_to", "maintenance_to") VALUES (1587, 1040, '1', '1150000.00', '1150000', '', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id" |
17:06:04.498 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOrderProducts', 1879, 'a:21:{s:2:"id";i:1879;s:18:"erp_sales_order_id";i:1587;s:12:"erp_store_id";N;s:10:"product_id";i:1040;s:11:"description";s:0:"";s:6:"number";i:1;s:8:"outbound";N;s:6:"amount";s:10:"1150000.00";s:12:"total_amount";s:7:"1150000";s:11:"last_number";N;s:11:"last_amount";N;s:17:"last_total_amount";N;s:4:"cost";s:1:"0";s:10:"total_cost";s:1:"0";s:11:"supplier_id";N;s:13:"hardware_from";N;s:13:"software_from";N;s:16:"maintenance_from";N;s:11:"hardware_to";N;s:11:"software_to";N;s:14:"maintenance_to";N;}', '', 1001, '114.244.128.96') |
17:06:04.502 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_product_rels" SET "erp_sales_order_product_id"=1879 WHERE "id"=10731 |
17:06:04.504 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 10731, 'a:1:{s:26:"erp_sales_order_product_id";i:1879;}', '', 1001, '114.244.128.96') |
17:06:04.505 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "amount"='1150000', "number"='1' WHERE "id"=1587 |
17:06:04.506 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1587, 'a:2:{s:6:"amount";i:1150000;s:6:"number";i:0;}', '', 1001, '114.244.128.96') |
17:06:04.507 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1587 |
17:06:04.509 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1879 |
17:06:04.513 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='0' WHERE "id"=1879 |
17:06:04.514 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1879, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.515 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "is_used"=FALSE WHERE "id"=1587 |
17:06:04.516 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1587, 'a:0:{}', '', 1001, '114.244.128.96') |
17:06:04.518 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
17:06:04.519 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.519 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
17:06:04.519 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/project/save-edit', '{"Projects":{"id":"3854","payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["1001"],"salesContractPaymentCollectionRemindDates":"","client_name":"\u5317\u4eac\u81ea\u52a8\u5316\u63a7\u5236\u8bbe\u5907\u7814\u7a76\u624033\u6240","client_id":"2128","project_status":"3","project_progress":"5","profit":"1150000","profit_pct":"100","bargain_date":"2025-09-10","project_title":"\u58f9\u8fdb\u5236\u5907\u4efd\u4e8c\u671f","from_contact_name":"","from_contact":"","salesForecast":"142","purchaseType":"165","opportunityFrom":"","contract_type":"1","projectArchitects":{"1015":"1"},"comment":"\u4e8c\u671f\u6269\u5bb9","projectRemindReceivers":["1001"],"project_product_version_id":"1011","projectProductRels":{"10731":{"product_id":"1040","amount":"1150000.00","total_amount":"1150000","number":"1","cost":"0","total_cost":"0","description":"","hardware_from":"","hardware_to":"","maintenance_from":"","maintenance_to":"","software_from":"","software_to":"","supplier_id":""}},"projectContactPoints":"","projectContactPointRels":"","projectUsedClient":{"used_client":"","budget":"","profit":"","profit_pct":"","projectUsedClientPaymentCollectionRemindReceivers":"","projectUsedClientPaymentCollectionRemindDates":"","remind_ahead":"","projectUsedClientPayments":"","projectUsedClientInvoices":""},"projectProductTypes":{"7":{"budget":"1150000","profit":"1150000","pct":"100"}}},"web_access_token":"sXjqURNBCao5nldOR3zGEIU34GY49pIi"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u5546\u673a\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0}', FALSE, '2025-09-16 17:06:04') RETURNING "id" |
17:06:04.521 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
17:06:04.521 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |