自动化立体仓库 - WMS系统
1
ZY
2025-03-29 c65db22f67af8018ae7105ea00d8743e42835e13
src/main/java/com/zy/common/model/OutLocDto.java
@@ -40,17 +40,26 @@
        for (LocDetl locDetl : locDetls) {
            Iterator<LocDetlDto> iterator = locDetlDtosCp.iterator();
            while (iterator.hasNext()) {
                LocDetl next = iterator.next().getLocDetl();
                if (!next.getMatnr().equals(locDetl.getMatnr())) {
                LocDetlDto next = iterator.next();
                if (!next.getLocDetl().getMatnr().equals(locDetl.getMatnr())) {
                    continue;
                }
                if (!Cools.eq(next.getBatch(), locDetl.getBatch())) {
                if (!Cools.eq(next.getLocDetl().getBatch(), locDetl.getBatch())) {
                    continue;
                }
                if (next.getAnfme() > locDetl.getAnfme()) {
                    throw new CoolException("服务器内部错误");
                if(!Cools.eq(next.getLocDetl().getSuppCode(),locDetl.getSuppCode())){
                    continue;
                }
                if (next.getAnfme().equals(locDetl.getAnfme())) {
                if(!Cools.eq(next.getLocDetl().getThreeCode(),locDetl.getThreeCode())){
                    continue;
                }
                if(!Cools.eq(next.getLocDetl().getDeadTime(),locDetl.getDeadTime())){
                    continue;
                }
                if (next.getCount() > locDetl.getAnfme()) {
                    throw new CoolException("数量超过库存数量");
                }
                if (next.getCount().equals(locDetl.getAnfme())) {
                    sameNumber++;
                    iterator.remove();
                    break;