From d4f51021f6232c31b63c9ea3a628ccdc156378f3 Mon Sep 17 00:00:00 2001 From: lsh <lsh> Date: 星期三, 10 七月 2024 16:18:41 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/service/CommonService.java | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java index 43865c8..2ed3944 100644 --- a/src/main/java/com/zy/common/service/CommonService.java +++ b/src/main/java/com/zy/common/service/CommonService.java @@ -180,11 +180,13 @@ if (basCrnpService.checkSiteError(crnNo, true)) { rowCount = locNecessaryParameters[0]; nearRow = locNecessaryParameters[3]; - List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("row1", nearRow).eq("loc_sts", "O")); - int crnCountO = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("crn_no", crnNo).le("io_type",100)); - if (locMasts.size()-crnCountO<=2){ - times++; - continue; + if (crnNo>5 || crnNo<3){ + List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("row1", nearRow).eq("loc_sts", "O")); + int crnCountO = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("crn_no", crnNo).le("io_type",100)); + if (locMasts.size()-crnCountO<=2){ + times++; + continue; + } } break; } else { @@ -332,12 +334,15 @@ List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>() .eq("row1", nearRow) .eq("loc_sts", "O") - .orderBy("lev1",true).orderBy("bay1",true)); + .orderBy("inv_wh",false).orderBy("lev1",true).orderBy("bay1",true)); + System.out.println("00000000000000000000whsType:"+whsType); + for (LocMast locMast1 : locMasts) { if (!VersionUtils.locMoveCheckLocTypeComplete(locMast1, locTypeDto)) { continue; } if (Utils.BooleanWhsTypeStaIoType(whsType)){ + System.out.println("111111111111111whsType:"+whsType); String shallowLoc = Utils.getDeepLoc(slaveProperties, locMast1.getLocNo()); LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>() .eq("loc_no", shallowLoc).eq("loc_sts", "O")); @@ -346,6 +351,7 @@ break; } } else { + System.out.println("22222222222222222222whsType:"+whsType); if (!Cools.isEmpty(locMast1)) { locMast = locMast1; break; @@ -369,13 +375,13 @@ locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>() .eq("loc_no", shallowLoc).eq("loc_sts", "F")); if (!Cools.isEmpty(locMast2)) { - locMast = locMast2; + locMast = locMast1; break; } else { locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>() .eq("loc_no", shallowLoc).eq("loc_sts", "D")); if (!Cools.isEmpty(locMast2)) { - locMast = locMast2; + locMast = locMast1; break; } } -- Gitblit v1.9.1