From 60328d3ece5a2dd3c77a6b4e3f0f26162deb5169 Mon Sep 17 00:00:00 2001 From: Ravi Shanigarapu Date: Tue, 7 Nov 2023 12:47:34 +0530 Subject: [PATCH] TFS-2403 --- .../GetDataFromVanAndSyncToDBImpl.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/GetDataFromVanAndSyncToDBImpl.java b/src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/GetDataFromVanAndSyncToDBImpl.java index fea07ceb..b18c9ed3 100644 --- a/src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/GetDataFromVanAndSyncToDBImpl.java +++ b/src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/GetDataFromVanAndSyncToDBImpl.java @@ -32,6 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import com.fasterxml.jackson.databind.ObjectMapper; import com.iemr.mmu.data.syncActivity_syncLayer.SyncUploadDataDigester; import com.iemr.mmu.utils.mapper.InputMapper; @@ -51,9 +52,12 @@ public class GetDataFromVanAndSyncToDBImpl implements GetDataFromVanAndSyncToDB public String syncDataToServer(String requestOBJ, String Authorization) throws Exception { // feed sync request - SyncUploadDataDigester syncUploadDataDigester = InputMapper.gson().fromJson(requestOBJ, - SyncUploadDataDigester.class); - + ObjectMapper mapper = new ObjectMapper(); + SyncUploadDataDigester syncUploadDataDigester = mapper.readValue(requestOBJ, SyncUploadDataDigester.class); + /* + * SyncUploadDataDigester syncUploadDataDigester = + * InputMapper.gson().fromJson(requestOBJ, SyncUploadDataDigester.class); + */ String syncTableName = syncUploadDataDigester.getTableName(); if (syncUploadDataDigester != null && syncTableName != null && syncTableName.equalsIgnoreCase("m_beneficiaryregidmapping")) {