16:20:57.221 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
16:20:57.221 | trace | yii\base\Module::getModule | Loading module: debug |
16:20:57.221 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
16:20:57.221 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
16:20:57.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
16:20:57.221 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.222 | trace | yii\base\Module::getModule | Loading module: gii |
16:20:57.222 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
16:20:57.222 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
16:20:57.222 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-gift/save-edit' |
16:20:57.222 | trace | yii\base\Module::getModule | Loading module: vue |
16:20:57.222 | info | yii\web\Session::open | Session started |
16:20:57.223 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
16:20:57.223 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
16:20:57.227 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.227 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.228 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.228 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.228 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:20:57.230 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-gift/save-edit |
16:20:57.230 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.231 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
16:20:57.231 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesGiftController::actionSaveEdit() |
16:20:57.231 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"='17' |
16:20:57.232 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.232 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.232 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status" != 0) AND ("erp_sales_gift_id"=17) ORDER BY "id" |
16:20:57.233 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking permission: updateErpSalesGift |
16:20:57.233 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_id' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_name' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'auto_type' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'attachmentFile' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erp_store_name' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'supplier_name' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpSalesGiftProducts' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpSalesGiftVerifyRels' in 'app\models\ErpSalesGifts'. |
16:20:57.233 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "serial_no"='ZSD-20250915-00002' LIMIT 2 |
16:20:57.235 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5300') |
16:20:57.235 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2182') |
16:20:57.236 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3956') |
16:20:57.236 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
16:20:57.237 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
16:20:57.237 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "erp_sales_gift_id"=17 |
16:20:57.238 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.238 | 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_gift_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:20:57.242 | 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_gift_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:20:57.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.246 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:20:57.246 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_product_id"=28 |
16:20:57.247 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.247 | 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_gift_spent_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:20:57.250 | 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_gift_spent_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:20:57.254 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.254 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:20:57.254 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2105 GROUP BY "id" |
16:20:57.254 | info | yii\db\Command::query | SELECT "product_id", sum(outbound) as outbound, sum(number) as number, sum(inventory) as inventory, avg(actual_amount) as avg_amount, avg(actual_amount * inventory) as avg_total_amount, sum(actual_amount * inventory) as amount FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2105 GROUP BY "product_id" |
16:20:57.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.255 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.255 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=80 |
16:20:57.256 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:20:57.256 | info | yii\db\Command::execute | |
16:20:57.256 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gifts" SET "handler"=5300, "erp_sales_order_id"=NULL, "supplier_id"=NULL, "client_id"=2182, "project_id"=3956, "erp_store_id"=1, "erp_send_type_id"=1 WHERE "id"=17 |
16:20:57.258 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.258 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.258 | 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\ErpSalesGifts', 17, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.259 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20018) AND ("object_id"=17) |
16:20:57.261 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.261 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.261 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20018) AND ("object_id"=17) |
16:20:57.264 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (20018, 17, 28157) |
16:20:57.268 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE "erp_sales_gift_id"=17 ORDER BY "id" |
16:20:57.268 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.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_erp_sales_gift_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:20:57.271 | 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_gift_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:20:57.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.275 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:20:57.275 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:20:57.275 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:20:57.276 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.276 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.276 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'erpSalesGiftVerifyRels', 17, 20011, 1001, 'now()', '[[]]', '[["\u5218\u4eba\u8bda"]]', '{"d1":"\u5218\u4eba\u8bda","d2":"\u66f4\u65b0\u4e86","d3":"\u5ba1\u6279\u4eba","d4":["\u5218\u4eba\u8bda; <b>\u53d8\u4e3a<\/b> (\u672a\u8bbe\u7f6e)"]}') |
16:20:57.277 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE "erp_sales_gift_id"=17 |
16:20:57.278 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_carbon_copy_rels" WHERE "erp_sales_gift_id"=17 |
16:20:57.278 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_carbon_copy_rels" WHERE "erp_sales_gift_id"=17 |
16:20:57.278 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.279 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.279 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2105 |
16:20:57.279 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.279 | 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_stores'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:20:57.282 | 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_stores'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:20:57.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.285 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:20:57.285 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"=1 |
16:20:57.286 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"='2105' |
16:20:57.286 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1' |
16:20:57.286 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gifts" SET "number"='1', "amount"='0' WHERE "id"=17 |
16:20:57.287 | 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\ErpSalesGifts', 17, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.288 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "erp_sales_gift_id"=17 |
16:20:57.288 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=17 |
16:20:57.289 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_id"=17 |
16:20:57.290 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=80 |
16:20:57.291 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.291 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.291 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.291 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.292 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0', "inventory"='2', "sales_outbound"=NULL WHERE "id"=80 |
16:20:57.293 | 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\ErpInventoryProducts', 80, 'a:1:{s:8:"outbound";i:0;}', '', 1001, '114.246.237.213') |
16:20:57.294 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=35 |
16:20:57.294 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.294 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.294 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2', "sales_outbound"=NULL WHERE "id"=35 |
16:20:57.295 | 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\ErpPurchaseInboundProducts', 35, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.296 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
16:20:57.297 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
16:20:57.297 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
16:20:57.297 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE "id"=28 |
16:20:57.298 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gift_products" SET "erp_store_id"=1, "product_id"=2105, "hardware_from"=NULL, "software_from"=NULL, "maintenance_from"=NULL, "hardware_to"=NULL, "software_to"=NULL, "maintenance_to"=NULL WHERE "id"=28 |
16:20:57.298 | 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\ErpSalesGiftProducts', 28, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.300 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_gift_spent_products" ("erp_sales_gift_id", "erp_sales_gift_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (17, 28, 80, 2105, '1', '0', '0') RETURNING "id" |
16:20:57.302 | 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\ErpSalesGiftSpentProducts', 45, 'a:12:{s:2:"id";i:45;s:17:"erp_sales_gift_id";i:17;s:25:"erp_sales_gift_product_id";i:28;s:24:"erp_inventory_product_id";s:2:"80";s:10:"product_id";s:4:"2105";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:1:"0";s:12:"total_amount";i:0;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '114.246.237.213') |
16:20:57.303 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" WHERE "erp_sales_gift_spent_product_id"=45 |
16:20:57.303 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gift_products" SET "number"='1', "total_amount"='0' WHERE "id"=28 |
16:20:57.304 | 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\ErpSalesGiftProducts', 28, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.305 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_products" WHERE 0=1 |
16:20:57.305 | 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\ErpSalesGifts', 17, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.306 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='80' |
16:20:57.306 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.306 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.307 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.307 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.307 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0', "inventory"='2' WHERE "id"=80 |
16:20:57.308 | 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\ErpInventoryProducts', 80, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.309 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=35 |
16:20:57.309 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2' WHERE "id"=35 |
16:20:57.310 | 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\ErpPurchaseInboundProducts', 35, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.311 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
16:20:57.311 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
16:20:57.311 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
16:20:57.312 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=17 |
16:20:57.312 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=17 |
16:20:57.312 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_id"=17 |
16:20:57.312 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=80 |
16:20:57.313 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.313 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.313 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_gift_id", "wrote_date", "erp_sales_gift_spent_product_id", "erp_inventory_product_id", "outbound", "amount", "total_amount", "sales_outbound", "actual_amount", "actual_total_amount") VALUES (17, '2025-09-15', 45, 80, '1', '0', '0', '1', '33702.84', '33702.84') |
16:20:57.314 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()' WHERE "id"=2105 |
16:20:57.315 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=80 |
16:20:57.316 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.316 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.316 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.316 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.317 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='1', "inventory"='1', "sales_outbound"='1' WHERE "id"=80 |
16:20:57.318 | 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\ErpInventoryProducts', 80, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '114.246.237.213') |
16:20:57.318 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=35 |
16:20:57.319 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1', "sales_outbound"='1' WHERE "id"=35 |
16:20:57.319 | 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\ErpPurchaseInboundProducts', 35, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.320 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.321 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=22 |
16:20:57.322 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
16:20:57.322 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
16:20:57.322 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
16:20:57.322 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
16:20:57.323 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.323 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.323 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
16:20:57.323 | info | yii\db\Command::query | SELECT SUM(inventory) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2105 |
16:20:57.324 | info | yii\db\Command::query | SELECT SUM(inventory * amount) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2105 |
16:20:57.324 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_amount"='33702.84' WHERE "product_id"=2105 |
16:20:57.325 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"=actual_amount * inventory WHERE "product_id"=2105 |
16:20:57.325 | 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\ErpInventoryProducts', 80, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.326 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("erp_sales_gift_id"=17) AND ("status"=0) ORDER BY "id" |
16:20:57.327 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gifts" SET "next_verify_user"=NULL, "updated_at"='now()' WHERE "id"=17 |
16:20:57.327 | 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\ErpSalesGifts', 17, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.328 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"=17 |
16:20:57.329 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=17 |
16:20:57.329 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=17 |
16:20:57.330 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_id"=17 |
16:20:57.330 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=80 |
16:20:57.330 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_gift_id", "wrote_date", "erp_sales_gift_spent_product_id", "erp_inventory_product_id", "outbound", "amount", "total_amount", "sales_outbound", "actual_amount", "actual_total_amount") VALUES (17, '2025-09-15', 45, 80, '1', '0', '0', '1', '33702.84', '33702.84') |
16:20:57.331 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()' WHERE "id"=2105 |
16:20:57.332 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=80 |
16:20:57.332 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.333 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.333 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.333 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.333 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='1' WHERE "id"=80 |
16:20:57.334 | 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\ErpInventoryProducts', 80, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.335 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=35 |
16:20:57.335 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1' WHERE "id"=35 |
16:20:57.336 | 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\ErpPurchaseInboundProducts', 35, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.337 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=22 |
16:20:57.338 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
16:20:57.338 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
16:20:57.338 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
16:20:57.338 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
16:20:57.339 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
16:20:57.339 | info | yii\db\Command::query | SELECT SUM(inventory) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2105 |
16:20:57.339 | info | yii\db\Command::query | SELECT SUM(inventory * amount) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2105 |
16:20:57.339 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_amount"='33702.84' WHERE "product_id"=2105 |
16:20:57.340 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"=actual_amount * inventory WHERE "product_id"=2105 |
16:20:57.341 | 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\ErpInventoryProducts', 80, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.342 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='80' |
16:20:57.343 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.343 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.344 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.344 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=80 |
16:20:57.344 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='1' WHERE "id"=80 |
16:20:57.345 | 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\ErpInventoryProducts', 80, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.346 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=35 |
16:20:57.347 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1' WHERE "id"=35 |
16:20:57.348 | 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\ErpPurchaseInboundProducts', 35, 'a:0:{}', '', 1001, '114.246.237.213') |
16:20:57.349 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=22 |
16:20:57.349 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
16:20:57.350 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
16:20:57.350 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
16:20:57.353 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:20:57.354 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=17) ORDER BY "id" |
16:20:57.354 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gifts" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=17 |
16:20:57.355 | 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\ErpSalesGifts', 17, 'a:1:{s:9:"verify_at";s:5:"now()";}', '', 1001, '114.246.237.213') |
16:20:57.356 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"=17 |
16:20:57.357 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.363 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.363 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "amount", "client_id", "supplier_id", "contact_id", "user_id", "created_by", "created_at", "updated_at", "object_id", "verify_at") VALUES (2, 20011, 'ZSD-20250915-00002', '2025-09-15', 'sdf ', 'sdf ', '0', 2182, NULL, NULL, NULL, 1001, '2025-09-15 10:47:16', '2025-09-15 16:20:57', 17, '2025-09-15 16:20:57.35502+08') RETURNING "id" |
16:20:57.367 | 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\ErpTicketChangeLogs', 549, 'a:17:{s:2:"id";i:549;s:9:"serial_no";s:18:"ZSD-20250915-00002";s:11:"ticket_type";i:20011;s:10:"wrote_date";s:10:"2025-09-15";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:2182;s:8:"abstract";s:4:"sdf ";s:11:"description";s:4:"sdf ";s:9:"verify_at";s:28:"2025-09-15 16:20:57.35502+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-09-15 10:47:16";s:10:"updated_at";s:19:"2025-09-15 16:20:57";s:10:"contact_id";N;s:7:"user_id";N;s:6:"amount";s:1:"0";s:9:"object_id";i:17;}', '', 1001, '114.246.237.213') |
16:20:57.368 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.368 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.368 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (549, 5300) |
16:20:57.369 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.371 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.371 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-09-15') |
16:20:57.376 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.376 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:20:57.376 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=1738, "last_visit_at"='now()' WHERE "id"=56557 |
16:20:57.377 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-gift/save-edit', '{"ErpSalesGifts":{"id":"17","auto_id":"2182","auto_name":"\u5317\u4eac\u5357\u65b9\u65af\u5948\u514b\u739b\u6da1\u8f6e\u6280\u672f\u6709\u9650\u516c\u53f8","auto_type":"client","erp_send_type_id":"1","handler":"5300","project_id":"3956","wrote_date":"2025-09-15","serial_no":"ZSD-20250915-00002","abstract":"sdf ","files":["28157"],"attachmentFile":{"28157":"\u56fe\u7247.png"},"description":"sdf ","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erp_sales_order_id":"","client_id":"2182","client_name":"\u5317\u4eac\u5357\u65b9\u65af\u5948\u514b\u739b\u6da1\u8f6e\u6280\u672f\u6709\u9650\u516c\u53f8","supplier_id":"","supplier_name":"","erpSalesGiftProducts":{"28":{"product_id":"2105","number":"1","amount":"0","total_amount":"0","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","erp_store_id":"1","maintenance_to":"","is_check":"0","erpSalesGiftSpentProducts":[{"erp_inventory_product_id":"80","number":"1"}]}},"erpSalesGiftVerifyRels":""},"web_access_token":"S7OJrULURAq348jTGnVvRiAMpe10N7Zn"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u8d60\u9001\u5355\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0}', FALSE, '2025-09-15 16:20:57') RETURNING "id" |
16:20:57.378 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:20:57.378 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |