|
|
|
@ -103,7 +103,9 @@ public class HatcheryReportActivity extends BaseActivity { |
|
|
|
protected void onResume() { |
|
|
|
super.onResume(); |
|
|
|
try { |
|
|
|
QueryHatchingStoreDetails(hatchingStoreID,new SimpleDateFormat("yyyy-MM-dd").parse(DateTimeUtil.getYMD(new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24*19))),new SimpleDateFormat("yyyy-MM-dd").parse(DateTimeUtil.getYMD(new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24)))); |
|
|
|
long first = (long)1000 * 60 * 60 * 24*38; |
|
|
|
long second = (long)1000 * 60 * 60 * 24*19; |
|
|
|
QueryHatchingStoreDetails(hatchingStoreID,new SimpleDateFormat("yyyy-MM-dd").parse(DateTimeUtil.getYMD(new Date(System.currentTimeMillis() - first))),new SimpleDateFormat("yyyy-MM-dd").parse(DateTimeUtil.getYMD(new Date(System.currentTimeMillis() - second)))); |
|
|
|
} catch (ParseException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
|