Commit 97e2f75bce38a5190fe3399b933d074eeb969da0

Authored by 谭毅彬
1 parent 933d8f73

库位比较库区只显示立库

Signed-off-by: TanYibin <5491541@qq.com>
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/zone/controller/ZoneController.java
... ... @@ -182,9 +182,7 @@ public class ZoneController extends JeecgController&lt;Zone, IZoneService&gt; {
182 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 186 List<Zone> zoneList = zoneService.list(zoneLambdaQueryWrapper);
189 187 return Result.OK(zoneList);
190 188 }
... ...