Database Queries

总计70条数据
TimeDurationTypeQuery
  
15:26:21.2482.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

15:26:21.2511.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:26:21.2561.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE ("created_at" >= '2025-08-11 00:00:00') AND ("created_at" <= '2025-08-11 23:59:59') AND ("serial_no" ILIKE '%CGRK-20250811-%') AND (LENGTH(serial_no) = 19) ORDER BY "serial_no" DESC

15:26:21.2580.7 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "serial_no"='CGRK-20250811-00006')

15:26:21.2580.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"='4')

15:26:21.2590.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001')

15:26:21.2600.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='438')

15:26:21.2600.4 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4080')

15:26:21.2610.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1')

15:26:21.2610.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)

15:26:21.2624.6 msSELECTSELECT 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_order_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

15:26:21.26710.4 msSELECTselect 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_order_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

15:26:21.2771.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "id"=6

15:26:21.2792.9 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_purchase_inbounds" ("supplier_id", "handler", "purchase_contract_id", "wrote_date", "serial_no", "abstract", "description", "erp_store_id", "erp_purchase_order_id", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "is_used") VALUES (438, 1001, 4080, '2025-08-11', 'CGRK-20250811-00006', '', '', 1, 4, 1, 1001, 'now()', 1, FALSE, FALSE) RETURNING "id"

15:26:21.2822.7 msSELECTSELECT 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:26:21.2857.3 msSELECTselect 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:26:21.2925.1 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpPurchaseInbounds', 7, 'a:30:{s:2:"id";i:7;s:9:"serial_no";s:19:"CGRK-20250811-00006";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-08-11";s:7:"handler";s:4:"1001";s:21:"erp_purchase_order_id";s:1:"4";s:11:"supplier_id";s:3:"438";s:20:"purchase_contract_id";s:4:"4080";s:12:"erp_store_id";s:1:"1";s:6:"status";i:1;s:8:"abstract";s:0:"";s:11:"description";s:0:"";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:9:"cancel_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"number";N;s:6:"amount";N;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:7:"is_used";b:0;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;}', '', 1001, '124.64.23.198')

15:26:21.2981.5 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20004) AND ("object_id"=7)

15:26:21.3002.7 msDELETEDELETE FROM "a57be577deb434"."tbl_erp_purchase_inbound_projects" WHERE "erp_purchase_inbound_id"=7

15:26:21.3032.3 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_purchase_inbound_products" ("erp_purchase_inbound_id", "erp_purchase_order_id", "erp_purchase_order_product_id", "erp_store_id", "product_id", "amount", "total_amount", "number", "description") VALUES (7, 4, 6, 1, 947, '111', '122877', '1107', '') RETURNING "id"

15:26:21.3060.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpPurchaseInboundProducts', 7, 'a:19:{s:2:"id";i:7;s:23:"erp_purchase_inbound_id";i:7;s:21:"erp_purchase_order_id";s:1:"4";s:29:"erp_purchase_order_product_id";s:1:"6";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:3:"947";s:11:"description";s:0:"";s:6:"number";s:4:"1107";s:8:"outbound";N;s:9:"inventory";N;s:6:"amount";s:3:"111";s:12:"total_amount";s:6:"122877";s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;s:13:"lost_outbound";N;s:20:"build_spent_outbound";N;s:14:"sales_outbound";N;s:19:"sales_gift_outbound";N;}', '', 1001, '124.64.23.198')

15:26:21.3071.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE ("status"=0) AND ("erp_purchase_inbound_id"=7) ORDER BY "id"

15:26:21.3080.8 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "amount"='122877', "number"='1107', "next_verify_user"=NULL WHERE "id"=7

15:26:21.3090.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInbounds', 7, 'a:2:{s:6:"number";i:1107;s:6:"amount";i:122877;}', '', 1001, '124.64.23.198')

15:26:21.3100.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=7

15:26:21.3100.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:26:21.3110.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE ("status"=0) AND ("erp_purchase_inbound_id"=7) ORDER BY "id"

15:26:21.3110.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=7

15:26:21.3120.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInbounds', 7, 'a:2:{s:6:"status";i:2;s:9:"verify_at";s:5:"now()";}', '', 1001, '124.64.23.198')

