Total processing time: 76 ms; Peak memory: 3.777 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 14:20:57.964 | 8.7 ms | 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_outbound_spent_product_sns' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
| 14:20:57.973 | 7.0 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" ("erp_sales_outbound_spent_product_id", "erp_inventory_product_sn_id", "sn") VALUES (216, 13, '556565656') |
| 14:20:57.959 | 5.0 ms | 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_outbound_spent_product_sns' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
| 14:20:58.014 | 4.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-18') |
| 14:20:57.983 | 4.1 ms | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_inventory_lost_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_lost_products" "eprp" ON eprp.id = r.erp_inventory_lost_product_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_losts" "epr" ON eprp.erp_inventory_lost_id = epr.id WHERE ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:57.996 | 3.9 ms | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_gift_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_gift_spent_products" "eprp" ON eprp.id = r.erp_sales_gift_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_sales_gifts" "epr" ON eprp.erp_sales_gift_id = epr.id WHERE ("r"."is_cancel"=FALSE) AND ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:58.010 | 3.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_product_sns" WHERE 0=1 |
| 14:20:57.990 | 3.2 ms | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_inventory_build_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_inventory_build_spent_products" "eprp" ON eprp.id = r.erp_inventory_build_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "epr" ON eprp.erp_inventory_build_id = epr.id WHERE ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:57.950 | 2.4 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 14:20:57.948 | 1.9 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 14:20:57.953 | 1.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 14:20:58.019 | 1.1 ms | 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-outbound/save-sn', '{"sns":{"216":[{"erp_inventory_product_sn_id":"13","sn":"556565656"}]},"id":"73"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u9500\u552e\u51fa\u5e93\u5355\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0,"ip":"223.72.15.22","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-18 14:20:58') RETURNING "id" |
| 14:20:58.002 | 1.1 ms | 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\ErpInventoryProductSns', 13, 'a:2:{s:7:"is_used";b:1;s:43:"used_erp_sales_outbound_spent_product_sn_id";i:1;}', '', 1001, '223.72.15.22') |
| 14:20:58.000 | 1.0 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_product_sns" SET "is_used"=TRUE, "used_erp_sales_outbound_spent_product_sn_id"=1 WHERE "id"=13 |
| 14:20:58.006 | 0.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_product_sns" WHERE 0=1 |
| 14:20:58.008 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_product_sns" WHERE 0=1 |
| 14:20:58.004 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" SET "is_used"=TRUE WHERE "id"=13 |
| 14:20:57.956 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"='73' |
| 14:20:58.018 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=786, "last_visit_at"='now()' WHERE "id"=59588 |
| 14:20:58.005 | 0.7 ms | 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\ErpPurchaseInboundProductSns', 13, 'a:1:{s:7:"is_used";b:1;}', '', 1001, '223.72.15.22') |
| 14:20:57.993 | 0.7 ms | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbound_spent_products" "eprp" ON eprp.id = r.erp_sales_outbound_spent_product_id LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "epr" ON eprp.erp_sales_outbound_id = epr.id WHERE ("r"."is_cancel"=FALSE) AND ("r"."erp_inventory_product_sn_id"=13) AND ("epr"."status" IN (1, 2)) |
| 14:20:57.958 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=73 |
| 14:20:57.981 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "id"='13' |
| 14:20:58.003 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "id"=13 |
| 14:20:57.958 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=216 |
| 14:20:57.959 | 0.1 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_product_sns" WHERE "erp_sales_outbound_spent_product_id"=216 |