From 05b8ccfc9eeadddd65e95ea82479c224d1516b4c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 07 八月 2025 19:19:33 +0800 Subject: [PATCH] no message --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java index 8a4385f..0bdab34 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java @@ -156,6 +156,7 @@ for (Integer row : direction) { Loc one = locService.getOne(new LambdaQueryWrapper<Loc>() + .select(Loc::getId) .eq(Loc::getRow1, row) .eq(Loc::getBay1, loc.getBay1()) .eq(Loc::getLev1, loc.getLev1())); @@ -213,18 +214,18 @@ } @Override + @Transactional(rollbackFor = Exception.class) public void removeLocDetl(Long locId) { List<LocDetl> locDetls = this.list(new LambdaQueryWrapper<LocDetl>().eq(LocDetl::getLocId, locId)); for (LocDetl locDetl : locDetls) { boolean remove = locDetlFieldService.remove(new LambdaQueryWrapper<LocDetlField>().eq(LocDetlField::getDetlId, locDetl.getId())); - if (!remove) { - throw new CoolException("鎵╁睍瀛楁鍒犻櫎澶辫触"); - } - +// if (!remove) { +// throw new CoolException("鎵╁睍瀛楁鍒犻櫎澶辫触"); +// } boolean result = this.removeById(locDetl.getId()); - if (!result) { - throw new CoolException("鏄庣粏鍒犻櫎澶辫触"); - } +// if (!result) { +// throw new CoolException("鏄庣粏鍒犻櫎澶辫触"); +// } } } -- Gitblit v1.9.1