|
@@ -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);
|