Merge pull request #323 from Kitzanos/feature/GEPAFINBE-233-prod
Cheery-pick (Added multiple application flag to Call Entity)
This commit is contained in:
@@ -992,10 +992,12 @@ public class ApplicationDao {
|
|||||||
// call = callService.validatePublishedCall(call.getId());
|
// call = callService.validatePublishedCall(call.getId());
|
||||||
// checkIfApplicationExists(call, userWithCompanyEntity, userEntity);
|
// checkIfApplicationExists(call, userWithCompanyEntity, userEntity);
|
||||||
HubEntity hubEntity = hubService.valdateHub(call.getHub().getId());
|
HubEntity hubEntity = hubService.valdateHub(call.getHub().getId());
|
||||||
if(hubEntity.getUniqueUuid().equals(defaultHubUuid)){
|
if(call.getAllowMultipleApplications() == null || Boolean.FALSE.equals(call.getAllowMultipleApplications())){
|
||||||
checkIfApplicationExists(call, userWithCompanyEntity, userEntity);
|
if(hubEntity.getUniqueUuid().equals(defaultHubUuid)){
|
||||||
|
checkIfApplicationExists(call, userWithCompanyEntity, userEntity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ApplicationEntity applicationEntity = createApplicationEntity(userEntity, call, userWithCompanyEntity);
|
ApplicationEntity applicationEntity = createApplicationEntity(userEntity, call, userWithCompanyEntity);
|
||||||
applicationEntity.setComments(applicationRequest.getComments());
|
applicationEntity.setComments(applicationRequest.getComments());
|
||||||
applicationEntity = saveApplicationEntity(applicationEntity);
|
applicationEntity = saveApplicationEntity(applicationEntity);
|
||||||
return getApplicationResponse(applicationEntity);
|
return getApplicationResponse(applicationEntity);
|
||||||
|
|||||||
@@ -224,6 +224,10 @@ public class CallDao {
|
|||||||
callEntity.setHub(userEntity.getHub());
|
callEntity.setHub(userEntity.getHub());
|
||||||
callEntity.setNumberOfCheck(createCallRequest.getNumberOfCheck());
|
callEntity.setNumberOfCheck(createCallRequest.getNumberOfCheck());
|
||||||
callEntity.setAppointmentTemplateId(createCallRequest.getAppointmentTemplateId());
|
callEntity.setAppointmentTemplateId(createCallRequest.getAppointmentTemplateId());
|
||||||
|
callEntity.setAllowMultipleApplications(false);
|
||||||
|
if (createCallRequest.getAllowMultipleApplications() != null) {
|
||||||
|
callEntity.setAllowMultipleApplications(createCallRequest.getAllowMultipleApplications());
|
||||||
|
}
|
||||||
callEntity = callRepository.save(callEntity);
|
callEntity = callRepository.save(callEntity);
|
||||||
log.info("CallEntity saved with ID: {} for call name: '{}'", callEntity.getId(), callEntity.getName());
|
log.info("CallEntity saved with ID: {} for call name: '{}'", callEntity.getId(), callEntity.getName());
|
||||||
|
|
||||||
@@ -406,6 +410,7 @@ public class CallDao {
|
|||||||
createCallResponseBean.setDocumentationRequested(callEntity.getDocumentationRequested());
|
createCallResponseBean.setDocumentationRequested(callEntity.getDocumentationRequested());
|
||||||
createCallResponseBean.setPriorityArea(callEntity.getPriorityArea());
|
createCallResponseBean.setPriorityArea(callEntity.getPriorityArea());
|
||||||
createCallResponseBean.setConfidi(callEntity.getConfidi());
|
createCallResponseBean.setConfidi(callEntity.getConfidi());
|
||||||
|
createCallResponseBean.setAllowMultipleApplications(callEntity.getAllowMultipleApplications());
|
||||||
createCallResponseBean.setAmountMin(callEntity.getAmountMin());
|
createCallResponseBean.setAmountMin(callEntity.getAmountMin());
|
||||||
createCallResponseBean.setPhoneNumber(callEntity.getPhoneNumber());
|
createCallResponseBean.setPhoneNumber(callEntity.getPhoneNumber());
|
||||||
createCallResponseBean.setEndTime(callEntity.getEndTime());
|
createCallResponseBean.setEndTime(callEntity.getEndTime());
|
||||||
@@ -683,6 +688,7 @@ public class CallDao {
|
|||||||
setIfUpdated(callEntity::getEvaluationVersion, callEntity::setEvaluationVersion, updateCallRequest.getEvaluationVersion().getValue());
|
setIfUpdated(callEntity::getEvaluationVersion, callEntity::setEvaluationVersion, updateCallRequest.getEvaluationVersion().getValue());
|
||||||
setIfUpdated(callEntity::getNumberOfCheck, callEntity::setNumberOfCheck, updateCallRequest.getNumberOfCheck());
|
setIfUpdated(callEntity::getNumberOfCheck, callEntity::setNumberOfCheck, updateCallRequest.getNumberOfCheck());
|
||||||
setIfUpdated(callEntity::getAppointmentTemplateId, callEntity::setAppointmentTemplateId, updateCallRequest.getAppointmentTemplateId());
|
setIfUpdated(callEntity::getAppointmentTemplateId, callEntity::setAppointmentTemplateId, updateCallRequest.getAppointmentTemplateId());
|
||||||
|
setIfUpdated(callEntity::getAllowMultipleApplications, callEntity::setAllowMultipleApplications, updateCallRequest.getAllowMultipleApplications());
|
||||||
callEntity = callRepository.save(callEntity);
|
callEntity = callRepository.save(callEntity);
|
||||||
|
|
||||||
/** This code is responsible for adding a version history log for the "update call step 1" operation **/
|
/** This code is responsible for adding a version history log for the "update call step 1" operation **/
|
||||||
@@ -792,6 +798,7 @@ public class CallDao {
|
|||||||
callDetailsResponseBean.setUpdatedDate(callEntity.getUpdatedDate());
|
callDetailsResponseBean.setUpdatedDate(callEntity.getUpdatedDate());
|
||||||
callDetailsResponseBean.setNumberOfCheck(callEntity.getNumberOfCheck());
|
callDetailsResponseBean.setNumberOfCheck(callEntity.getNumberOfCheck());
|
||||||
callDetailsResponseBean.setAppointmentTemplateId(callEntity.getAppointmentTemplateId());
|
callDetailsResponseBean.setAppointmentTemplateId(callEntity.getAppointmentTemplateId());
|
||||||
|
callDetailsResponseBean.setAllowMultipleApplications(callEntity.getAllowMultipleApplications());
|
||||||
return callDetailsResponseBean;
|
return callDetailsResponseBean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,5 +99,8 @@ public class CallEntity extends BaseEntity {
|
|||||||
|
|
||||||
@Column(name = "APPOINTMENT_TEMPLATE_ID")
|
@Column(name = "APPOINTMENT_TEMPLATE_ID")
|
||||||
private Long appointmentTemplateId;
|
private Long appointmentTemplateId;
|
||||||
|
|
||||||
|
@Column(name = "allow_multiple_applications")
|
||||||
|
private Boolean allowMultipleApplications;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ public class CreateCallRequestStep1 {
|
|||||||
|
|
||||||
private Boolean confidi;
|
private Boolean confidi;
|
||||||
|
|
||||||
|
private Boolean allowMultipleApplications;
|
||||||
|
|
||||||
private List<FaqReq> faq;
|
private List<FaqReq> faq;
|
||||||
|
|
||||||
private EvaluationVersionEnum evaluationVersion;
|
private EvaluationVersionEnum evaluationVersion;
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ public class UpdateCallRequestStep1 {
|
|||||||
|
|
||||||
private Boolean confidi;
|
private Boolean confidi;
|
||||||
|
|
||||||
|
private Boolean allowMultipleApplications;
|
||||||
|
|
||||||
private List<FaqReq> faq;
|
private List<FaqReq> faq;
|
||||||
|
|
||||||
private Long numberOfCheck;
|
private Long numberOfCheck;
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ public class CallDetailsResponseBean {
|
|||||||
|
|
||||||
private Boolean confidi;
|
private Boolean confidi;
|
||||||
|
|
||||||
|
private Boolean allowMultipleApplications;
|
||||||
|
|
||||||
private CallStatusEnum status;
|
private CallStatusEnum status;
|
||||||
|
|
||||||
private Long regionId;
|
private Long regionId;
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ public class CallResponse {
|
|||||||
|
|
||||||
private Boolean confidi;
|
private Boolean confidi;
|
||||||
|
|
||||||
|
private Boolean allowMultipleApplications;
|
||||||
|
|
||||||
private BigDecimal amountMin;
|
private BigDecimal amountMin;
|
||||||
|
|
||||||
private String email;
|
private String email;
|
||||||
|
|||||||
@@ -2990,4 +2990,10 @@
|
|||||||
<column name="vat_number" type="VARCHAR(255)"></column>
|
<column name="vat_number" type="VARCHAR(255)"></column>
|
||||||
</addColumn>
|
</addColumn>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
|
||||||
|
<changeSet id="02-07-2025_RK_152053" author="Rajesh Khore">
|
||||||
|
<addColumn tableName="call">
|
||||||
|
<column name="allow_multiple_applications" type="BOOLEAN" defaultValueBoolean="false"></column>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
|||||||
Reference in New Issue
Block a user