|
@@ -79,7 +79,7 @@ public class ClientServiceImpl implements ClientService {
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
- public Long pictureUpload(Long paperScanTaskId, String studentCode, Integer x, Integer y, Integer width, Integer height, Integer rotate, MultipartFile frontFile, String frontMd5, MultipartFile versoFile, String versoMd5, Long scanUserId, String batchNo) {
|
|
|
|
|
|
+ public Long pictureUpload(Long paperScanTaskId, String studentCode, Integer x, Integer y, Integer width, Integer height, Integer rotate, MultipartFile frontFile, String frontMd5, MultipartFile versoFile, String versoMd5, Long scanUserId, String batchNo,Integer studentPaperNo) {
|
|
|
|
|
|
if (Objects.isNull(frontFile) || frontFile.getSize() == 0) {
|
|
if (Objects.isNull(frontFile) || frontFile.getSize() == 0) {
|
|
throw ExceptionResultEnum.ERROR.exception("frontFile(正面图片)为空");
|
|
throw ExceptionResultEnum.ERROR.exception("frontFile(正面图片)为空");
|
|
@@ -129,10 +129,15 @@ public class ClientServiceImpl implements ClientService {
|
|
// examStudentService.save(examStudent);
|
|
// examStudentService.save(examStudent);
|
|
}
|
|
}
|
|
paperLibrary.setStudentId(examStudent.getId());
|
|
paperLibrary.setStudentId(examStudent.getId());
|
|
|
|
+ //考生图片序号
|
|
|
|
+ int studentMaxSequence = paperLibraryService.getStudentMaxSequence(paperScanTaskId, examStudent.getId());
|
|
|
|
+ int studentSequence = studentMaxSequence + studentPaperNo;
|
|
|
|
+ paperLibrary.setSequence(studentSequence);
|
|
// 保存图片,生成路径
|
|
// 保存图片,生成路径
|
|
- PathSequenceVo pathSequenceVo = paperLibraryCommonService.saveLibraryFile(paperScanTask, examStudent, UploadFileEnum.IMAGE, frontFile, versoFile);
|
|
|
|
|
|
+ PathSequenceVo pathSequenceVo = paperLibraryCommonService.saveLibraryFile(paperScanTask, examStudent, UploadFileEnum.IMAGE, studentSequence, frontFile, versoFile);
|
|
paperLibrary.setPath(pathSequenceVo.getPath());
|
|
paperLibrary.setPath(pathSequenceVo.getPath());
|
|
- paperLibrary.setSequence(pathSequenceVo.getSequence());
|
|
|
|
|
|
+
|
|
|
|
+
|
|
paperLibrary.setBindResult(recognitionVo.getBindResult());
|
|
paperLibrary.setBindResult(recognitionVo.getBindResult());
|
|
paperLibrary.setRecognizeResult(recognitionVo.getRecognizeResult());
|
|
paperLibrary.setRecognizeResult(recognitionVo.getRecognizeResult());
|
|
paperLibraryService.save(paperLibrary);
|
|
paperLibraryService.save(paperLibrary);
|