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")) {