15:26:21.3130.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_inbound_id"=7

15:26:21.3144.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "erp_purchase_inbound_product_id"=7

15:26:21.3198.5 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_inventory_products" ("erp_purchase_inbound_product_id", "erp_purchase_order_id", "erp_purchase_inbound_id", "product_id", "erp_store_id", "inventory", "amount", "number", "total_amount", "wrote_date", "created_at") VALUES (7, 4, 7, 947, 1, '1107', '111', '1107', '122877', '2025-08-11', 'now()') RETURNING "id"

15:26:21.3280.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpInventoryProducts', 7, 'a:27:{s:2:"id";i:7;s:10:"product_id";i:947;s:23:"erp_purchase_inbound_id";i:7;s:21:"erp_purchase_order_id";i:4;s:31:"erp_purchase_inbound_product_id";i:7;s:29:"erp_purchase_order_product_id";N;s:12:"erp_store_id";i:1;s:10:"wrote_date";s:10:"2025-08-11";s:6:"number";i:1107;s:8:"outbound";N;s:9:"inventory";i:1107;s:6:"amount";s:3:"111";s:12:"total_amount";s:6:"122877";s:13:"actual_amount";N;s:19:"actual_total_amount";N;s:8:"is_build";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:13:"lost_outbound";N;s:22:"erp_inventory_start_id";N;s:30:"erp_inventory_start_product_id";N;s:22:"erp_inventory_build_id";N;s:30:"erp_inventory_build_product_id";N;s:20:"build_spent_outbound";N;s:14:"sales_outbound";N;s:20:"erp_purchase_gift_id";N;s:28:"erp_purchase_gift_product_id";N;s:19:"sales_gift_outbound";N;}', '', 1001, '124.64.23.198')

15:26:21.3290.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=7

15:26:21.3291.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" WHERE "erp_purchase_inbound_product_id"=7

15:26:21.3316.6 msDELETEDELETE FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE ("erp_inventory_product_id"=7)

15:26:21.3380.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_sns" WHERE "erp_inventory_product_id"=7

15:26:21.3391.7 msSELECTSELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=7

15:26:21.3410.9 msUPDATEUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='0', "inventory"='1107' WHERE "id"=7

15:26:21.3420.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 7, 'a:0:{}', '', 1001, '124.64.23.198')

15:26:21.3430.2 msSELECTSELECT SUM(inventory) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=947

15:26:21.3430.2 msSELECTSELECT SUM(inventory * amount) FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=947

15:26:21.3430.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_amount"='133.2239' WHERE "product_id"=947

15:26:21.3440.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"=actual_amount * inventory WHERE "product_id"=947

15:26:21.3450.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 7, 'a:0:{}', '', 1001, '124.64.23.198')

15:26:21.3460.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "outbound"='0', "inventory"='1107' WHERE "id"=7

15:26:21.3470.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 7, 'a:0:{}', '', 1001, '124.64.23.198')

15:26:21.3481.1 msUPDATEUPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()' WHERE "id"=947

15:26:21.3490.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInbounds', 7, 'a:0:{}', '', 1001, '124.64.23.198')

15:26:21.3500.2 msDELETEDELETE FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE ("erp_purchase_inbound_id"=7) AND ("erp_purchase_inbound_product_id"<>7)

15:26:21.3500.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"=4

15:26:21.3510.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "erp_purchase_order_id"=4

15:26:21.3510.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_order_product_id"=6

15:26:21.3520.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id" IN (3, 4, 5, 6, 7)

15:26:21.3520.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_order_products" SET "into_inventory"='1111' WHERE "id"=6

15:26:21.3530.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseOrderProducts', 6, 'a:0:{}', '', 1001, '124.64.23.198')

15:26:21.3540.8 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_orders" SET "inventory_status"=TRUE WHERE "id"=4

15:26:21.3550.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseOrders', 4, 'a:0:{}', '', 1001, '124.64.23.198')

15:26:21.3560.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=7

15:26:21.3574.7 msSELECTSELECT 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:26:21.36111.4 msSELECTselect 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:26:21.3733.9 msINSERTINSERT 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, 20002, 'CGRK-20250811-00006', '2025-08-11', '', '', NULL, 438, 1001, '2025-08-11 15:26:21', '2025-08-11 15:26:21', '2025-08-11 15:26:21.311582+08') RETURNING "id"

