From b435ec06d5392d2658a176dd962e3ff503a8acf3 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期二, 01 十一月 2022 14:27:14 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/bfasrs' into bfasrs --- src/main/java/com/zy/common/service/CommonService.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java index 40639a2..fedfe28 100644 --- a/src/main/java/com/zy/common/service/CommonService.java +++ b/src/main/java/com/zy/common/service/CommonService.java @@ -55,6 +55,8 @@ private LocDetlService locDetlService; @Autowired private SlaveProperties slaveProperties; + @Autowired + private MatService matService; /** * 鐢熸垚宸ヤ綔鍙� @@ -274,7 +276,11 @@ if (locMast == null) { List<Integer> rows = Utils.getGroupLoc(curRow); - List<LocMast> locMasts = locMastService.queryFreeLocMast(rows, rows.size(), locTypeDto.getLocType1()); + Mat mat = matService.selectByMatnr(matNos.get(0)); + if (Cools.isEmpty(mat.getInoutEveryday())){ + mat.setInoutEveryday(false); + } + List<LocMast> locMasts = locMastService.queryFreeLocMast2(rows, rows.size(), locTypeDto.getLocType1(),mat.getInoutEveryday()); if (!Cools.isEmpty(locMasts)) { Integer innermostRow = Utils.getInnermostRow(locMasts.get(0).getLocNo()); for (LocMast one : locMasts) { -- Gitblit v1.9.1