From 28aaecee84394cc82d2fb3cbedf58a05f61cc200 Mon Sep 17 00:00:00 2001 From: mahao Date: Fri, 3 Mar 2023 11:51:14 +0800 Subject: [PATCH] Job --- src/WmsWebApi.Application/Boms/BomService.cs | 1 + .../OtherZll/OtherZllService.cs | 1 + src/WmsWebApi.Application/PPlan/PPlanService.cs | 1 + .../ProductRecieve/ProductRecieveService.cs | 3 ++- src/WmsWebApi.Application/Purchase.zip | Bin 2757 -> 0 bytes .../Purchase/PurchaseService.cs | 3 ++- .../StockMove/StockMoveService.cs | 1 + src/WmsWebApi.Application/TbParts/PartService.cs | 1 + .../ZlldcjLogs/ZlldcjLogAppService.cs | 1 + 9 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 src/WmsWebApi.Application/Purchase.zip 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 08c3a7158ea5b496395259d0e6230a3102cd6778..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2757 zcmZ{mXFMC)8^=SV5hPcO+O61Pv{FTlqJ*khK}U=$YJ^H%t5&G08MKO4V%I35h)`;@ zcGaGVQLDpf&7dgiy7zzY{oEJ#f1Vf5dCupY-|u(cea(%I0l5JH04t!Z+|n{+dhWL< zFaW?V3jhcnotpc4Il4M{JDvS|gL3ln!#X-CIC_r=-0U0FUYl$^EI*km;ih@I;pDzH za`qV0g?2uRg<`7(n%}i`|9-vPnCtb=+s{w^a#~S8em?8Ou+-rLYF&d7c0F#7IU|FZ zkui2rZDMux(w3abbl6us;p0jL@%;WH2KS-O^N8@S6F zi@r|iX}BebzE+~K2q!7f%XQ@9Poe}PDifEy!_w+#&L2AYNjCjO`g>%Pe8Tn#Zd#DkuoyY1Cd01q$d$BuCX9J&fNu4YXvZ{5v^1G=x&-ZFdlX2YI&pYYbm$8k$MpXbtw|uv)vez4% zLb|s*-_^+X8ubSuYd@FfRbE7yt%SVZ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%{OHRbH{uy)w3|vw%3hTgBg;>A3=g% znD3aF*HK}Crdm3zyx^L`@vjxrHNoOoc3owR3$t%Fhl${O-|RbVeR)r%yGih~0qwN~ zLvN_U=Pj!a>aYJ4+ZKpK`3E`8jaRYJ?@sqjYqV6`4?8n}vqfACbi^4+Wr@aj{HZYAq8?C|H-@&{Ajyv}?A z1bD6hH+RejcNZ$QZ)MvhSAtFEgFS|)g=20+&os3bWrbg7iit1ck%f#wj@v2SXF2Ro zJrC;iqw6?oZuWKkik4{q2`=Nb`SSKB6vnuphP>0|6j~a5d$P|ySr1q+E&eENMa|^v zWNn;gXD>^9#`1%Mhgnk-KojLeO+RCr`+f?7j;jvvfr=;eyN@8TOsP-yRq{8cNjy@e zh9SD7d&O*M(*dMmhC^(ib4aaFlBLuJYIV~#RKb8%${SDrESW8^Z{AhyLj3+<}W+#M%V_4=I+8^de2Z^^b*S?}{@Iccsh zNhC!i?dPb#b5ypIynd{fIjuW}Zq3?Xyhcd3{fyJB^;qRI_1pv`E2KsAPUo43?Kube zyp_%|Q&Po)aUugv3vD9~O8y7Ui%n-V6 z_Om>`dKr&UL`>s8?E5Vat##rLeFGV>C%agZO9Wr!>p)KSDAeRmV}E|Kpc{-vQr-9wGn$ 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) {