|
@ -14,6 +14,7 @@ using Volo.Abp.Validation; |
|
|
using Win_in.Sfs.Basedata.Application.Contracts; |
|
|
using Win_in.Sfs.Basedata.Application.Contracts; |
|
|
using Win_in.Sfs.Basedata.Domain; |
|
|
using Win_in.Sfs.Basedata.Domain; |
|
|
using Win_in.Sfs.Basedata.Domain.Shared; |
|
|
using Win_in.Sfs.Basedata.Domain.Shared; |
|
|
|
|
|
using Win_in.Sfs.Shared.Application; |
|
|
using Win_in.Sfs.Shared.Domain; |
|
|
using Win_in.Sfs.Shared.Domain; |
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
|
|
|
|
|
@ -212,6 +213,25 @@ public class ItemBasicAppService |
|
|
return itemCategorys.ToDictionary(x => x.CategoryCode, y => y.Value); |
|
|
return itemCategorys.ToDictionary(x => x.CategoryCode, y => y.Value); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[HttpPost("by-codes-post")] |
|
|
|
|
|
public virtual async Task<List<ItemBasicDTO>> GetByCodesByPostAsync(IEnumerable<string> codes) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
var dtoList = new List<ItemBasicDTO>(); |
|
|
|
|
|
foreach (var code in codes) |
|
|
|
|
|
{ |
|
|
|
|
|
var dto = await Cache.GetOrAddItemAsync( |
|
|
|
|
|
$"{typeof(ItemBasic).Name}:{code}".ToString(), |
|
|
|
|
|
async () => await GetFromRepositoryAsync(code).ConfigureAwait(false), |
|
|
|
|
|
SfsCacheConst.SeveralMinutes).ConfigureAwait(false); |
|
|
|
|
|
if (dto != null) |
|
|
|
|
|
{ |
|
|
|
|
|
dtoList.Add(dto); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return dtoList; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#region 东阳
|
|
|
#region 东阳
|
|
|
|
|
|
|
|
|
[HttpPut("upsert-stdpackqty")] |
|
|
[HttpPut("upsert-stdpackqty")] |
|
|