Browse Source

修改模版路径

dev_shibei_match
jianjun 4 years ago
parent
commit
b2af5948e4
  1. 24
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

24
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

@ -90,7 +90,7 @@ public class IcResiUserController {
/**
* 居民下载模版临时目录
*/
private String OSS_TEMP_RESI_TEMP_DIR = "file-temp/resi-temp/";
private String OSS_TEMP_RESI_TEMP_DIR = "file-template/resi-template/";
/**
* 本地模版缓存目录
*/
@ -381,28 +381,6 @@ public class IcResiUserController {
return file;
}
public static void main(String[] args) {
String home = System.getProperty("user.home");
Path exportDir = Paths.get(home, "epmet_files", "ic_user_export");
if (Files.notExists(exportDir)) {
try {
Files.createDirectories(exportDir);
} catch (IOException e) {
log.error("创建数字赋能平台下载目录失败");
}
}
Path IC_RESI_DOWNLOAD_DIR = exportDir;
String fileType = ".xlsx";
String fileName = "customerId" + fileType;
File file = new File(IC_RESI_DOWNLOAD_DIR.resolve(fileName).toString());
System.out.println("file路径:" + file);
System.out.println(file.exists());
}
@NotNull
private Map<String, Map<String, FormItemResult>> buildItemMap(CustomerFormResultDTO resiFormItems) {
Map<String, Map<String, FormItemResult>> otherSheetItems = new HashMap<>();

Loading…
Cancel
Save