Commit 97e2f75bce38a5190fe3399b933d074eeb969da0
1 parent
933d8f73
库位比较库区只显示立库
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
1 additions
and
3 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/zone/controller/ZoneController.java
@@ -182,9 +182,7 @@ public class ZoneController extends JeecgController<Zone, IZoneService> { | @@ -182,9 +182,7 @@ public class ZoneController extends JeecgController<Zone, IZoneService> { | ||
182 | zoneLambdaQueryWrapper.in(Zone::getCode, Arrays.asList(sysUser.getZoneCode().split(StrUtil.COMMA))); | 182 | zoneLambdaQueryWrapper.in(Zone::getCode, Arrays.asList(sysUser.getZoneCode().split(StrUtil.COMMA))); |
183 | } | 183 | } |
184 | } | 184 | } |
185 | - if (!CollectionUtils.isEmpty(zoneTypeList)) { | ||
186 | - zoneLambdaQueryWrapper.in(Zone::getType, zoneTypeList); | ||
187 | - } | 185 | + zoneLambdaQueryWrapper.in(!CollectionUtils.isEmpty(zoneTypeList), Zone::getType, zoneTypeList); |
188 | List<Zone> zoneList = zoneService.list(zoneLambdaQueryWrapper); | 186 | List<Zone> zoneList = zoneService.list(zoneLambdaQueryWrapper); |
189 | return Result.OK(zoneList); | 187 | return Result.OK(zoneList); |
190 | } | 188 | } |