接口优化
This commit is contained in:
@@ -43,6 +43,7 @@ namespace WMS.Web.Domain.IService.Public
|
||||
/// <param name="action"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="id">加上ID防止编码重复</param>
|
||||
/// <returns></returns>
|
||||
string GetSingleData(SingleAction action, int companyId, string code);
|
||||
/// <summary>
|
||||
|
||||
@@ -47,12 +47,12 @@ namespace WMS.Web.Domain.Mappers
|
||||
|
||||
|
||||
//箱库存详情-映射
|
||||
CreateMap<BoxInventoryResponse, BoxInventory>()
|
||||
CreateMap<BoxInventory, BoxInventoryResponse>()
|
||||
.ForMember(x=>x.Details,t=>t.Ignore());
|
||||
CreateMap<BoxInventoryDetailsResponse, BoxInventoryDetails>();
|
||||
|
||||
CreateMap<BoxInventoryDetails, BoxInventoryDetailsResponse>();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user