1
This commit is contained in:
@@ -163,7 +163,7 @@ namespace Gatedge.ScanCode.Controllers
|
||||
//queryParam.FilterString = filterString.GetFilterString();
|
||||
|
||||
queryParam.FilterString += @$"FUserAccount = '{dataCenter.UserName}'";
|
||||
var result = client.ExecuteBillQuery(queryParam.ToString());
|
||||
var resultList = client.ExecuteBillQuery(queryParam.ToString());
|
||||
//var resultString = client.BillQuery(queryParam.ToString());
|
||||
//// 包含ErrorCode认定为失败
|
||||
//if (resultString.Contains("ErrorCode"))
|
||||
@@ -179,6 +179,19 @@ namespace Gatedge.ScanCode.Controllers
|
||||
//{
|
||||
// return AjaxResult.Error(500, "用户名没有组织权限,或用户名不存在!");
|
||||
//}
|
||||
List<Dictionary<string, string>> result = new List<Dictionary<string, string>>();
|
||||
foreach(var item in resultList)
|
||||
{
|
||||
Dictionary<string, string> ResultItem = new Dictionary<string, string>();
|
||||
ResultItem.Add("FUserID", item[0].ToString());
|
||||
ResultItem.Add("FName", item[1].ToString());
|
||||
ResultItem.Add("FUserAccount", item[2].ToString());
|
||||
ResultItem.Add("FOrgOrgId", item[3].ToString());
|
||||
ResultItem.Add("FOrgOrgNumber", item[4].ToString());
|
||||
ResultItem.Add("FOrgOrgName", item[5].ToString());
|
||||
result.Add(ResultItem);
|
||||
}
|
||||
|
||||
|
||||
return AjaxResult.Success(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user