|
@@ -302,7 +302,7 @@ public class ExportPaperServiceImpl implements ExportPaperService{
|
|
|
*/
|
|
|
private void makeComputerTestPaperToJsonFile(String courseCode,ComputerTestPaper computerTestPaper,String jsonDirectoryPath){
|
|
|
//创建新的JSON文件
|
|
|
- File file = new File(jsonDirectoryPath + File.separator+courseCode+"_" +".json");
|
|
|
+ File file = new File(jsonDirectoryPath + File.separator+courseCode+".json");
|
|
|
//将对象转成 json对象
|
|
|
Gson gson = new Gson();
|
|
|
String strJSON = gson.toJson(computerTestPaper);
|