Skip to content

Commit

Permalink
TFS-2403
Browse files Browse the repository at this point in the history
  • Loading branch information
ravishanigarapu committed Nov 7, 2023
1 parent d525d3d commit 60328d3
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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")) {
Expand Down

0 comments on commit 60328d3

Please sign in to comment.