|
@@ -5,8 +5,10 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
+import com.qmth.teachcloud.common.service.TeachcloudCommonService;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -74,6 +76,8 @@ public class ScanOmrTaskServiceImpl extends ServiceImpl<ScanOmrTaskMapper, ScanO
|
|
|
private ConcurrentService concurrentService;
|
|
|
@Autowired
|
|
|
private MarkQuestionService questionService;
|
|
|
+ @Resource
|
|
|
+ private TeachcloudCommonService teachcloudCommonService;
|
|
|
|
|
|
private static final String OMR_SUSPECT = "?";
|
|
|
|
|
@@ -413,7 +417,7 @@ public class ScanOmrTaskServiceImpl extends ServiceImpl<ScanOmrTaskMapper, ScanO
|
|
|
page.setIndex(taskPage.getIndex());
|
|
|
ScanPaperPage p = pageService.findPaperIdAndIndex(task.getPaperId(), taskPage.getIndex());
|
|
|
page.setRecogData(p.getRecogData());
|
|
|
- page.setUri(p.getSheetPath());
|
|
|
+ page.setUri(teachcloudCommonService.filePreview(p.getSheetPath()));
|
|
|
pages.add(page);
|
|
|
}
|
|
|
}
|