Total processing time: 290 ms; Peak memory: 6.813 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
15:33:55.184 | 7.5 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbounds" ("client_id", "erp_send_type_id", "handler", "project_id", "wrote_date", "serial_no", "abstract", "description", "erp_store_id", "erp_sales_order_id", "created_by", "created_at", "verify_type", "status", "is_resubmitted", "outbound_status") VALUES (15, NULL, 1004, 3256, '2025-08-12', 'XSCKD-20250812-00001', '', '三台联想SR650服务器+一套FAS2750存储,做成虚拟化环境,做测试使用。', 1, 1560, 1001, 'now()', 1, 1, FALSE, FALSE) RETURNING "id" |
15:33:55.200 | 6.2 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 ('INSERT', 'app\models\ErpSalesOutbounds', 1, 'a:29:{s:2:"id";i:1;s:9:"serial_no";s:20:"XSCKD-20250812-00001";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-08-12";s:7:"handler";s:4:"1004";s:18:"erp_sales_order_id";s:4:"1560";s:9:"client_id";s:2:"15";s:10:"project_id";s:4:"3256";s:12:"erp_store_id";s:1:"1";s:6:"status";i:1;s:16:"erp_send_type_id";s:0:"";s:8:"abstract";s:0:"";s:11:"description";s:91:"三台联想SR650服务器+一套FAS2750存储,做成虚拟化环境,做测试使用。";s:11:"verify_type";s:1:"1";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"number";N;s:6:"amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:15:"outbound_status";b:0;s:9:"is_settle";N;s:7:"is_used";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;}', '', 1001, '114.254.2.139') |
15:33:55.225 | 5.8 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_inventory_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.157 | 5.4 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_outbounds' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.243 | 4.3 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_products" ("erp_sales_outbound_id", "erp_sales_outbound_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (1, 1, 3, 2069, '1', '33352.00', '33352') RETURNING "id" |
15:33:55.209 | 4.2 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_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.368 | 4.1 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_clients' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.373 | 4.1 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_clients' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.313 | 4.1 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_inventory_product_spents' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.402 | 4.0 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "client_id", "supplier_id", "created_by", "created_at", "updated_at", "verify_at") VALUES (2, 20008, 'XSCKD-20250812-00001', '2025-08-12', '三台联想SR650服务器+一套FAS2750存储,做成虚拟化环境,做测试使用。', '', 15, NULL, 1001, '2025-08-12 15:33:55', '2025-08-12 15:33:55', '2025-08-12 15:33:55.392447+08') RETURNING "id" |
15:33:55.270 | 3.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE "id"=1 |
15:33:55.427 | 3.9 ms | 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', 1, 20008, 1001, '2025-08-12 15:33:55', '{"id":1,"serial_no":"XSCKD-20250812-00001","from_date":null,"wrote_date":"2025-08-12","handler":1004,"erp_sales_order_id":1560,"client_id":15,"project_id":3256,"erp_store_id":1,"status":2,"erp_send_type_id":null,"abstract":"","description":"\u4e09\u53f0\u8054\u60f3SR650\u670d\u52a1\u5668+\u4e00\u5957FAS2750\u5b58\u50a8\uff0c\u505a\u6210\u865a\u62df\u5316\u73af\u5883\uff0c\u505a\u6d4b\u8bd5\u4f7f\u7528\u3002","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"67886","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-08-12 15:33:55","updated_at":"1970-01-01 08:00:00"}', '{"id":1,"serial_no":"XSCKD-20250812-00001","from_date":null,"wrote_date":"2025-08-12","handler":1004,"erp_sales_order_id":1560,"client_id":15,"project_id":3256,"erp_store_id":1,"status":2,"erp_send_type_id":null,"abstract":"","description":"\u4e09\u53f0\u8054\u60f3SR650\u670d\u52a1\u5668+\u4e00\u5957FAS2750\u5b58\u50a8\uff0c\u505a\u6210\u865a\u62df\u5316\u73af\u5883\uff0c\u505a\u6d4b\u8bd5\u4f7f\u7528\u3002","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"67886","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-08-12 15:33:55","updated_at":"1970-01-01 08:00:00"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u51fa\u5e93\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
15:33:55.163 | 3.8 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_outbounds' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.176 | 3.8 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_order_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.192 | 3.8 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_action_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.414 | 3.8 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (18, 1004) |
15:33:55.364 | 3.7 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=15 |
15:33:55.329 | 3.5 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_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.398 | 3.5 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_ticket_change_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.302 | 3.4 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_purchase_inbounds' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.411 | 3.4 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_ticket_change_log_handlers' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.293 | 3.4 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_purchase_inbound_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.277 | 3.4 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_inventory_build_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.213 | 3.4 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_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.196 | 3.4 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_action_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.423 | 3.4 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_object_change_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.237 | 3.4 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_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
15:33:55.299 | 3.3 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_purchase_inbounds' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.234 | 3.1 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_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.222 | 3.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_inventory_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.173 | 3.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_order_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.310 | 2.9 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_inventory_product_spents' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.290 | 2.9 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_purchase_inbound_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.420 | 2.8 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_object_change_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.274 | 2.8 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_inventory_build_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.318 | 2.7 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_outbound_id", "wrote_date", "erp_sales_outbound_spent_product_id", "erp_inventory_product_id", "actual_amount", "amount", "outbound", "total_amount", "sales_outbound", "actual_total_amount") VALUES (1, '2025-08-12', 1, 3, '34343', '33352.00', '1', '33352', '1', '34343') RETURNING "id" |
15:33:55.326 | 2.7 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_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.395 | 2.7 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_ticket_change_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.150 | 2.5 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
15:33:55.217 | 2.5 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_products" ("erp_sales_outbound_id", "erp_sales_order_id", "erp_sales_order_product_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (1, 1560, 1824, 1, 2069, '1', '33352.00', '33352', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id" |
15:33:55.147 | 2.4 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
15:33:55.408 | 2.3 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_ticket_change_log_handlers' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
15:33:55.264 | 2.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
15:33:55.283 | 2.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
15:33:55.267 | 2.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
15:33:55.206 | 1.9 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20012) AND ("object_id"=1) |
15:33:55.256 | 1.7 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=1) ORDER BY "id" |
15:33:55.153 | 1.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:33:55.306 | 1.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=1 |
15:33:55.231 | 1.5 ms | yii\db\Command::query | SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id WHERE (eip.inventory > 0) AND ("eip"."product_id"='2069') GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC |
15:33:55.289 | 1.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=2 |
15:33:55.432 | 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-new', '{"ErpSalesOutbounds":{"id":"","client_id":"15","client_name":"\u4e2d\u51b6\u4eac\u8bda\u5de5\u7a0b\u6280\u672f\u6709\u9650\u516c\u53f8(\u5317\u4eac\u4eac\u8bda\u745e\u8fbe\u7535\u6c14\u5de5\u7a0b\u6280\u672f\u6709\u9650\u516c\u53f8)(\u5317\u4eac\u4eac\u8bda\u8d5b\u745e\u56fe\u6587\u4fe1\u606f\u79d1\u6280\u6709\u9650\u516c\u53f8)","erp_send_type_id":"","handler":"1004","project_id":"3256","wrote_date":"2025-08-12","serial_no":"XSCKD-20250812-00001","erpSalesOutboundVerifyRels":"","abstract":"","description":"\u4e09\u53f0\u8054\u60f3SR650\u670d\u52a1\u5668+\u4e00\u5957FAS2750\u5b58\u50a8\uff0c\u505a\u6210\u865a\u62df\u5316\u73af\u5883\uff0c\u505a\u6d4b\u8bd5\u4f7f\u7528\u3002","erp_store_id":"1","erp_store_name":"\u4e3b\u4ed3\u5e93","erp_sales_order_id":"1560","erpSalesOutboundProducts":{"new":[{"product_id":"2069","number":"1","amount":"33352.00","total_amount":"33352","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"1824","erp_store_id":"1","is_check":"0","erpSalesOutboundSpentProducts":""},{"product_id":"2068","number":"1","amount":"34534.00","total_amount":"34534","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"1825","erp_store_id":"1","is_check":"0","erpSalesOutboundSpentProducts":""}]},"files":""},"web_access_token":"J_fTTUvh2jDo6XmPd_9bAXUosEwOz5LJ"}', '{"code":2000,"result":{"id":1},"status":1,"msg":[{"name":"success","success":"\u65b0\u9500\u552e\u51fa\u5e93\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-08-12 15:33:55') RETURNING "id" |
15:33:55.172 | 0.9 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1560') |
15:33:55.248 | 0.9 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_products" ("erp_sales_outbound_id", "erp_sales_order_id", "erp_sales_order_product_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (1, 1560, 1825, 1, 2068, '1', '34534.00', '34534', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id" |
15:33:55.323 | 0.9 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_outbound_id", "wrote_date", "erp_sales_outbound_spent_product_id", "erp_inventory_product_id", "actual_amount", "amount", "outbound", "total_amount", "sales_outbound", "actual_total_amount") VALUES (1, '2025-08-12', 2, 2, '34343', '34534.00', '1', '34534', '1', '34343') RETURNING "id" |
15:33:55.333 | 0.9 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()' WHERE "id" IN (2069, 2068) |
15:33:55.253 | 0.9 ms | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_products" ("erp_sales_outbound_id", "erp_sales_outbound_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (1, 2, 2, 2068, '1', '34534.00', '34534') RETURNING "id" |
15:33:55.349 | 0.9 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=1 |
15:33:55.362 | 0.9 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_sales_contracts" SET "is_outbound"=TRUE WHERE "id"=4082 |
15:33:55.241 | 0.9 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='19' WHERE "id"=3 |
15:33:55.359 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "outbound_status"=TRUE, "is_used"=TRUE WHERE "id"=1560 |
15:33:55.325 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "is_used"=FALSE WHERE "id"=1 |
15:33:55.356 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1824 |
15:33:55.363 | 0.8 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\SalesContracts', 4082, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.406 | 0.8 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 ('INSERT', 'app\models\ErpTicketChangeLogs', 18, 'a:13:{s:2:"id";i:18;s:9:"serial_no";s:20:"XSCKD-20250812-00001";s:11:"ticket_type";i:20008;s:10:"wrote_date";s:10:"2025-08-12";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:15;s:8:"abstract";s:0:"";s:11:"description";s:91:"三台联想SR650服务器+一套FAS2750存储,做成虚拟化环境,做测试使用。";s:9:"verify_at";s:29:"2025-08-12 15:33:55.392447+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-12 15:33:55";s:10:"updated_at";s:19:"2025-08-12 15:33:55";}', '', 1001, '114.254.2.139') |
15:33:55.392 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=1 |
15:33:55.339 | 0.8 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\ErpInventoryBuildProducts', 1, 'a:1:{s:9:"inventory";i:19;}', '', 1001, '114.254.2.139') |
15:33:55.168 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE ("created_at" >= '2025-08-12 00:00:00') AND ("created_at" <= '2025-08-12 23:59:59') AND ("serial_no" ILIKE '%XSCKD-20250812-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC |
15:33:55.297 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2200' WHERE "id"=2 |
15:33:55.336 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='1', "inventory"='19', "sales_outbound"='1' WHERE "id"=3 |
15:33:55.287 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='2200' WHERE "id"=2 |
15:33:55.250 | 0.8 ms | yii\db\Command::query | SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id WHERE (eip.inventory > 0) AND ("eip"."product_id"='2068') GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC |
15:33:55.258 | 0.8 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "amount"='67886', "number"='2', "next_verify_user"=NULL WHERE "id"=1 |
15:33:55.431 | 0.8 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 ('INSERT', 'app\models\ObjectChangeLogs', 553383, 'a:13:{s:2:"id";i:553383;s:9:"object_id";i:1;s:11:"object_type";i:20008;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:765:"{"id":1,"serial_no":"XSCKD-20250812-00001","from_date":null,"wrote_date":"2025-08-12","handler":1004,"erp_sales_order_id":1560,"client_id":15,"project_id":3256,"erp_store_id":1,"status":2,"erp_send_type_id":null,"abstract":"","description":"\u4e09\u53f0\u8054\u60f3SR650\u670d\u52a1\u5668+\u4e00\u5957FAS2750\u5b58\u50a8\uff0c\u505a\u6210\u865a\u62df\u5316\u73af\u5883\uff0c\u505a\u6d4b\u8bd5\u4f7f\u7528\u3002","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"67886","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-08-12 15:33:55","updated_at":"1970-01-01 08:00:00"}";s:9:"new_value";s:765:"{"id":1,"serial_no":"XSCKD-20250812-00001","from_date":null,"wrote_date":"2025-08-12","handler":1004,"erp_sales_order_id":1560,"client_id":15,"project_id":3256,"erp_store_id":1,"status":2,"erp_send_type_id":null,"abstract":"","description":"\u4e09\u53f0\u8054\u60f3SR650\u670d\u52a1\u5668+\u4e00\u5957FAS2750\u5b58\u50a8\uff0c\u505a\u6210\u865a\u62df\u5316\u73af\u5883\uff0c\u505a\u6d4b\u8bd5\u4f7f\u7528\u3002","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"67886","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-08-12 15:33:55","updated_at":"1970-01-01 08:00:00"}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u51fa\u5e93\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-12 15:33:55";s:9:"is_delete";N;}', '', 1001, '114.254.2.139') |
15:33:55.247 | 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 ('INSERT', 'app\models\ErpSalesOutboundSpentProducts', 1, 'a:12:{s:2:"id";i:1;s:21:"erp_sales_outbound_id";i:1;s:29:"erp_sales_outbound_product_id";i:1;s:24:"erp_inventory_product_id";i:3;s:10:"product_id";s:4:"2069";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:8:"33352.00";s:12:"total_amount";d:33352;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '114.254.2.139') |
15:33:55.281 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_build_products" SET "inventory"='20' WHERE "id"=1 |
15:33:55.380 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='19' WHERE "id"=3 |
15:33:55.242 | 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\ErpInventoryProducts', 3, 'a:1:{s:9:"inventory";i:19;}', '', 1001, '114.254.2.139') |
15:33:55.321 | 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 ('INSERT', 'app\models\ErpInventoryProductSpents', 3, 'a:25:{s:2:"id";i:3;s:21:"erp_purchase_order_id";N;s:23:"erp_purchase_inbound_id";N;s:24:"erp_inventory_product_id";i:3;s:10:"wrote_date";s:10:"2025-08-12";s:13:"actual_amount";s:5:"34343";s:19:"actual_total_amount";i:34343;s:8:"outbound";i:1;s:6:"amount";s:8:"33352.00";s:12:"total_amount";d:33352;s:13:"lost_outbound";N;s:29:"erp_inventory_lost_product_id";N;s:21:"erp_inventory_lost_id";N;s:22:"erp_inventory_start_id";N;s:22:"erp_inventory_build_id";N;s:20:"build_spent_outbound";N;s:36:"erp_inventory_build_spent_product_id";N;s:28:"erp_inventory_build_spent_id";N;s:14:"sales_outbound";i:1;s:35:"erp_sales_outbound_spent_product_id";i:1;s:21:"erp_sales_outbound_id";i:1;s:20:"erp_purchase_gift_id";N;s:19:"sales_gift_outbound";N;s:31:"erp_sales_gift_spent_product_id";N;s:17:"erp_sales_gift_id";N;}', '', 1001, '114.254.2.139') |
15:33:55.358 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1825 |
15:33:55.384 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=1 |
15:33:55.220 | 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 ('INSERT', 'app\models\ErpSalesOutboundProducts', 1, 'a:17:{s:2:"id";i:1;s:21:"erp_sales_outbound_id";i:1;s:18:"erp_sales_order_id";s:4:"1560";s:26:"erp_sales_order_product_id";s:4:"1824";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2069";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:8:"33352.00";s:12:"total_amount";s:5:"33352";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '114.254.2.139') |
15:33:55.251 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='2199' WHERE "id"=2 |
15:33:55.345 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='23', "inventory"='2199', "sales_outbound"='1' WHERE "id"=2 |
15:33:55.288 | 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\ErpInventoryProducts', 2, 'a:1:{s:9:"inventory";i:2200;}', '', 1001, '114.254.2.139') |
15:33:55.340 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=1 |
15:33:55.393 | 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\ErpSalesOutbounds', 1, 'a:1:{s:9:"verify_at";s:5:"now()";}', '', 1001, '114.254.2.139') |
15:33:55.261 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0', "inventory"='20' WHERE "id"=3 |
15:33:55.386 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='2199' WHERE "id"=2 |
15:33:55.389 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=1 |
15:33:55.252 | 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\ErpInventoryProducts', 2, 'a:1:{s:9:"inventory";i:2199;}', '', 1001, '114.254.2.139') |
15:33:55.298 | 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\ErpPurchaseInboundProducts', 2, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.249 | 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 ('INSERT', 'app\models\ErpSalesOutboundProducts', 2, 'a:17:{s:2:"id";i:2;s:21:"erp_sales_outbound_id";i:1;s:18:"erp_sales_order_id";s:4:"1560";s:26:"erp_sales_order_product_id";s:4:"1825";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2068";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:8:"34534.00";s:12:"total_amount";s:5:"34534";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '114.254.2.139') |
15:33:55.282 | 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\ErpInventoryBuildProducts', 1, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.352 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"=actual_amount * inventory WHERE "product_id"=2068 |
15:33:55.360 | 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\ErpSalesOrders', 1560, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.381 | 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\ErpInventoryProducts', 3, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.262 | 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\ErpInventoryProducts', 3, 'a:1:{s:9:"inventory";s:2:"19";}', '', 1001, '114.254.2.139') |
15:33:55.357 | 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\ErpSalesOrderProducts', 1824, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '114.254.2.139') |
15:33:55.342 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"=actual_amount * inventory WHERE "product_id"=2069 |
15:33:55.346 | 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\ErpInventoryProducts', 2, 'a:2:{s:8:"outbound";s:2:"23";s:9:"inventory";i:2199;}', '', 1001, '114.254.2.139') |
15:33:55.258 | 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\ErpSalesOutbounds', 1, 'a:2:{s:6:"number";i:2;s:6:"amount";i:67886;}', '', 1001, '114.254.2.139') |
15:33:55.341 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_amount"='34343' WHERE "product_id"=2069 |
15:33:55.336 | 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\ErpInventoryProducts', 3, 'a:2:{s:8:"outbound";s:1:"0";s:9:"inventory";i:19;}', '', 1001, '114.254.2.139') |
15:33:55.353 | 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\ErpInventoryProducts', 2, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.351 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_amount"='34343' WHERE "product_id"=2068 |
15:33:55.383 | 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\ErpInventoryBuildProducts', 1, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.347 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2199', "sales_outbound"='1' WHERE "id"=2 |
15:33:55.387 | 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\ErpInventoryProducts', 2, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.343 | 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\ErpInventoryProducts', 3, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.382 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_build_products" SET "inventory"='19' WHERE "id"=1 |
15:33:55.324 | 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 ('INSERT', 'app\models\ErpInventoryProductSpents', 4, 'a:25:{s:2:"id";i:4;s:21:"erp_purchase_order_id";N;s:23:"erp_purchase_inbound_id";N;s:24:"erp_inventory_product_id";i:2;s:10:"wrote_date";s:10:"2025-08-12";s:13:"actual_amount";s:5:"34343";s:19:"actual_total_amount";i:34343;s:8:"outbound";i:1;s:6:"amount";s:8:"34534.00";s:12:"total_amount";d:34534;s:13:"lost_outbound";N;s:29:"erp_inventory_lost_product_id";N;s:21:"erp_inventory_lost_id";N;s:22:"erp_inventory_start_id";N;s:22:"erp_inventory_build_id";N;s:20:"build_spent_outbound";N;s:36:"erp_inventory_build_spent_product_id";N;s:28:"erp_inventory_build_spent_id";N;s:14:"sales_outbound";i:1;s:35:"erp_sales_outbound_spent_product_id";i:2;s:21:"erp_sales_outbound_id";i:1;s:20:"erp_purchase_gift_id";N;s:19:"sales_gift_outbound";N;s:31:"erp_sales_gift_spent_product_id";N;s:17:"erp_sales_gift_id";N;}', '', 1001, '114.254.2.139') |
15:33:55.326 | 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\ErpSalesOutbounds', 1, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.388 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2199' WHERE "id"=2 |
15:33:55.254 | 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 ('INSERT', 'app\models\ErpSalesOutboundSpentProducts', 2, 'a:12:{s:2:"id";i:2;s:21:"erp_sales_outbound_id";i:1;s:29:"erp_sales_outbound_product_id";i:2;s:24:"erp_inventory_product_id";i:2;s:10:"product_id";s:4:"2068";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:8:"34534.00";s:12:"total_amount";d:34534;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '114.254.2.139') |
15:33:55.338 | 0.7 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_build_products" SET "inventory"='19', "sales_outbound"='1' WHERE "id"=1 |
15:33:55.359 | 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\ErpSalesOrderProducts', 1825, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '114.254.2.139') |
15:33:55.348 | 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\ErpPurchaseInboundProducts', 2, 'a:1:{s:9:"inventory";i:2199;}', '', 1001, '114.254.2.139') |
15:33:55.389 | 0.6 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\ErpPurchaseInboundProducts', 2, 'a:0:{}', '', 1001, '114.254.2.139') |
15:33:55.361 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4082 |
15:33:55.182 | 0.6 ms | 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"=2069 GROUP BY "product_id" |
15:33:55.182 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2069 GROUP BY "id" |
15:33:55.170 | 0.5 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='15') |
15:33:55.377 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3256 |
15:33:55.171 | 0.4 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3256') |
15:33:55.354 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1560' |
15:33:55.181 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1824 |
15:33:55.260 | 0.4 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.419 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:33:55.354 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1560 |
15:33:55.391 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
15:33:55.169 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "serial_no"='XSCKD-20250812-00001') |
15:33:55.395 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=1 |
15:33:55.171 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
15:33:55.378 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (3, 2) |
15:33:55.170 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1004') |
15:33:55.183 | 0.3 ms | 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"=2068 GROUP BY "product_id" |
15:33:55.318 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=3 |
15:33:55.355 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=1 |
15:33:55.259 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=1 |
15:33:55.260 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (3, 2) |
15:33:55.344 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=2 |
15:33:55.334 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=3 |
15:33:55.322 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=2 |
15:33:55.309 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=1 |
15:33:55.183 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2068 GROUP BY "id" |
15:33:55.309 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=1 |
15:33:55.347 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=2 |
15:33:55.355 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id" IN (1824, 1825) |
15:33:55.172 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
15:33:55.388 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=2 |
15:33:55.309 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_id"=1 |
15:33:55.392 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=1) ORDER BY "id" |
15:33:55.382 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE "id"=1 |
15:33:55.322 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=2 |
15:33:55.181 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1825 |
15:33:55.341 | 0.2 ms | yii\db\Command::query | SELECT SUM(inventory) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2069 |
15:33:55.286 | 0.2 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.334 | 0.2 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.341 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
15:33:55.310 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=1 |
15:33:55.379 | 0.2 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.356 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (1, 2) |
15:33:55.341 | 0.2 ms | yii\db\Command::query | SELECT SUM(inventory * amount) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2069 |
15:33:55.344 | 0.2 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.261 | 0.2 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.379 | 0.2 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.351 | 0.2 ms | yii\db\Command::query | SELECT SUM(inventory * amount) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2068 |
15:33:55.308 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
15:33:55.261 | 0.2 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.338 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE "id"=1 |
15:33:55.261 | 0.2 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.337 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
15:33:55.385 | 0.2 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.345 | 0.2 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.350 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
15:33:55.351 | 0.2 ms | yii\db\Command::query | SELECT SUM(inventory) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2068 |
15:33:55.390 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
15:33:55.286 | 0.2 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.385 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
15:33:55.381 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE 0=1 |
15:33:55.286 | 0.2 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.308 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
15:33:55.379 | 0.2 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.335 | 0.1 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.344 | 0.1 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.345 | 0.1 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.379 | 0.1 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.350 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
15:33:55.286 | 0.1 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.335 | 0.1 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.385 | 0.1 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.385 | 0.1 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.335 | 0.1 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=3 |
15:33:55.391 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
15:33:55.386 | 0.1 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=2 |
15:33:55.338 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
15:33:55.382 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
15:33:55.391 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
15:33:55.308 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
15:33:55.350 | 0.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |