| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | return await _unitOfWorkManage.BeginTranAsync(async () => |
| | | { |
| | | if (task.TaskType == (int)TaskOutboundTypeEnum.OutEmpty) |
| | | { |
| | | location.LocationStatus = LocationStatusEnum.Free.GetHashCode(); |
| | | |
| | | var updateResult = await _locationInfoService.UpdateLocationInfoAsync(location); |
| | | var deleteResult = _stockInfoService.DeleteData(stockInfo).Status; |
| | | if (!updateResult && !deleteResult) |
| | | return content.Error("任务完成失败"); |
| | | |
| | | var completeResult1 = await CompleteTaskAsync(task, "出库完成"); |
| | | return content.OK(); |
| | | |
| | | } |
| | | |
| | | stockInfo.LocationId = 0; |
| | | stockInfo.LocationCode = string.Empty; |
| | | stockInfo.OutboundDate = DateTime.Now; |
| | | stockInfo.StockStatus = (int)StockStatusEmun.出库完成; |
| | | |
| | | location.LocationStatus = LocationStatusEnum.Free.GetHashCode(); |
| | | |