|
@@ -1,6 +1,7 @@
|
|
package cn.com.qmth.print.manage.service.impl;
|
|
package cn.com.qmth.print.manage.service.impl;
|
|
|
|
|
|
import cn.com.qmth.print.manage.config.PmConstants;
|
|
import cn.com.qmth.print.manage.config.PmConstants;
|
|
|
|
+import cn.com.qmth.print.manage.config.SysProperty;
|
|
import cn.com.qmth.print.manage.dao.ExamDao;
|
|
import cn.com.qmth.print.manage.dao.ExamDao;
|
|
import cn.com.qmth.print.manage.dao.ExamStudentDao;
|
|
import cn.com.qmth.print.manage.dao.ExamStudentDao;
|
|
import cn.com.qmth.print.manage.dto.ExamStudentExportDTO;
|
|
import cn.com.qmth.print.manage.dto.ExamStudentExportDTO;
|
|
@@ -55,8 +56,11 @@ public class ExamStudentServiceImpl extends ServiceImpl<ExamStudentDao, ExamStud
|
|
@Resource
|
|
@Resource
|
|
private ExamDao examDao;
|
|
private ExamDao examDao;
|
|
|
|
|
|
- @Value("${temp-data-dir}")
|
|
|
|
- String tempDir;
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private SysProperty sysProperty;
|
|
|
|
+
|
|
|
|
+// @Value("${temp-data-dir}")
|
|
|
|
+// String tempDir;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ExamStudentEntity findByExamIdAndExamNumber(Long examId, String examNumber) {
|
|
public ExamStudentEntity findByExamIdAndExamNumber(Long examId, String examNumber) {
|
|
@@ -202,7 +206,7 @@ public class ExamStudentServiceImpl extends ServiceImpl<ExamStudentDao, ExamStud
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
public Object analyzeZipAndImportStudents(Long examId, MultipartFile file) {
|
|
public Object analyzeZipAndImportStudents(Long examId, MultipartFile file) {
|
|
- String tempPath = tempDir + "/importExamStudent";
|
|
|
|
|
|
+ String tempPath = sysProperty.getTempDir() + "/importExamStudent";
|
|
try {
|
|
try {
|
|
byte[] bytes = file.getBytes();
|
|
byte[] bytes = file.getBytes();
|
|
byte[] keyArr = Arrays.copyOfRange(bytes, 0, 16);
|
|
byte[] keyArr = Arrays.copyOfRange(bytes, 0, 16);
|