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"));