From e7b1ca0fa58c95aabaa91842e3bc9018f29e67d2 Mon Sep 17 00:00:00 2001 From: dev02 Date: Thu, 10 Nov 2022 11:15:06 +0800 Subject: [PATCH] fix parameter --- FrontendWebApi/ApiControllers/AlertController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrontendWebApi/ApiControllers/AlertController.cs b/FrontendWebApi/ApiControllers/AlertController.cs index 11be331..42917a8 100644 --- a/FrontendWebApi/ApiControllers/AlertController.cs +++ b/FrontendWebApi/ApiControllers/AlertController.cs @@ -113,7 +113,7 @@ namespace FrontendWebApi.ApiControllers foreach (var a in alerts) { var sqlString = $@"select formId from operation_record where error_code = @error_code"; - var formId = backendRepository.GetOneAsync(sqlString, new { @error_code = a.error_code }); + var formId = backendRepository.GetOneAsync(sqlString, new { @error_code = a.uuid }); RowPosition += 1; row = sheet.CreateRow(RowPosition); for (var i = 0; i < 8; i++)