fix: OSS资源增加按店铺筛选
This commit is contained in:
parent
ed3a2ae9fc
commit
fcac4002b1
@ -108,6 +108,7 @@ public class UploadController {
|
|||||||
newFile.setOwnerName(authUser.getStoreName());
|
newFile.setOwnerName(authUser.getStoreName());
|
||||||
} else {
|
} else {
|
||||||
newFile.setOwnerId(authUser.getId());
|
newFile.setOwnerId(authUser.getId());
|
||||||
|
newFile.setOwnerName(authUser.getNickName());
|
||||||
}
|
}
|
||||||
|
|
||||||
//存储文件目录
|
//存储文件目录
|
||||||
|
@ -25,6 +25,9 @@ public class FileOwnerDTO extends PageVO {
|
|||||||
@ApiModelProperty(value = "拥有者id")
|
@ApiModelProperty(value = "拥有者id")
|
||||||
private String ownerId;
|
private String ownerId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "拥有者名称")
|
||||||
|
private String ownerName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "用户类型")
|
@ApiModelProperty(value = "用户类型")
|
||||||
private String userEnums;
|
private String userEnums;
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ public class FileServiceImpl extends ServiceImpl<FileMapper, File> implements Fi
|
|||||||
public IPage<File> customerPage(FileOwnerDTO fileOwnerDTO) {
|
public IPage<File> customerPage(FileOwnerDTO fileOwnerDTO) {
|
||||||
LambdaQueryWrapper<File> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<File> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getName()), File::getName, fileOwnerDTO.getName())
|
queryWrapper.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getName()), File::getName, fileOwnerDTO.getName())
|
||||||
|
.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getOwnerName()), File::getOwnerName, fileOwnerDTO.getOwnerName())
|
||||||
.eq(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getFileDirectoryId()),File::getFileDirectoryId, fileOwnerDTO.getFileDirectoryId())
|
.eq(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getFileDirectoryId()),File::getFileDirectoryId, fileOwnerDTO.getFileDirectoryId())
|
||||||
.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getFileKey()), File::getFileKey, fileOwnerDTO.getFileKey())
|
.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getFileKey()), File::getFileKey, fileOwnerDTO.getFileKey())
|
||||||
.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getFileType()), File::getFileType, fileOwnerDTO.getFileType())
|
.like(CharSequenceUtil.isNotEmpty(fileOwnerDTO.getFileType()), File::getFileType, fileOwnerDTO.getFileType())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user