Merge branch 'develop' of https://github.com/Kitzanos/GEPAFIN-BE into develop
This commit is contained in:
@@ -272,9 +272,6 @@ public class ApplicationAmendmentRequestDao {
|
|||||||
String formFieldsJson = Utils.convertObjectToJson(formFieldRequestBean);
|
String formFieldsJson = Utils.convertObjectToJson(formFieldRequestBean);
|
||||||
applicationAmendmentRequestEntity.setFormFields(formFieldsJson);
|
applicationAmendmentRequestEntity.setFormFields(formFieldsJson);
|
||||||
}
|
}
|
||||||
if(applicationAmendmentRequest.getAmendmentDocument()!=null || Boolean.FALSE.equals(applicationAmendmentRequest.getAmendmentDocument().isEmpty())) {
|
|
||||||
setAmendmentDocuments(applicationAmendmentRequest.getAmendmentDocument(), applicationAmendmentRequestEntity);
|
|
||||||
}
|
|
||||||
List<ApplicationAmendmentRequestEntity> amendmentRequest = applicationAmendmentRequestRepository.findAllByApplicationEvaluationIdAndIsDeletedFalse(applicationEvaluationEntity.getId());
|
List<ApplicationAmendmentRequestEntity> amendmentRequest = applicationAmendmentRequestRepository.findAllByApplicationEvaluationIdAndIsDeletedFalse(applicationEvaluationEntity.getId());
|
||||||
// Ensure startDate and initialDays are not null to avoid NullPointerException
|
// Ensure startDate and initialDays are not null to avoid NullPointerException
|
||||||
if (amendmentRequest !=null && amendmentRequest.isEmpty() && applicationEvaluationEntity.getStartDate() != null && applicationEvaluationEntity.getInitialDays() != null ) {
|
if (amendmentRequest !=null && amendmentRequest.isEmpty() && applicationEvaluationEntity.getStartDate() != null && applicationEvaluationEntity.getInitialDays() != null ) {
|
||||||
@@ -579,8 +576,9 @@ public class ApplicationAmendmentRequestDao {
|
|||||||
existingApplicationAmendment.setFormFields(Utils.convertListToJsonString(amendmentFormFieldMap.values().stream().toList()));
|
existingApplicationAmendment.setFormFields(Utils.convertListToJsonString(amendmentFormFieldMap.values().stream().toList()));
|
||||||
}
|
}
|
||||||
existingApplicationAmendment.setUpdatedDate(DateTimeUtil.DateServerToUTC(LocalDateTime.now()));
|
existingApplicationAmendment.setUpdatedDate(DateTimeUtil.DateServerToUTC(LocalDateTime.now()));
|
||||||
|
if(updateRequest.getAmendmentDocuments()!=null && Boolean.FALSE.equals(updateRequest.getAmendmentDocuments().isEmpty())) {
|
||||||
setAmendmentDocuments(updateRequest.getAmendmentDocuments(),existingApplicationAmendment);
|
setAmendmentDocuments(updateRequest.getAmendmentDocuments(), existingApplicationAmendment);
|
||||||
|
}
|
||||||
ApplicationAmendmentRequestEntity updatedApplicationAmendment = saveApplicationAmendmentRequestEntity(existingApplicationAmendment,oldApplicationAmendmentEntity,VersionActionTypeEnum.UPDATE);
|
ApplicationAmendmentRequestEntity updatedApplicationAmendment = saveApplicationAmendmentRequestEntity(existingApplicationAmendment,oldApplicationAmendmentEntity,VersionActionTypeEnum.UPDATE);
|
||||||
ApplicationAmendmentRequestResponse response = convertEntityToResponse(updatedApplicationAmendment);
|
ApplicationAmendmentRequestResponse response = convertEntityToResponse(updatedApplicationAmendment);
|
||||||
log.info("Application Amendment updated successfully: {}", response);
|
log.info("Application Amendment updated successfully: {}", response);
|
||||||
|
|||||||
@@ -11,5 +11,4 @@ public class ApplicationAmendmentRequest {
|
|||||||
private Long responseDays;
|
private Long responseDays;
|
||||||
private Boolean isSendNotification;
|
private Boolean isSendNotification;
|
||||||
private Boolean isSendEmail;
|
private Boolean isSendEmail;
|
||||||
private List<AmendmentFieldRequest> amendmentDocument;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user