|
@@ -35,6 +35,7 @@ import cn.com.qmth.scancentral.bean.papermigrate.PaperMigrateDomain;
|
|
import cn.com.qmth.scancentral.bean.papermigrate.PaperMigratePage;
|
|
import cn.com.qmth.scancentral.bean.papermigrate.PaperMigratePage;
|
|
import cn.com.qmth.scancentral.dao.PaperDao;
|
|
import cn.com.qmth.scancentral.dao.PaperDao;
|
|
import cn.com.qmth.scancentral.entity.*;
|
|
import cn.com.qmth.scancentral.entity.*;
|
|
|
|
+import cn.com.qmth.scancentral.enums.ImageCheckStatus;
|
|
import cn.com.qmth.scancentral.enums.LockType;
|
|
import cn.com.qmth.scancentral.enums.LockType;
|
|
import cn.com.qmth.scancentral.enums.UploadStatus;
|
|
import cn.com.qmth.scancentral.enums.UploadStatus;
|
|
import cn.com.qmth.scancentral.service.*;
|
|
import cn.com.qmth.scancentral.service.*;
|
|
@@ -248,6 +249,7 @@ public class PaperServiceImpl extends ServiceImpl<PaperDao, PaperEntity> impleme
|
|
paperPageService.updateByMultiId(page);
|
|
paperPageService.updateByMultiId(page);
|
|
// 更新考生文件上传状态
|
|
// 更新考生文件上传状态
|
|
studentService.updateFileUploadStatus(sp.getStudentId(), UploadStatus.WAITING_UPLOAD);
|
|
studentService.updateFileUploadStatus(sp.getStudentId(), UploadStatus.WAITING_UPLOAD);
|
|
|
|
+ studentService.updateImageCheckStatus(sp.getStudentId(), ImageCheckStatus.WAITING);
|
|
return UriVo.create(path);
|
|
return UriVo.create(path);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("裁切图更新失败,paperId=" + paperId + ", pageIndex=" + pageIndex + ", index=" + index, e);
|
|
log.error("裁切图更新失败,paperId=" + paperId + ", pageIndex=" + pageIndex + ", index=" + index, e);
|
|
@@ -439,18 +441,20 @@ public class PaperServiceImpl extends ServiceImpl<PaperDao, PaperEntity> impleme
|
|
return this.baseMapper.findByStudentIds(studentIds);
|
|
return this.baseMapper.findByStudentIds(studentIds);
|
|
}
|
|
}
|
|
|
|
|
|
-// @Override
|
|
|
|
-// @Transactional
|
|
|
|
-// public void updatePaperAssignedSuspect(Long id, Integer number, Boolean assignedSuspect) {
|
|
|
|
-// StudentPaperEntity sp = studentPaperService.findByStudentIdAndPaperNumber(id, number);
|
|
|
|
-// if (sp == null) {
|
|
|
|
-// throw new ParameterException("未找到绑定扫描结果");
|
|
|
|
-// }
|
|
|
|
-// LambdaUpdateWrapper<PaperEntity> lw = new LambdaUpdateWrapper<>();
|
|
|
|
-// lw.set(PaperEntity::getAssignedSuspect, assignedSuspect);
|
|
|
|
-// lw.eq(PaperEntity::getId, sp.getPaperId());
|
|
|
|
-// this.update(lw);
|
|
|
|
-// }
|
|
|
|
|
|
+ // @Override
|
|
|
|
+ // @Transactional
|
|
|
|
+ // public void updatePaperAssignedSuspect(Long id, Integer number, Boolean
|
|
|
|
+ // assignedSuspect) {
|
|
|
|
+ // StudentPaperEntity sp =
|
|
|
|
+ // studentPaperService.findByStudentIdAndPaperNumber(id, number);
|
|
|
|
+ // if (sp == null) {
|
|
|
|
+ // throw new ParameterException("未找到绑定扫描结果");
|
|
|
|
+ // }
|
|
|
|
+ // LambdaUpdateWrapper<PaperEntity> lw = new LambdaUpdateWrapper<>();
|
|
|
|
+ // lw.set(PaperEntity::getAssignedSuspect, assignedSuspect);
|
|
|
|
+ // lw.eq(PaperEntity::getId, sp.getPaperId());
|
|
|
|
+ // this.update(lw);
|
|
|
|
+ // }
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<StudentPaperVo> listByBatchIdAndStudentId(Long batchId, Long studentId) {
|
|
public List<StudentPaperVo> listByBatchIdAndStudentId(Long batchId, Long studentId) {
|