|
@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
+import java.net.URLEncoder;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -165,6 +166,7 @@ public class WpsFileServiceImpl extends ServiceImpl<WpsFileMapper, WpsFile> impl
|
|
// 构建fileInfo
|
|
// 构建fileInfo
|
|
FileDTO file = new FileDTO();
|
|
FileDTO file = new FileDTO();
|
|
BeanUtils.copyProperties(fileEntity,file);
|
|
BeanUtils.copyProperties(fileEntity,file);
|
|
|
|
+ file.setDownload_url(URLEncoder.encode(fileEntity.getDownloadUrl()));
|
|
file.setUser_acl(userAcl);
|
|
file.setUser_acl(userAcl);
|
|
file.setWatermark(watermark);
|
|
file.setWatermark(watermark);
|
|
result.put("file",file);
|
|
result.put("file",file);
|