|
@ -5,7 +5,9 @@ using System.Threading.Tasks; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Volo.Abp; |
|
|
using Volo.Abp; |
|
|
|
|
|
using Volo.Abp.ObjectMapping; |
|
|
using Win_in.Sfs.Shared.Application.Contracts; |
|
|
using Win_in.Sfs.Shared.Application.Contracts; |
|
|
|
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
using Win_in.Sfs.Wms.Inventory.Domain; |
|
|
using Win_in.Sfs.Wms.Inventory.Domain; |
|
|
using Win_in.Sfs.Wms.Inventory.Domain.Shared; |
|
|
using Win_in.Sfs.Wms.Inventory.Domain.Shared; |
|
@ -139,12 +141,35 @@ public class ExpectOutAppService |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpGet("list/by-itemcode-status-packingcode")] |
|
|
[HttpGet("list/by-itemcode-status-packingcode")] |
|
|
public virtual async Task<List<ExpectOutDTO>> GetListByItemCodeAndStatusAndPackingCode() |
|
|
public virtual async Task<List<ExpectOutDTO>> GetListByItemCodeAndStatusAndPackingCodeAsync( |
|
|
|
|
|
string itemCode, |
|
|
|
|
|
string locationCode, |
|
|
|
|
|
string packingCode, |
|
|
|
|
|
EnumInventoryStatus enumInventoryStatus, |
|
|
|
|
|
string lot) |
|
|
{ |
|
|
{ |
|
|
await Task.CompletedTask.ConfigureAwait(false); |
|
|
var list= await _repository.GetListAsync(p => |
|
|
|
|
|
p.ItemCode == itemCode && |
|
|
|
|
|
p.Status == enumInventoryStatus && |
|
|
|
|
|
p.PackingCode == packingCode && |
|
|
|
|
|
p.Lot == lot).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
//TODO
|
|
|
return ObjectMapper.Map<List<ExpectOut>, List<ExpectOutDTO>>(list); |
|
|
throw new UserFriendlyException(""); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[HttpDelete("remove/by-itemcode-status-packingcode")] |
|
|
|
|
|
public virtual async Task RemoveListByItemCodeAndStatusAndPackingCodeAsync( |
|
|
|
|
|
string itemCode, |
|
|
|
|
|
string locationCode, |
|
|
|
|
|
string packingCode, |
|
|
|
|
|
EnumInventoryStatus enumInventoryStatus, |
|
|
|
|
|
string lot) |
|
|
|
|
|
{ |
|
|
|
|
|
await _repository.DeleteAsync(p => |
|
|
|
|
|
p.ItemCode == itemCode && |
|
|
|
|
|
p.Status == enumInventoryStatus && |
|
|
|
|
|
p.PackingCode == packingCode && |
|
|
|
|
|
p.Lot == lot).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpGet("list/by-packing/{packingCode}")] |
|
|
[HttpGet("list/by-packing/{packingCode}")] |
|
|