|
|
@@ -16,7 +16,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import com.uas.report.service.FileService;
|
|
|
-import com.uas.report.util.ZipUtils;
|
|
|
|
|
|
/**
|
|
|
* 文件操作请求
|
|
|
@@ -123,14 +122,4 @@ public class FileController {
|
|
|
public List<Map<String, Object>> listFiles(String filePath, Boolean isAbsolutePath) {
|
|
|
return fileService.listFiles(filePath, isAbsolutePath);
|
|
|
}
|
|
|
-
|
|
|
- @RequestMapping("/test")
|
|
|
- @ResponseBody
|
|
|
- public String test() {
|
|
|
- byte[] data = ZipUtils.zipFolder("C:/sunyj/reports/60/tmp", null);
|
|
|
- if (!ArrayUtils.isEmpty(data)) {
|
|
|
- ZipUtils.unzip(data, "C:/sunyj/reports/tmp");
|
|
|
- }
|
|
|
- return "od";
|
|
|
- }
|
|
|
}
|