6a490fb47b1ce: POST https://beta.jinchangxiao.com/vue/erp-purchase-inbound/save-new at 2026-07-04 09:50:44 pm by 111.194.208.14

Database Queries

总计40条数据
TimeDurationTypeQuery
  
21:50:44.52112.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

21:50:44.5678.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

21:50:44.6072.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE ("created_at" >= '2026-07-04 00:00:00') AND ("created_at" <= '2026-07-04 23:59:59') AND ("serial_no" ILIKE '%CGRKD-20260704-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC

21:50:44.6100.5 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "serial_no"='CGRKD-20260704-00002')

21:50:44.6110.6 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"='2216')

21:50:44.6120.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001')

21:50:44.6130.6 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431')

21:50:44.6130.7 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4470')

21:50:44.6140.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1')

21:50:44.6150.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)

21:50:44.6162.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", "status", "verify_type", "created_by", "created_at", "is_resubmitted", "is_used") VALUES (431, 1001, 4470, '2026-07-04', NULL, NULL, NULL, 1, 2216, 0, 2, 1001, 'now()', FALSE, FALSE) RETURNING "id"

21:50:44.6190.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpPurchaseInbounds', 217, 'a:31:{s:2:"id";i:217;s:9:"serial_no";N;s:9:"from_date";N;s:10:"wrote_date";s:10:"2026-07-04";s:7:"handler";s:4:"1001";s:21:"erp_purchase_order_id";s:4:"2216";s:11:"supplier_id";s:3:"431";s:20:"purchase_contract_id";s:4:"4470";s:12:"erp_store_id";s:1:"1";s:6:"status";s:1:"0";s:8:"abstract";N;s:11:"description";N;s:11:"verify_type";s:1:"2";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;s:11:"print_times";N;}', '', 1001, '111.194.208.14')

21:50:44.6213.5 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20004) AND ("object_id"=217)

21:50:44.6240.5 msDELETEDELETE FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE "erp_purchase_inbound_id"=217

21:50:44.6255.0 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_inbound_verify_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

21:50:44.6319.6 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_inbound_verify_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

21:50:44.6411.5 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" ("erp_purchase_inbound_id", "user_id", "status") VALUES (217, 1001, 0)

21:50:44.6430.5 msDELETEDELETE FROM "a57be577deb434"."tbl_erp_purchase_inbound_projects" WHERE "erp_purchase_inbound_id"=217

21:50:44.6443.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_purchase_inbound_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

21:50:44.6489.8 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_inbound_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

21:50:44.6993.0 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 (217, 2216, 436, 1, 2261, '230', '2530.00', '11', '') RETURNING "id"

21:50:44.7030.5 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpPurchaseInboundProducts', 438, 'a:20:{s:2:"id";i:438;s:23:"erp_purchase_inbound_id";i:217;s:21:"erp_purchase_order_id";s:4:"2216";s:29:"erp_purchase_order_product_id";s:3:"436";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2261";s:11:"description";s:0:"";s:6:"number";s:2:"11";s:8:"outbound";N;s:9:"inventory";N;s:6:"amount";s:3:"230";s:12:"total_amount";s:7:"2530.00";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;s:26:"disassemble_spent_outbound";N;}', '', 1001, '111.194.208.14')

21:50:44.7043.5 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_inbound_product_sns' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

21:50:44.7088.7 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_inbound_product_sns' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

21:50:44.7171.0 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_purchase_inbound_product_sns" ("erp_purchase_inbound_product_id", "sn") VALUES (438, '1231'), (438, '12311'), (438, '123111'), (438, '2221'), (438, '3331'), (438, '4441'), (438, '5551'), (438, '55552'), (438, '444234'), (438, '2234'), (438, '234234'), (438, '234改3')

21:50:44.7190.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE ("status"=0) AND ("erp_purchase_inbound_id"=217) ORDER BY "id"

21:50:44.7190.8 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "amount"='2530', "number"='11', "next_verify_user"=1001 WHERE "id"=217

21:50:44.7210.4 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInbounds', 217, 'a:2:{s:6:"number";d:11;s:6:"amount";d:2530;}', '', 1001, '111.194.208.14')

21:50:44.7210.3 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInbounds', 217, 'a:0:{}', '', 1001, '111.194.208.14')

21:50:44.7220.6 msUPDATEUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='0', "number"='0', "actual_total_amount"='0' WHERE "erp_purchase_inbound_id"=217

21:50:44.7230.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"='2216'

21:50:44.7250.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "erp_purchase_order_id"=2216

21:50:44.7260.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_order_product_id"=436

21:50:44.7260.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=217

21:50:44.7270.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_return_products" WHERE "erp_purchase_inbound_product_id"=438

21:50:44.7280.3 msUPDATEUPDATE "a57be577deb434"."tbl_erp_purchase_order_products" SET "into_inventory"='0' WHERE "id"=436

21:50:44.7280.3 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseOrderProducts', 436, 'a:0:{}', '', 1001, '111.194.208.14')

21:50:44.7290.3 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseOrders', 2216, 'a:0:{}', '', 1001, '111.194.208.14')

21:50:44.7290.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=217

21:50:44.7322.7 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-purchase-inbound/save-new', '{"ErpPurchaseInbounds":{"id":"","supplier_id":"431","supplier_name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8","handler":"1001","purchase_contract_id":"4470","wrote_date":"2026-07-04","serial_no":"CGRKD-20260704-00002","erpPurchaseInboundVerifyRels":["1001"],"abstract":"","description":"","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erp_purchase_order_id":"2216","erpPurchaseInboundProducts":{"new":[{"product_id":"2261","number":"11","amount":"230","total_amount":"2530.00","erp_store_id":"1","description":"","erp_purchase_order_id":"2216","erp_purchase_order_product_id":"436","sns":{"new":[{"sn":"1231"},{"sn":"12311"},{"sn":"123111"},{"sn":"2221"},{"sn":"3331"},{"sn":"4441"},{"sn":"5551"},{"sn":"55552"},{"sn":"444234"},{"sn":"2234"},{"sn":"234234"},{"sn":"234\u65393"}]}}]},"status":"0","erpPurchaseInboundProjects":"","files":""}}', '{"code":2000,"result":{"id":217},"status":1,"msg":[{"name":"success","success":"\u65b0\u91c7\u8d2d\u5165\u5e93\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"111.194.208.14","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/149.0.0.0 Safari\/537.36"}', FALSE, '2026-07-04 21:50:44', 215704064) RETURNING "id"