|
|
@ -867,7 +867,6 @@ public class AssembleIssueJobAppService |
|
|
|
{ |
|
|
|
successList.Add(jobres.Message); |
|
|
|
} |
|
|
|
|
|
|
|
if (errors.Count > 0) |
|
|
|
{ |
|
|
|
res.Code = -1; |
|
|
@ -964,18 +963,14 @@ public class AssembleIssueJobAppService |
|
|
|
{ |
|
|
|
errors.Add($"零件号{detail.MatCode}不存在!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var entity = itmDetails.FirstOrDefault(p => p.ItemCode == detail.MatCode); |
|
|
|
if (entity == null) |
|
|
|
{ |
|
|
|
errors.Add($"零件号{detail.MatCode}不在任务明细内!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (errors.Count > 0) |
|
|
|
{ |
|
|
|
await unitOfWork.RollbackAsync().ConfigureAwait(false); |
|
|
|
return ret = new AgvResultObject() |
|
|
|
{ |
|
|
|
Code = "-1", |
|
|
@ -985,7 +980,7 @@ public class AssembleIssueJobAppService |
|
|
|
} |
|
|
|
var dto = new AssembleIssueJobDetailDTO(); |
|
|
|
dto.InjectFrom(entity); |
|
|
|
dto.HandledToLocationCode = toloc.Code; |
|
|
|
dto.HandledToLocationCode = tolocation.Code; |
|
|
|
dto.HandledToLocationGroup = tolocation.LocationGroupCode; |
|
|
|
dto.HandledToLocationArea = tolocation.AreaCode; |
|
|
|
dto.HandledToLocationErpCode = tolocation.ErpLocationCode; |
|
|
@ -1006,14 +1001,12 @@ public class AssembleIssueJobAppService |
|
|
|
details.Add(dto); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//await ExecuteDetailExtAsync(itm.Id, entity.Id, dto).ConfigureAwait(false);
|
|
|
|
} |
|
|
|
|
|
|
|
if (errors.Count > 0) |
|
|
|
{ |
|
|
|
await unitOfWork.RollbackAsync().ConfigureAwait(false); |
|
|
|
ret = new AgvResultObject() |
|
|
|
{ |
|
|
|
Code = "-1", |
|
|
@ -1040,7 +1033,7 @@ public class AssembleIssueJobAppService |
|
|
|
ReqCode = job.AssembleRequestNumber, |
|
|
|
Message = ex.Message, |
|
|
|
}; |
|
|
|
await unitOfWork.RollbackAsync(); |
|
|
|
await unitOfWork.RollbackAsync().ConfigureAwait(false); |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|