This commit is contained in:
liangjunyu
2025-09-11 14:27:56 +08:00
parent fcc355098a
commit 873922e515
11 changed files with 345 additions and 338 deletions

View File

@@ -1055,7 +1055,16 @@ namespace RB_MES_API.Controllers
};
//数据包创建完成
string jsonstr = JsonConvert.SerializeObject(batchJson);
Stopwatch stopwatch = new Stopwatch();
// 开始计时
stopwatch.Start();
string result = LocalStaticRequest.cloudApi.BatchSave(formid, jsonstr);
// 停止计时
stopwatch.Stop();
// 获取执行时间
TimeSpan elapsed = stopwatch.Elapsed;
LogHelper.WriteLog($"执行时间: {elapsed.TotalMilliseconds} 毫秒");
//如果访问正常
List<Dictionary<string, string>> billnos = new List<Dictionary<string, string>>();
int errcode = 0;