|
@@ -18,6 +18,7 @@ import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordForMarkingEntity
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamStudentEntity;
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamStudentEntity;
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordForMarkingService;
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordForMarkingService;
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordQuestionsService;
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordQuestionsService;
|
|
|
|
+import cn.com.qmth.examcloud.support.filestorage.FileStorageUtil;
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
@@ -36,13 +37,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.persistence.criteria.Predicate;
|
|
import javax.persistence.criteria.Predicate;
|
|
-
|
|
|
|
-import static cn.com.qmth.examcloud.core.oe.admin.base.Constants.OE_CODE_400;
|
|
|
|
-
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+import static cn.com.qmth.examcloud.core.oe.admin.base.Constants.OE_CODE_400;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @author chenken
|
|
* @author chenken
|
|
* @date 2018年9月27日 上午11:01:23
|
|
* @date 2018年9月27日 上午11:01:23
|
|
@@ -89,7 +89,7 @@ public class ExamRecordForMarkingCloudServiceProvider extends ControllerSupport
|
|
examRecordForMarkingBean.setPaperType(entity.getPaperType());
|
|
examRecordForMarkingBean.setPaperType(entity.getPaperType());
|
|
examRecordForMarkingBean.setCourseId(entity.getCourseId());
|
|
examRecordForMarkingBean.setCourseId(entity.getCourseId());
|
|
examRecordForMarkingBean.setOfflineFileName(entity.getOfflineFileName());
|
|
examRecordForMarkingBean.setOfflineFileName(entity.getOfflineFileName());
|
|
- examRecordForMarkingBean.setOfflineFileUrl(entity.getOfflineFileUrl());
|
|
|
|
|
|
+ examRecordForMarkingBean.setOfflineFileUrl(FileStorageUtil.realPath(entity.getOfflineFileUrl()));
|
|
examRecordForMarkingBean.setBatchNum(entity.getBatchNum());
|
|
examRecordForMarkingBean.setBatchNum(entity.getBatchNum());
|
|
examRecordForMarkingBeanList.add(examRecordForMarkingBean);
|
|
examRecordForMarkingBeanList.add(examRecordForMarkingBean);
|
|
}
|
|
}
|