|
@@ -37,7 +37,7 @@ public class WmTemplateFileController {
|
|
|
@SneakyThrows
|
|
|
public void templateFileDownload(@RequestBody String paramStr, HttpServletResponse response) {
|
|
|
String fileName = JSONUtil.parseObj(paramStr).getStr("fileName");
|
|
|
- String locPath = (String) OsEnvUtils.getEachEnvPaths().get("EXCEL_FILE_PATH");
|
|
|
+ String locPath = OsEnvUtils.getEachEnvPaths().get("EXCEL_FILE_PATH");
|
|
|
File file = new File(locPath + fileName);
|
|
|
byte[] bytesArray = new byte[(int) file.length()];
|
|
|
FileInputStream fileInputStream = new FileInputStream(file);
|