Browse Source

提交导出设置BUG

chenken 8 years ago
parent
commit
24ade77b03

+ 2 - 2
cqb-paper/src/main/java/com/qmth/cqb/paper/model/ExamFile.java

@@ -97,9 +97,9 @@ public class ExamFile implements Serializable{
     	this.examFileType = examFileType;
     }
     
-    public ExamFile(String examId,ExamType examType){
+    public ExamFile(String examId,String orgId){
     	this.examId = examId;
-    	this.examType = examType;
+    	this.orgId = orgId;
     }
     
 	public String getId() {

+ 2 - 2
cqb-paper/src/main/java/com/qmth/cqb/paper/service/impl/ExportStructureServiceImpl.java

@@ -135,8 +135,8 @@ public class ExportStructureServiceImpl implements ExportStructureService {
 		//首先根据id,查询到  exportStructure 对象
 		ExportStructure exportStructure = exportStructureRepo.findOne(id);
 		if(exportStructure != null){
-			//1.首先删除ExamFile表       根据  examId 和    examType  查询   ExamFile对象
-			List<ExamFile> list = examFileService.findExamFileListByExamFile(new ExamFile(exportStructure.getExamId(),exportStructure.getExamType()));
+			//1.首先删除ExamFile表       根据  examId 和    orgId  查询   ExamFile对象
+			List<ExamFile> list = examFileService.findExamFileListByExamFile(new ExamFile(exportStructure.getExamId(),exportStructure.getOrgId()));
 			if(list.size()>0){
 				//根据 ExamFile 对象查询  filePath ,并删除又拍云上的文件 , 然后在删除表里面的数据
 				UpYun upyun = new UpYun(bucketName,userName,password);