|
|
@ -6,6 +6,8 @@ using Win_in.Sfs.Shared.Event; |
|
|
|
|
|
|
|
namespace Win_in.Sfs.Wms.Store.Domain; |
|
|
|
|
|
|
|
using Volo.Abp.Uow; |
|
|
|
|
|
|
|
public class KittingIssueRequestManager |
|
|
|
: SfsStoreRequestManagerBase<KittingIssueRequest, KittingIssueRequestDetail> |
|
|
|
, IKittingIssueRequestManager |
|
|
@ -33,9 +35,10 @@ public class KittingIssueRequestManager |
|
|
|
entity.Submit(); |
|
|
|
entity.Agree(); |
|
|
|
entity.RequestStatus = EnumRequestStatus.Partial; |
|
|
|
await _repository.InsertAsync(entity,true).ConfigureAwait(false); |
|
|
|
await LocalEventBus.PublishAsync(new SfsHandledEntityEventData<KittingIssueRequest>(entity),false) |
|
|
|
.ConfigureAwait(false); |
|
|
|
await _repository.InsertAsync(entity).ConfigureAwait(false); |
|
|
|
|
|
|
|
return entity; |
|
|
|
} |
|
|
|
|
|
|
@ -55,6 +58,9 @@ public class KittingIssueRequestManager |
|
|
|
|
|
|
|
public virtual async Task<KittingIssueRequest> UpdateByEntityAsync(KittingIssueRequest request) |
|
|
|
{ |
|
|
|
return await _repository.UpdateAsync(request).ConfigureAwait(false); |
|
|
|
await Task.CompletedTask.ConfigureAwait(false); |
|
|
|
var entity=await _repository.GetAsync(request.Id).ConfigureAwait(false); |
|
|
|
entity.Details = request.Details; |
|
|
|
return await _repository.UpdateAsync(entity,true).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|