|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package com.glxp.sale.admin.idc.controller;
|
|
|
|
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
|
import java.util.Enumeration;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -84,6 +86,15 @@ public class IdcController {
|
|
|
|
|
return idcService.downlaodSuccess(request, params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/spssync/common/downloadFile")
|
|
|
|
|
public void downloadFile(HttpServletResponse response,@RequestParam String fileName) throws UnsupportedEncodingException {
|
|
|
|
|
if (fileName != null) {
|
|
|
|
|
response.setHeader("Content-disposition", "attachment; filename=" + URLEncoder.encode(fileName, "UTF-8"));
|
|
|
|
|
}
|
|
|
|
|
idcService.downloadFile(fileName, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/mapi/**")
|
|
|
|
|
public Object mapi(HttpServletRequest request, HttpServletResponse httpServletResponse) {
|
|
|
|
|
String uri = uriUtils.parseUri(request.getRequestURL().toString());
|
|
|
|
|