Commit 5442ca53 authored by pborate's avatar pborate

Updated account activity dao

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181653 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a5f8c60d
...@@ -60,19 +60,20 @@ public class AccountActivityDao ...@@ -60,19 +60,20 @@ public class AccountActivityDao
JSONObject activityDataFinal = new JSONObject(); JSONObject activityDataFinal = new JSONObject();
JSONArray activityDataFinalArray = new JSONArray(); JSONArray activityDataFinalArray = new JSONArray();
profileId=profileId.trim(); profileId=profileId.trim();
String format1="yyyyMMdd"; String format1="yyyyMMdd";
List<String> dateListFile= genUtil.getDateList(fromDate,toDate,sourceDateFormat,format1); List<String> dateListFile= genUtil.getDateList(fromDate,toDate,sourceDateFormat,format1);
SimpleDateFormat app = new SimpleDateFormat(genericUtility.getApplDateFormat()); // SimpleDateFormat app = new SimpleDateFormat(genericUtility.getApplDateFormat());
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat()); // SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
//
Date startDate = (Date) app.parse(fromDate); // Date startDate = (Date) app.parse(fromDate);
Date endDate = (Date) app.parse(toDate); // Date endDate = (Date) app.parse(toDate);
//
// fromDate=sdf.format(startDate);
// toDate=sdf.format(endDate);
fromDate=sdf.format(startDate); fromDate=genericUtility.getValidDateString(fromDate, sourceDateFormat, targetDateFormat);
toDate=sdf.format(endDate); toDate=genericUtility.getValidDateString(toDate, sourceDateFormat, targetDateFormat);
System.out.println("fromDate :::::["+fromDate+"] toDate ["+toDate+"] startBattery ["+startBattery+"]"); System.out.println("fromDate :::::["+fromDate+"] toDate ["+toDate+"] startBattery ["+startBattery+"]");
......
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