Resolved Conflicts.
This commit is contained in:
@@ -1,8 +1,15 @@
|
|||||||
package net.gepafin.tendermanagement.dao;
|
package net.gepafin.tendermanagement.dao;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.itextpdf.text.BaseColor;
|
||||||
|
import com.itextpdf.text.Font;
|
||||||
|
import com.itextpdf.text.FontFactory;
|
||||||
import jakarta.persistence.criteria.CriteriaBuilder;
|
import jakarta.persistence.criteria.CriteriaBuilder;
|
||||||
import jakarta.persistence.criteria.Root;
|
import jakarta.persistence.criteria.Root;
|
||||||
import jakarta.persistence.criteria.*;
|
import jakarta.persistence.criteria.*;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
import net.gepafin.tendermanagement.config.Translator;
|
import net.gepafin.tendermanagement.config.Translator;
|
||||||
import net.gepafin.tendermanagement.constants.GepafinConstant;
|
import net.gepafin.tendermanagement.constants.GepafinConstant;
|
||||||
import net.gepafin.tendermanagement.entities.*;
|
import net.gepafin.tendermanagement.entities.*;
|
||||||
@@ -49,10 +56,13 @@ import java.io.InputStream;
|
|||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
import java.sql.Timestamp;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
@@ -195,6 +205,10 @@ public class ApplicationDao {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private FormRepository formRepository;
|
private FormRepository formRepository;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ApplicationEvaluationDao applicationEvaluationDao;
|
||||||
|
|
||||||
|
|
||||||
public ApplicationResponseBean createApplication(HttpServletRequest request, ApplicationRequestBean applicationRequestBean, Long formId, Long applicationId) {
|
public ApplicationResponseBean createApplication(HttpServletRequest request, ApplicationRequestBean applicationRequestBean, Long formId, Long applicationId) {
|
||||||
FormEntity formEntity = formService.validateForm(formId);
|
FormEntity formEntity = formService.validateForm(formId);
|
||||||
// callService.validatePublishedCall(formEntity.getCall().getId());
|
// callService.validatePublishedCall(formEntity.getCall().getId());
|
||||||
|
|||||||
@@ -724,11 +724,11 @@ public class AppointmentDao {
|
|||||||
// Build the appointment request body
|
// Build the appointment request body
|
||||||
AppointmentCreationRequest appointmentCreationRequest = buildAppointmentCreationRequest(applicationId, createAppointmentRequest, appointmentTemplateId,
|
AppointmentCreationRequest appointmentCreationRequest = buildAppointmentCreationRequest(applicationId, createAppointmentRequest, appointmentTemplateId,
|
||||||
templateRichiestaData);
|
templateRichiestaData);
|
||||||
log.info("AppointmentCreationRequest {}", appointmentCreationRequest);
|
log.info("AppointmentCreationRequest : {}", appointmentCreationRequest);
|
||||||
String appointmentRequestBody = Utils.convertObjectToJson(appointmentCreationRequest);
|
String appointmentRequestBody = Utils.convertObjectToJson(appointmentCreationRequest);
|
||||||
|
|
||||||
// Make API call to create the appointment
|
// Make API call to create the appointment
|
||||||
log.info("Context:{}, Authorization Token {}, RequestBody {}", context, authorizationToken, appointmentRequestBody);
|
log.info("Context:{}, Authorization Token : {}, RequestBody : {}", context, authorizationToken, appointmentRequestBody);
|
||||||
ResponseEntity<Object> appointmentResponse = appointmentApiService.createAppointment(authorizationToken, context, appointmentRequestBody);
|
ResponseEntity<Object> appointmentResponse = appointmentApiService.createAppointment(authorizationToken, context, appointmentRequestBody);
|
||||||
String appointmentId = extractAppointmentIdFromResponse(appointmentResponse);
|
String appointmentId = extractAppointmentIdFromResponse(appointmentResponse);
|
||||||
|
|
||||||
@@ -757,7 +757,7 @@ public class AppointmentDao {
|
|||||||
private String extractAppointmentIdFromResponse(ResponseEntity<Object> appointmentResponse) {
|
private String extractAppointmentIdFromResponse(ResponseEntity<Object> appointmentResponse) {
|
||||||
|
|
||||||
if (appointmentResponse.getBody() != null) {
|
if (appointmentResponse.getBody() != null) {
|
||||||
log.info("Appointment API Response {}", appointmentResponse.getBody());
|
log.info("Appointment API Response : {}", appointmentResponse.getBody());
|
||||||
Map<String, Object> responseBody = (Map<String, Object>) appointmentResponse.getBody();
|
Map<String, Object> responseBody = (Map<String, Object>) appointmentResponse.getBody();
|
||||||
if (responseBody.containsKey(GepafinConstant.DATA_STRING)) {
|
if (responseBody.containsKey(GepafinConstant.DATA_STRING)) {
|
||||||
Map<String, Object> data = (Map<String, Object>) responseBody.get(GepafinConstant.DATA_STRING);
|
Map<String, Object> data = (Map<String, Object>) responseBody.get(GepafinConstant.DATA_STRING);
|
||||||
|
|||||||
@@ -2674,6 +2674,15 @@
|
|||||||
<column name="source" value="PDF_FALSE"></column>
|
<column name="source" value="PDF_FALSE"></column>
|
||||||
</insert>
|
</insert>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
<changeSet id="14-04-2025_RK_161000" author="Rajesh Khore">
|
||||||
|
<sqlFile dbms="postgresql"
|
||||||
|
path="db/dump/update_form_field_data_14_04_2025.sql"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet id="09-04-2025_NK_172550" author="Nisha Kashyap">
|
||||||
|
<sqlFile
|
||||||
|
dbms="postgresql"
|
||||||
|
path="db/dump/create_application_form_view.sql"/>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
<changeSet id="25-03-2025_NK_160730" author="Nisha Kashyap">
|
<changeSet id="25-03-2025_NK_160730" author="Nisha Kashyap">
|
||||||
<sqlFile dbms="postgresql"
|
<sqlFile dbms="postgresql"
|
||||||
@@ -2722,21 +2731,11 @@
|
|||||||
</insert>
|
</insert>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
|
||||||
<changeSet id="09-04-2025_NK_172550" author="Nisha Kashyap">
|
|
||||||
<sqlFile
|
|
||||||
dbms="postgresql"
|
|
||||||
path="db/dump/create_application_form_view.sql"/>
|
|
||||||
</changeSet>
|
|
||||||
|
|
||||||
|
|
||||||
<changeSet id="08-04-2025_PK_160730" author="Piyush kag">
|
<changeSet id="08-04-2025_PK_160730" author="Piyush kag">
|
||||||
<sqlFile dbms="postgresql"
|
<sqlFile dbms="postgresql"
|
||||||
path="db/dump/create_assigned_application_view.sql"/>
|
path="db/dump/create_assigned_application_view.sql"/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
<changeSet id="14-04-2025_RK_161000" author="Rajesh Khore">
|
|
||||||
<sqlFile dbms="postgresql"
|
|
||||||
path="db/dump/update_form_field_data_14_04_2025.sql"/>
|
|
||||||
</changeSet>
|
|
||||||
|
|
||||||
<changeSet id="28-04-2025_PK_154315" author="Piyush Kag">
|
<changeSet id="28-04-2025_PK_154315" author="Piyush Kag">
|
||||||
<sqlFile dbms="postgresql"
|
<sqlFile dbms="postgresql"
|
||||||
|
|||||||
Reference in New Issue
Block a user