From 2473f50158362094f709f1b00e88daa867f5b379 Mon Sep 17 00:00:00 2001 From: lh <1209405678@qq.com> Date: Tue, 3 Apr 2018 13:58:38 +0800 Subject: [PATCH] no message --- .../qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java | 8 +++++++- 1 file changed, 7 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 387e009..4ee5f3b 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 @@ -26,6 +26,8 @@ import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import java.math.BigDecimal; +import java.text.ParseException; +import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -94,7 +96,11 @@ public class HatcheryReportActivity extends BaseActivity { @Override 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)))); + } catch (ParseException e) { + e.printStackTrace(); + } } @Override