接口优化

This commit is contained in:
tongfei
2023-11-17 17:24:56 +08:00
parent b58c9957e4
commit 9daa9ab775
7 changed files with 29 additions and 3 deletions

View File

@@ -237,6 +237,8 @@ namespace WMS.Web.Domain.Services.Public
}
var list = SingleDataPost<SingleDataResponse>(action, companyId, cache_key);
var json = JsonSerializer.Serialize(list);
if (list.Count() <= 0) return "";
dic = list.ToDictionary(s => s.Code, s => s.Name);