|
@@ -73,7 +73,11 @@ public class MetadataController extends BladeController {
|
|
|
@ApiOperation(value = "元数据容器分类详情", notes = "传入分类类型")
|
|
|
public R<IPage<MetadataClassification>> allocationDetail(@ApiIgnore @RequestParam String fileStorage, Query query) {
|
|
|
QueryWrapper<MetadataClassification> metadata = new QueryWrapper<>();
|
|
|
- metadata.lambda().ne(MetadataClassification :: getFileStorageType,fileStorage).eq(MetadataClassification::getIsDeleted,0);
|
|
|
+ if(fileStorage.isEmpty() || fileStorage.equals("0")){
|
|
|
+ metadata.lambda().eq(MetadataClassification::getIsDeleted,0);
|
|
|
+ }else{
|
|
|
+ metadata.lambda().notLike(MetadataClassification :: getFileStorageType,fileStorage).eq(MetadataClassification::getIsDeleted,0);
|
|
|
+ }
|
|
|
IPage<MetadataClassification> page = iMetadataClassificationService.page(Condition.getPage(query), metadata);
|
|
|
return R.data(page);
|
|
|
}
|