Browse Source

修改发料申请没有明细

dev_DY_CC
Zheng 11 months ago
parent
commit
3c5c0f9409
  1. 8
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/AssembleIssueRequests/AssembleIssueRequestManager.cs
  2. 8
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/CoatingIssuelRequests/CoatingIssueRequestManager.cs
  3. 8
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/InjectionIssueRequests/InjectionIssueRequestManager.cs
  4. 10
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/KittingIssueRequests/KittingIssueRequestManager.cs
  5. 7
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/SparePartIssueRequests/SparePartIssueRequestManager.cs

8
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/AssembleIssueRequests/AssembleIssueRequestManager.cs

@ -36,9 +36,10 @@ public class AssembleIssueRequestManager
entity.Submit();
entity.Agree();
entity.RequestStatus = EnumRequestStatus.Partial;
await _repository.InsertAsync(entity).ConfigureAwait(false);
await LocalEventBus.PublishAsync(new SfsHandledEntityEventData<AssembleIssueRequest>(entity), false)
.ConfigureAwait(false);
await _repository.InsertAsync(entity).ConfigureAwait(false);
return entity;
}
@ -58,6 +59,9 @@ public class AssembleIssueRequestManager
public virtual async Task<AssembleIssueRequest> UpdateByEntityAsync(AssembleIssueRequest 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);
}
}

8
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/CoatingIssuelRequests/CoatingIssueRequestManager.cs

@ -33,9 +33,10 @@ public class CoatingIssueRequestManager
entity.Submit();
entity.Agree();
entity.RequestStatus = EnumRequestStatus.Partial;
await _repository.InsertAsync(entity).ConfigureAwait(false);
await LocalEventBus.PublishAsync(new SfsHandledEntityEventData<CoatingIssueRequest>(entity), false)
.ConfigureAwait(false);
await _repository.InsertAsync(entity).ConfigureAwait(false);
return entity;
}
@ -55,6 +56,9 @@ public class CoatingIssueRequestManager
public virtual async Task<CoatingIssueRequest> UpdateByEntityAsync(CoatingIssueRequest 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);
}
}

8
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/InjectionIssueRequests/InjectionIssueRequestManager.cs

@ -33,9 +33,10 @@ public class InjectionIssueRequestManager
entity.Submit();
entity.Agree();
entity.RequestStatus = EnumRequestStatus.Partial;
await _repository.InsertAsync(entity).ConfigureAwait(false);
await LocalEventBus.PublishAsync(new SfsHandledEntityEventData<InjectionIssueRequest>(entity), false)
.ConfigureAwait(false);
await _repository.InsertAsync(entity).ConfigureAwait(false);
return entity;
}
@ -55,6 +56,9 @@ public class InjectionIssueRequestManager
public virtual async Task<InjectionIssueRequest> UpdateByEntityAsync(InjectionIssueRequest 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);
}
}

10
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/KittingIssueRequests/KittingIssueRequestManager.cs

@ -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);
}
}

7
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/IssueRequests/SparePartIssueRequests/SparePartIssueRequestManager.cs

@ -33,9 +33,9 @@ public class SparePartIssueRequestManager
entity.Submit();
entity.Agree();
entity.RequestStatus = EnumRequestStatus.Partial;
await _repository.InsertAsync(entity).ConfigureAwait(false);
await LocalEventBus.PublishAsync(new SfsHandledEntityEventData<SparePartIssueRequest>(entity),false)
.ConfigureAwait(false);
await _repository.InsertAsync(entity).ConfigureAwait(false);
return entity;
}
@ -55,6 +55,9 @@ public class SparePartIssueRequestManager
public virtual async Task<SparePartIssueRequest> UpdateByEntityAsync(SparePartIssueRequest 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);
}
}

Loading…
Cancel
Save