diff --git a/src/WmsWebApi.Application/Boms/BomService.cs b/src/WmsWebApi.Application/Boms/BomService.cs index 6632bf3..6a111e3 100644 --- a/src/WmsWebApi.Application/Boms/BomService.cs +++ b/src/WmsWebApi.Application/Boms/BomService.cs @@ -204,6 +204,7 @@ public class BomService : ApplicationService, IBomService bOtherWork = true; result.MESSAGE = "非长春工厂数据!"; } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) { diff --git a/src/WmsWebApi.Application/OtherZll/OtherZllService.cs b/src/WmsWebApi.Application/OtherZll/OtherZllService.cs index e5fb1cf..f4760f6 100644 --- a/src/WmsWebApi.Application/OtherZll/OtherZllService.cs +++ b/src/WmsWebApi.Application/OtherZll/OtherZllService.cs @@ -336,6 +336,7 @@ public class OtherZllService : ApplicationService, IOtherZllService { result.MESSAGE = "err:非物流领料单"; } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) { diff --git a/src/WmsWebApi.Application/PPlan/PPlanService.cs b/src/WmsWebApi.Application/PPlan/PPlanService.cs index 4dc8a7b..822d80a 100644 --- a/src/WmsWebApi.Application/PPlan/PPlanService.cs +++ b/src/WmsWebApi.Application/PPlan/PPlanService.cs @@ -171,6 +171,7 @@ public class PPlanService : ApplicationService, IPPlanService result.MESSAGE = $"非WinWMS使用的物料号!{_planDto.MATNR}"; } } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) { diff --git a/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs b/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs index 32cd3c2..71d0eb9 100644 --- a/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs +++ b/src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs @@ -255,7 +255,8 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService if (_stockUpdateList != null && _stockUpdateList.Count() > 0) await _tmPgWmsUpdate.UpdateTsStock(_stockUpdateList); await _tlTransactionRepository.AddAsync(_transList); - } + } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) { diff --git a/src/WmsWebApi.Application/Purchase.zip b/src/WmsWebApi.Application/Purchase.zip deleted file mode 100644 index 08c3a71..0000000 Binary files a/src/WmsWebApi.Application/Purchase.zip and /dev/null differ diff --git a/src/WmsWebApi.Application/Purchase/PurchaseService.cs b/src/WmsWebApi.Application/Purchase/PurchaseService.cs index 4f501a6..a61d57d 100644 --- a/src/WmsWebApi.Application/Purchase/PurchaseService.cs +++ b/src/WmsWebApi.Application/Purchase/PurchaseService.cs @@ -348,7 +348,8 @@ public class PurchaseService : ApplicationService, IPurchaseService bUpdate = true; result.MESSAGE = $"err:单据 {_purchaseDto.MBLNR} 已存在"; } - } + } + await CurrentUnitOfWork.SaveChangesAsync(); } catch(Exception ex) { diff --git a/src/WmsWebApi.Application/StockMove/StockMoveService.cs b/src/WmsWebApi.Application/StockMove/StockMoveService.cs index ba2d8a6..f8a647f 100644 --- a/src/WmsWebApi.Application/StockMove/StockMoveService.cs +++ b/src/WmsWebApi.Application/StockMove/StockMoveService.cs @@ -391,6 +391,7 @@ public class StockMoveService : ApplicationService, IStockMoveService await _tmPgWmsUpdate.DeleteTsStock(_stockDelList); await _tlTransactionRepository.AddAsync(_transList); } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) { diff --git a/src/WmsWebApi.Application/TbParts/PartService.cs b/src/WmsWebApi.Application/TbParts/PartService.cs index e5537b6..eb7d8f1 100644 --- a/src/WmsWebApi.Application/TbParts/PartService.cs +++ b/src/WmsWebApi.Application/TbParts/PartService.cs @@ -274,6 +274,7 @@ public class PartService : ApplicationService, IPartService result.MESSAGE = $"非WinWMS使用的物料号!{_part.MATNR.Trim()}"; } } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) { diff --git a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs index d7d7f91..53b1103 100644 --- a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs +++ b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs @@ -232,6 +232,7 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService } } } + await CurrentUnitOfWork.SaveChangesAsync(); } catch (Exception ex) {