|
|
@ -1,6 +1,5 @@
|
|
|
|
package com.glxp.sale.admin.upload;
|
|
|
|
package com.glxp.sale.admin.upload;
|
|
|
|
|
|
|
|
|
|
|
|
import com.glxp.sale.admin.annotation.AuthRuleAnnotation;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
@ -19,7 +18,6 @@ public class ImageController {
|
|
|
|
@Value("${file_path}")
|
|
|
|
@Value("${file_path}")
|
|
|
|
private String filePath;
|
|
|
|
private String filePath;
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping(value = "/udiwms/image/register/file/getImage")
|
|
|
|
@GetMapping(value = "/udiwms/image/register/file/getImage")
|
|
|
|
public void getImage(HttpServletResponse response
|
|
|
|
public void getImage(HttpServletResponse response
|
|
|
|
, @RequestParam String type
|
|
|
|
, @RequestParam String type
|
|
|
@ -45,7 +43,6 @@ public class ImageController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping(value = "/udiwms/donwload/file")
|
|
|
|
@GetMapping(value = "/udiwms/donwload/file")
|
|
|
|
public void download(HttpServletResponse response,
|
|
|
|
public void download(HttpServletResponse response,
|
|
|
|
@RequestParam String fileName) throws IOException {
|
|
|
|
@RequestParam String fileName) throws IOException {
|
|
|
@ -69,7 +66,6 @@ public class ImageController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping(value = "/spms/donwload/pdf")
|
|
|
|
@GetMapping(value = "/spms/donwload/pdf")
|
|
|
|
public void downloadPdf(HttpServletResponse response,
|
|
|
|
public void downloadPdf(HttpServletResponse response,
|
|
|
|
@RequestParam String fileName) throws IOException {
|
|
|
|
@RequestParam String fileName) throws IOException {
|
|
|
|