Updated code

This commit is contained in:
rajesh
2025-01-15 15:11:29 +05:30
parent 60af83221e
commit f14cf4a380

View File

@@ -143,10 +143,12 @@ public class CompanyDao {
entity.setNumberOfEmployees(request.getNumberOfEmployees()); entity.setNumberOfEmployees(request.getNumberOfEmployees());
entity.setAnnualRevenue(request.getAnnualRevenue()); entity.setAnnualRevenue(request.getAnnualRevenue());
entity.setHub(userEntity.getHub()); entity.setHub(userEntity.getHub());
Map<String, Object> vatCheckResponse = request.getVatCheckResponse();
if (request.getVatCheckResponse() != null) { if (request.getVatCheckResponse() != null) {
if (vatCheckResponse.containsKey("dettaglio")) { Map<String, Object> vatCheckResponse = request.getVatCheckResponse();
Map<String, Object> dettaglio = (Map<String, Object>) vatCheckResponse.get("dettaglio"); Map<String, Object> data = (Map<String, Object>) vatCheckResponse.get("data");
if (data != null) {
if (data.containsKey("dettaglio")) {
Map<String, Object> dettaglio = (Map<String, Object>) data.get("dettaglio");
if (dettaglio != null) { if (dettaglio != null) {
if (dettaglio.containsKey("codice_ateco")) { if (dettaglio.containsKey("codice_ateco")) {
Object codiceAtecoObj = dettaglio.get("codice_ateco"); Object codiceAtecoObj = dettaglio.get("codice_ateco");
@@ -159,6 +161,7 @@ public class CompanyDao {
} }
} }
} }
}
return entity; return entity;
} }