| | |
| | | .like(AssetMain::getAssetCode, query.getNameOrCode())) |
| | | .list() |
| | | .stream() |
| | | .map(AssetMain::getAssetTypeId) |
| | | .map(AssetMain::getId) |
| | | .collect(Collectors.toList()); |
| | | query.setAssetMainIds(assetMainIds); |
| | | if (assetMainIds.isEmpty()){ |
| | | res.setPageList(new PageInfo<>()); |
| | | return R.ok(res); |
| | | } |
| | | }else{ |
| | | List<Integer> assetMainIds = assetMainService.lambdaQuery() |
| | | .eq(AssetMain::getAssetTypeId,8) |
| | | .list() |
| | | .stream() |
| | | .map(AssetMain::getId) |
| | | .collect(Collectors.toList()); |
| | | query.setAssetMainIds(assetMainIds); |
| | | if (assetMainIds.isEmpty()){ |