Done ticket GEPAFINBE-233
This commit is contained in:
@@ -989,9 +989,11 @@ public class ApplicationDao {
|
||||
// call = callService.validatePublishedCall(call.getId());
|
||||
// checkIfApplicationExists(call, userWithCompanyEntity, userEntity);
|
||||
HubEntity hubEntity = hubService.valdateHub(call.getHub().getId());
|
||||
if(call.getAllowMultipleApplications() == null || Boolean.FALSE.equals(call.getAllowMultipleApplications())){
|
||||
if(hubEntity.getUniqueUuid().equals(defaultHubUuid)){
|
||||
checkIfApplicationExists(call, userWithCompanyEntity, userEntity);
|
||||
}
|
||||
}
|
||||
ApplicationEntity applicationEntity = createApplicationEntity(userEntity, call, userWithCompanyEntity);
|
||||
applicationEntity.setComments(applicationRequest.getComments());
|
||||
applicationEntity = saveApplicationEntity(applicationEntity);
|
||||
|
||||
@@ -224,6 +224,10 @@ public class CallDao {
|
||||
callEntity.setHub(userEntity.getHub());
|
||||
callEntity.setNumberOfCheck(createCallRequest.getNumberOfCheck());
|
||||
callEntity.setAppointmentTemplateId(createCallRequest.getAppointmentTemplateId());
|
||||
callEntity.setAllowMultipleApplications(false);
|
||||
if (createCallRequest.getAllowMultipleApplications() != null) {
|
||||
callEntity.setAllowMultipleApplications(createCallRequest.getAllowMultipleApplications());
|
||||
}
|
||||
callEntity = callRepository.save(callEntity);
|
||||
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.setPriorityArea(callEntity.getPriorityArea());
|
||||
createCallResponseBean.setConfidi(callEntity.getConfidi());
|
||||
createCallResponseBean.setAllowMultipleApplications(callEntity.getAllowMultipleApplications());
|
||||
createCallResponseBean.setAmountMin(callEntity.getAmountMin());
|
||||
createCallResponseBean.setPhoneNumber(callEntity.getPhoneNumber());
|
||||
createCallResponseBean.setEndTime(callEntity.getEndTime());
|
||||
@@ -683,6 +688,7 @@ public class CallDao {
|
||||
setIfUpdated(callEntity::getEvaluationVersion, callEntity::setEvaluationVersion, updateCallRequest.getEvaluationVersion().getValue());
|
||||
setIfUpdated(callEntity::getNumberOfCheck, callEntity::setNumberOfCheck, updateCallRequest.getNumberOfCheck());
|
||||
setIfUpdated(callEntity::getAppointmentTemplateId, callEntity::setAppointmentTemplateId, updateCallRequest.getAppointmentTemplateId());
|
||||
setIfUpdated(callEntity::getAllowMultipleApplications, callEntity::setAllowMultipleApplications, updateCallRequest.getAllowMultipleApplications());
|
||||
callEntity = callRepository.save(callEntity);
|
||||
|
||||
/** 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.setNumberOfCheck(callEntity.getNumberOfCheck());
|
||||
callDetailsResponseBean.setAppointmentTemplateId(callEntity.getAppointmentTemplateId());
|
||||
callDetailsResponseBean.setAllowMultipleApplications(callEntity.getAllowMultipleApplications());
|
||||
return callDetailsResponseBean;
|
||||
}
|
||||
|
||||
|
||||
@@ -99,5 +99,8 @@ public class CallEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "APPOINTMENT_TEMPLATE_ID")
|
||||
private Long appointmentTemplateId;
|
||||
|
||||
@Column(name = "allow_multiple_applications")
|
||||
private Boolean allowMultipleApplications;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ public class CreateCallRequestStep1 {
|
||||
|
||||
private Boolean confidi;
|
||||
|
||||
private Boolean allowMultipleApplications;
|
||||
|
||||
private List<FaqReq> faq;
|
||||
|
||||
private EvaluationVersionEnum evaluationVersion;
|
||||
|
||||
@@ -38,6 +38,8 @@ public class UpdateCallRequestStep1 {
|
||||
|
||||
private Boolean confidi;
|
||||
|
||||
private Boolean allowMultipleApplications;
|
||||
|
||||
private List<FaqReq> faq;
|
||||
|
||||
private Long numberOfCheck;
|
||||
|
||||
@@ -23,6 +23,8 @@ public class CallDetailsResponseBean {
|
||||
|
||||
private Boolean confidi;
|
||||
|
||||
private Boolean allowMultipleApplications;
|
||||
|
||||
private CallStatusEnum status;
|
||||
|
||||
private Long regionId;
|
||||
|
||||
@@ -44,6 +44,8 @@ public class CallResponse {
|
||||
|
||||
private Boolean confidi;
|
||||
|
||||
private Boolean allowMultipleApplications;
|
||||
|
||||
private BigDecimal amountMin;
|
||||
|
||||
private String email;
|
||||
|
||||
@@ -2984,4 +2984,10 @@
|
||||
<sqlFile dbms="postgresql"
|
||||
path="db/dump/insert_system_email_template_technical_evaluation_rejected.sql"/>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user