From 69da866f4c9f7da031f4f363d02d3e894e518f20 Mon Sep 17 00:00:00 2001 From: lh <1209405678@qq.com> Date: Wed, 28 Mar 2018 14:10:51 +0800 Subject: [PATCH] no message --- .../qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java | 6 +++--- .../qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java index fe49305..3cc844a 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java +++ b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java @@ -77,10 +77,10 @@ public class ChandanFragment extends BaseFragment { TextView item3 = view2.findViewById(R.id.item3); TextView item4 = view2.findViewById(R.id.item4); - if (detailsList.get(j).getLong("Batch_ID")!=null) { - item1.setText("批次:" + detailsList.get(j).getLong("Batch_ID")); + if (detailsList.get(j).getString("Batch_Name")!=null) { + item1.setText("批次名:" + detailsList.get(j).getString("Batch_Name")); }else { - item1.setText("批次:"); + item1.setText("批次名:"); } if (detailsList.get(j).getString("Week")!=null) { diff --git a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java index 4ec283e..179ba7e 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java +++ b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java @@ -83,10 +83,10 @@ public class YuchuFragment extends BaseFragment { TextView item3 = view2.findViewById(R.id.item3); TextView item4 = view2.findViewById(R.id.item4); - if (detailsList.get(j).getLong("Batch_ID")!=null) { - item1.setText("批次:" + detailsList.get(j).getLong("Batch_ID")); + if (detailsList.get(j).getString("Batch_Name")!=null) { + item1.setText("批次名:" + detailsList.get(j).getString("Batch_Name")); }else { - item1.setText("批次:"); + item1.setText("批次名:"); } if (detailsList.get(j).getString("Week")!=null) { item2.setText("周龄:" + detailsList.get(j).getString("Week"));