fix parameter

This commit is contained in:
dev02 2022-11-10 11:15:06 +08:00
parent 2a1e0d8575
commit e7b1ca0fa5

View File

@ -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<string>(sqlString, new { @error_code = a.error_code });
var formId = backendRepository.GetOneAsync<string>(sqlString, new { @error_code = a.uuid });
RowPosition += 1;
row = sheet.CreateRow(RowPosition);
for (var i = 0; i < 8; i++)