|
@@ -131,11 +131,10 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
@Override
|
|
@Override
|
|
public void saveExtractConfigAndBuildPaperFile(ExtractConfig extractConfig,Integer isbuildFile,User user) throws Exception {
|
|
public void saveExtractConfigAndBuildPaperFile(ExtractConfig extractConfig,Integer isbuildFile,User user) throws Exception {
|
|
//查询试卷导出设置
|
|
//查询试卷导出设置
|
|
- /* 调卷规则保存,不需要查询试卷结构
|
|
|
|
ExportStructure exportStructure = null;
|
|
ExportStructure exportStructure = null;
|
|
if(isbuildFile==1){
|
|
if(isbuildFile==1){
|
|
exportStructure = exportStructureService.findStructureByExamId(extractConfig.getExamId()+"");
|
|
exportStructure = exportStructureService.findStructureByExamId(extractConfig.getExamId()+"");
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
//生成试卷
|
|
//生成试卷
|
|
Map<String, String> finishedPaperIdMap = extractConfigService.saveExtractConfig(extractConfig,user);
|
|
Map<String, String> finishedPaperIdMap = extractConfigService.saveExtractConfig(extractConfig,user);
|
|
if(isbuildFile==1){
|
|
if(isbuildFile==1){
|
|
@@ -151,7 +150,7 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
while(iterator.hasNext()){
|
|
while(iterator.hasNext()){
|
|
Entry<String,String> entry = iterator.next();
|
|
Entry<String,String> entry = iterator.next();
|
|
String paperId = entry.getValue();
|
|
String paperId = entry.getValue();
|
|
- uploadPaperFile(extractConfig,paperId,user);
|
|
|
|
|
|
+ uploadPaperFile(extractConfig,paperId,exportStructure,user);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -164,13 +163,13 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
* @param accessUser
|
|
* @param accessUser
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- private void uploadPaperFile(ExtractConfig extractConfig,String paperId,User user) throws Exception {
|
|
|
|
|
|
+ private void uploadPaperFile(ExtractConfig extractConfig,String paperId,ExportStructure exportStructure,User user) throws Exception {
|
|
ExportServiceManage esm = exportServiceManageRepo.findByOrgName(user.getRootOrgName());
|
|
ExportServiceManage esm = exportServiceManageRepo.findByOrgName(user.getRootOrgName());
|
|
if(esm == null){
|
|
if(esm == null){
|
|
esm = exportServiceManageRepo.findByOrgName("陕西师范大学");
|
|
esm = exportServiceManageRepo.findByOrgName("陕西师范大学");
|
|
}
|
|
}
|
|
ExportPaperAbstractService exportPaperAbstractService = (ExportPaperAbstractService) SpringContextUtils.getBeanById(esm.getExportServiceName());
|
|
ExportPaperAbstractService exportPaperAbstractService = (ExportPaperAbstractService) SpringContextUtils.getBeanById(esm.getExportServiceName());
|
|
- exportPaperAbstractService.uploadFile(extractConfig,paperId,user);
|
|
|
|
|
|
+ exportPaperAbstractService.uploadFile(extractConfig,paperId,exportStructure,user);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|