Commit 02a958a8 authored by sdhaul's avatar sdhaul

Trimmed STRG_CODE


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198520 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c959be4a
......@@ -101,7 +101,7 @@ public class SprsCustInfo extends ValidatorEJB
JSONArray topBrandsArray = customerInfoDao.getTopBrands(empCode,strgCode);
customerInfoObj.put("TOP_BRANDS", topBrandsArray);
System.out.println("customerInfoObj finale :::::: "+customerInfoObj);
finalCustomerInfoJson.put(strgCode, customerInfoObj);
finalCustomerInfoJson.put(checkNull(strgCode).trim(), customerInfoObj);
count++;
}
System.out.println("count ::::: "+count);
......@@ -159,6 +159,15 @@ public class SprsCustInfo extends ValidatorEJB
return finalCustomerInfoJson.toString();
}
public String checkNull(String input)
{
if (input == null || "null".equalsIgnoreCase(input))
{
input= "";
}
return input.trim();
}
/*
public JSONObject xmlToJson(String transData) throws JSONException
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment