diff --git a/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java b/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java index 796bdfb..182f5f9 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java +++ b/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java @@ -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(); }