Merge remote-tracking branch 'origin/feature/SUPPORT-9339_add_sign_verify' into feature/SUPPORT-9368_journal_new_version
# Conflicts: # backend/src/main/java/ru/micord/ervu/journal/JournalDto.java # backend/src/main/java/ru/micord/ervu/journal/JournalFileInfo.java # backend/src/main/java/ru/micord/ervu/journal/mapper/JournalDtoMapper.java # resources/src/main/resources/business-model/Журнал взаимодействия.page
This commit is contained in:
commit
1b0fb3e1bb
4 changed files with 5756 additions and 536 deletions
|
|
@ -338,13 +338,18 @@ public class EmployeeInfoFileUploadService {
|
|||
signerInfoMap.get("O").equalsIgnoreCase(uploadOrgInfo.getOrgName());
|
||||
|
||||
if (isSignerValid) {
|
||||
interactionService.updateStatus(fileInfo.getFileId(), "Направлено в ЕРВУ", ervuId);
|
||||
FileStatusResponse fileStatusResponse = new FileStatusResponse(uploadOrgInfo,
|
||||
new FileInfo[] {fileInfo, signFileInfo}, fileInfo.getFileStatus()
|
||||
);
|
||||
try {
|
||||
sendMessage(fileStatusResponse);
|
||||
return true;
|
||||
if (sendMessage(fileStatusResponse)) {
|
||||
interactionService.updateStatus(fileInfo.getFileId(), "Направлено в ЕРВУ", ervuId);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
interactionService.delete(fileInfo.getFileId(), ervuId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (JsonProcessingException e) {
|
||||
handeSignError(fileInfo, signFileInfo, uploadOrgInfo, response);
|
||||
|
|
@ -365,10 +370,15 @@ public class EmployeeInfoFileUploadService {
|
|||
validateMchd(mchdFile, accessToken, signerInfoMap.get("SN") + " " + signerInfoMap.get("G"),
|
||||
chiefFirstName, chiefLastName, chiefMiddleName
|
||||
);
|
||||
interactionService.updateStatus(fileInfo.getFileId(), "Направлено в ЕРВУ", ervuId);
|
||||
|
||||
sendMessage(fileStatusResponse);
|
||||
return true;
|
||||
if (sendMessage(fileStatusResponse)) {
|
||||
interactionService.updateStatus(fileInfo.getFileId(), "Направлено в ЕРВУ", ervuId);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
interactionService.delete(fileInfo.getFileId(), ervuId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (JsonProcessingException e) {
|
||||
handleMchdValidationError(uploadOrgInfo, fileInfo, signFileInfo, mchdFileInfo, ervuId, response
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import ru.micord.ervu.journal.deserializer.DepartureDateTimeDeserializer;
|
|||
public class JournalFileInfo {
|
||||
|
||||
private List<JournalFileDetails> packFiles; // Список файлов (csv, sig, mchd)
|
||||
private JournalFileStatus packInfo; //общий статус по пакету
|
||||
private SenderInfo senderInfo;
|
||||
private Integer rowsCount; //Общее количество записей отправленных в файле
|
||||
private Integer rowsSuccess; //Количество записей принятых в файле
|
||||
|
|
@ -61,6 +62,15 @@ public class JournalFileInfo {
|
|||
return this;
|
||||
}
|
||||
|
||||
public JournalFileStatus getPackInfo() {
|
||||
return packInfo;
|
||||
}
|
||||
|
||||
public JournalFileInfo setPackInfo(JournalFileStatus packInfo) {
|
||||
this.packInfo = packInfo;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public static class JournalFileDetails {
|
||||
private String fileId; //ИД файла полученный при создании записи о файле в реестр организаций (в ЕРВУ)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public class JournalDtoMapper {
|
|||
senderInfo.getLastName()
|
||||
)
|
||||
)
|
||||
.setStatus(journalFileDetails.getFileStatus().getStatus())
|
||||
.setStatus(journalFileInfo.getPackInfo().getStatus())
|
||||
.setRowsCount(journalFileInfo.getRowsCount())
|
||||
.setRowsSuccess(journalFileInfo.getRowsSuccess())
|
||||
.setRowsError(journalFileInfo.getRowsError());
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue