From 318cd1275a7c579866ac55b5667b45f60592a930 Mon Sep 17 00:00:00 2001 From: lh <1209405678@qq.com> Date: Tue, 10 Apr 2018 14:40:39 +0800 Subject: [PATCH] no message --- .../com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }