|
|
@ -1018,12 +1018,13 @@ public class AssembleIssueJobAppService |
|
|
|
#if DEBUG
|
|
|
|
#endif
|
|
|
|
var errors = new List<string>(); |
|
|
|
var ret = new AgvResultObject |
|
|
|
{ |
|
|
|
Code = "0", |
|
|
|
Message = "OK", |
|
|
|
ReqCode = "", |
|
|
|
}; |
|
|
|
|
|
|
|
var ret = ReturnMessage("0", "OK"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using var unitOfWork = _unitOfWorkManager.Begin(); |
|
|
|
try |
|
|
|
{ |
|
|
@ -1066,12 +1067,8 @@ public class AssembleIssueJobAppService |
|
|
|
} |
|
|
|
if (errors.Count > 0) |
|
|
|
{ |
|
|
|
return ret = new AgvResultObject() |
|
|
|
{ |
|
|
|
Code = "-1", |
|
|
|
ReqCode = "", |
|
|
|
Message = string.Join(",", errors.ToArray()) |
|
|
|
}; |
|
|
|
return ReturnMessage("-1", string.Join(",", errors.ToArray())); |
|
|
|
|
|
|
|
} |
|
|
|
detailInput.ToLocationCode = tolocationDto.Code; |
|
|
|
detailInput.ToLocationGroup = tolocationDto.LocationGroupCode; |
|
|
@ -1107,24 +1104,13 @@ public class AssembleIssueJobAppService |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
ret = new AgvResultObject |
|
|
|
{ |
|
|
|
Code = "-1", |
|
|
|
ReqCode = "", |
|
|
|
Message = ex.Message |
|
|
|
}; |
|
|
|
ret = ReturnMessage("-1", ex.Message); |
|
|
|
await unitOfWork.RollbackAsync().ConfigureAwait(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (errors.Count > 0) |
|
|
|
{ |
|
|
|
ret = new AgvResultObject |
|
|
|
{ |
|
|
|
Code = "-1", |
|
|
|
Message = string.Join(",", errors.ToArray()), |
|
|
|
ReqCode = "" |
|
|
|
}; |
|
|
|
ret = ReturnMessage("-1", string.Join(",",errors.ToArray())); |
|
|
|
await unitOfWork.RollbackAsync().ConfigureAwait(false); |
|
|
|
} |
|
|
|
return ret; |
|
|
@ -1147,6 +1133,17 @@ public class AssembleIssueJobAppService |
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
#endif
|
|
|
|
return |
|
|
|
new AgvResultObject |
|
|
|
{ |
|
|
|
Code = "0", |
|
|
|
ReqCode = job.AssembleRequestNumber, |
|
|
|
Message = "OK" |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ret = new AgvResultObject |
|
|
|
{ |
|
|
|
Code = "0", |
|
|
|