|
@@ -133,6 +133,7 @@ public class WpsFileServiceImpl extends ServiceImpl<WpsFileMapper, WpsFile> impl
|
|
|
}
|
|
|
|
|
|
private Map<String,Object> getDbFileInfo(String userId,String fileId){
|
|
|
+ log.info("获取dbfileInfo");
|
|
|
Map<String,Object>result = new HashMap<>();
|
|
|
WpsFile fileEntity = this.getById(fileId);
|
|
|
// 初始化文件读写权限为read
|
|
@@ -145,7 +146,7 @@ public class WpsFileServiceImpl extends ServiceImpl<WpsFileMapper, WpsFile> impl
|
|
|
BeanUtils.copyProperties(userAclEntity,userAcl);
|
|
|
permission = userAclEntity.getPermission();
|
|
|
}
|
|
|
-
|
|
|
+ log.info("permission:{}",permission);
|
|
|
// 增加水印
|
|
|
WpsFileWatermark watermarkEntity = wpsFileWatermarkService.findFirstByFileId(fileId);
|
|
|
WatermarkBO watermark = new WatermarkBO();
|
|
@@ -168,7 +169,8 @@ public class WpsFileServiceImpl extends ServiceImpl<WpsFileMapper, WpsFile> impl
|
|
|
file.setWatermark(watermark);
|
|
|
result.put("file",file);
|
|
|
result.put("user",user);
|
|
|
- System.out.println(result.toString());
|
|
|
+ log.info("file:{}",file.toString());
|
|
|
+ log.info("user:{}",user.toString());
|
|
|
return result;
|
|
|
}
|
|
|
|