@@ -576,7 +576,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
else
|
||||
{
|
||||
para = $"{JsonData["item"].ToString()}";
|
||||
ForeignKeyText = 1.ToString();
|
||||
ForeignKeyText = "UserName";
|
||||
|
||||
if (_frontAuditConfigRepository._dbContext.Database.IsSqlServer())
|
||||
{
|
||||
@@ -586,7 +586,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
}
|
||||
else if (_frontAuditConfigRepository._dbContext.Database.IsNpgsql())
|
||||
{
|
||||
//sql = $"select {ForeignKeyText} Text from \"{Table}\" where \"{ForeignKeyValue}\" = @para";
|
||||
sql = $"select \"{ForeignKeyText}\" Text from \"{Table}\" where \"{ForeignKeyValue}\" = @para";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -608,8 +608,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
else if (_frontAuditConfigRepository._dbContext.Database.IsNpgsql())
|
||||
{
|
||||
|
||||
//jsonDataValueDic[item.Key] = string.Join(",", _frontAuditConfigRepository._dbContext.Database.SqlQueryRaw<string>
|
||||
// (sql, new NpgsqlParameter("@para", Guid.Parse(para))).ToList());
|
||||
jsonDataValueDic[item.Key] = string.Join(",", _frontAuditConfigRepository._dbContext.Database.SqlQueryRaw<string>
|
||||
(sql, new NpgsqlParameter("@para",para)).ToList());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user