|
@@ -95,9 +95,9 @@ public class Solfege2OWExport implements IOW2Export {
|
|
|
File file = new File(dir, "答案路径.txt");
|
|
|
file.createNewFile();
|
|
|
FileOutputStream fileOutputStream = new FileOutputStream(file);
|
|
|
- CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
- SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
- OutputStreamWriter outBatch = new OutputStreamWriter(fileOutputStream, sysConfig.getConfigValue());
|
|
|
+// CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
+// SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
+ OutputStreamWriter outBatch = new OutputStreamWriter(fileOutputStream, SystemConstant.CHARSET_NAME);
|
|
|
BufferedWriter bufferedWriter = new BufferedWriter(outBatch);
|
|
|
try {
|
|
|
while (!over) {
|
|
@@ -161,9 +161,9 @@ public class Solfege2OWExport implements IOW2Export {
|
|
|
File file = new File(dir, "科目数据.txt");
|
|
|
file.createNewFile();
|
|
|
FileOutputStream fileOutputStream = new FileOutputStream(file);
|
|
|
- CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
- SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
- OutputStreamWriter outBatch = new OutputStreamWriter(fileOutputStream, sysConfig.getConfigValue());
|
|
|
+// CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
+// SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
+ OutputStreamWriter outBatch = new OutputStreamWriter(fileOutputStream, SystemConstant.CHARSET_NAME);
|
|
|
BufferedWriter bufferedWriter = new BufferedWriter(outBatch);
|
|
|
try {
|
|
|
while (!over) {
|
|
@@ -224,9 +224,9 @@ public class Solfege2OWExport implements IOW2Export {
|
|
|
File file = new File(dir, "student-paper.txt");
|
|
|
file.createNewFile();
|
|
|
FileOutputStream fileOutputStream = new FileOutputStream(file);
|
|
|
- CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
- SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
- OutputStreamWriter outBatch = new OutputStreamWriter(fileOutputStream, sysConfig.getConfigValue());
|
|
|
+// CommonCacheService commonCacheService = SpringContextHolder.getBean(CommonCacheService.class);
|
|
|
+// SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
+ OutputStreamWriter outBatch = new OutputStreamWriter(fileOutputStream, SystemConstant.CHARSET_NAME);
|
|
|
BufferedWriter bufferedWriter = new BufferedWriter(outBatch);
|
|
|
try {
|
|
|
while (!over) {
|