15:26:21.3770.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpTicketChangeLogs', 71, 'a:13:{s:2:"id";i:71;s:9:"serial_no";s:19:"CGRK-20250811-00006";s:11:"ticket_type";i:20002;s:10:"wrote_date";s:10:"2025-08-11";s:6:"status";i:2;s:11:"supplier_id";i:438;s:9:"client_id";N;s:8:"abstract";s:0:"";s:11:"description";s:0:"";s:9:"verify_at";s:29:"2025-08-11 15:26:21.311582+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-11 15:26:21";s:10:"updated_at";s:19:"2025-08-11 15:26:21";}', '', 1001, '124.64.23.198')

15:26:21.3791.2 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (71, 1001)

15:26:21.3800.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

15:26:21.3812.8 msSELECTSELECT 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:26:21.3849.2 msSELECTselect 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:26:21.3931.8 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 7, 20002, 1001, '2025-08-11 15:26:21', '{"id":7,"serial_no":"CGRK-20250811-00006","from_date":null,"wrote_date":"2025-08-11","handler":1001,"erp_purchase_order_id":4,"supplier_id":438,"purchase_contract_id":4080,"erp_store_id":1,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1107","amount":"122877","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-11 15:26:21","updated_at":"1970-01-01 08:00:00"}', '{"id":7,"serial_no":"CGRK-20250811-00006","from_date":null,"wrote_date":"2025-08-11","handler":1001,"erp_purchase_order_id":4,"supplier_id":438,"purchase_contract_id":4080,"erp_store_id":1,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1107","amount":"122877","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-11 15:26:21","updated_at":"1970-01-01 08:00:00"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u91c7\u8d2d\u5165\u5e93\u5355\u7533\u8bf7","d4":[]}') RETURNING "id"

15:26:21.3950.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 552191, 'a:13:{s:2:"id";i:552191;s:9:"object_id";i:7;s:11:"object_type";i:20002;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:623:"{"id":7,"serial_no":"CGRK-20250811-00006","from_date":null,"wrote_date":"2025-08-11","handler":1001,"erp_purchase_order_id":4,"supplier_id":438,"purchase_contract_id":4080,"erp_store_id":1,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1107","amount":"122877","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-11 15:26:21","updated_at":"1970-01-01 08:00:00"}";s:9:"new_value";s:623:"{"id":7,"serial_no":"CGRK-20250811-00006","from_date":null,"wrote_date":"2025-08-11","handler":1001,"erp_purchase_order_id":4,"supplier_id":438,"purchase_contract_id":4080,"erp_store_id":1,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1107","amount":"122877","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-11 15:26:21","updated_at":"1970-01-01 08:00:00"}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u91c7\u8d2d\u5165\u5e93\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-11 15:26:21";s:9:"is_delete";N;}', '', 1001, '124.64.23.198')

15:26:21.3971.0 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-purchase-inbound/save-new', '{"ErpPurchaseInbounds":{"id":"","supplier_id":"438","supplier_name":"\u9752\u5c9b\u946b\u96f7\u97f3\u7535\u5b50\u6709\u9650\u516c\u53f8","handler":"1001","purchase_contract_id":"4080","wrote_date":"2025-08-11","serial_no":"CGRK-20250811-00006","erpPurchaseInboundVerifyRels":"","abstract":"","description":"","erp_store_id":"1","erp_store_name":"\u4e3b\u4ed3\u5e93","erp_purchase_order_id":"4","erpPurchaseInboundProducts":{"new":[{"product_id":"947","number":"1107","amount":"111","total_amount":"122877","erp_store_id":"1","description":"","erp_purchase_order_id":"4","erp_purchase_order_product_id":"6","sns":""}]},"erpPurchaseInboundProjects":"","files":""},"web_access_token":"LUNl2piUGLWNrhpzvIlBH07DFeMsJmI_"}', '{"code":2000,"result":{"id":7},"status":1,"msg":[{"name":"success","success":"\u65b0\u91c7\u8d2d\u5165\u5e93\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-08-11 15:26:21') RETURNING "id"