|
|
|
@ -24,6 +24,7 @@ import org.greenrobot.eventbus.EventBus; |
|
|
|
import org.greenrobot.eventbus.Subscribe; |
|
|
|
import org.greenrobot.eventbus.ThreadMode; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
@ -132,7 +133,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(0).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo1(detailsList.get(0).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv1("10.00%"); |
|
|
|
if (detailsList.get(0).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv1(detailsList.get(0).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
if (detailsList.size()>1) { |
|
|
|
if (detailsList.get(1).getInt("Days") != null) { |
|
|
|
details1b.setDays2(detailsList.get(1).getInt("Days") + ""); |
|
|
|
@ -146,7 +149,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(1).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo2(detailsList.get(1).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv2("20.00%"); |
|
|
|
if (detailsList.get(1).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv2(detailsList.get(1).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
if (detailsList.size()>2){ |
|
|
|
if (detailsList.get(2).getInt("Days") != null) { |
|
|
|
details1b.setDays3(detailsList.get(2).getInt("Days") + ""); |
|
|
|
@ -160,7 +165,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(2).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo3(detailsList.get(2).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv3("30.00%"); |
|
|
|
if (detailsList.get(2).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv3(detailsList.get(2).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
if (detailsList.size()>3){ |
|
|
|
if (detailsList.get(3).getInt("Days") != null) { |
|
|
|
details1b.setDays4(detailsList.get(3).getInt("Days") + ""); |
|
|
|
@ -174,7 +181,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(3).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo4(detailsList.get(3).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv4("40.00%"); |
|
|
|
if (detailsList.get(3).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv4(detailsList.get(3).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
if (detailsList.size()>4){ |
|
|
|
if (detailsList.get(4).getInt("Days") != null) { |
|
|
|
details1b.setDays5(detailsList.get(4).getInt("Days") + ""); |
|
|
|
@ -188,7 +197,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(4).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo5(detailsList.get(4).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv5("50.00%"); |
|
|
|
if (detailsList.get(4).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv5(detailsList.get(4).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
if (detailsList.size()>5){ |
|
|
|
if (detailsList.get(5).getInt("Days") != null) { |
|
|
|
details1b.setDays6(detailsList.get(5).getInt("Days") + ""); |
|
|
|
@ -202,7 +213,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(5).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo6(detailsList.get(5).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv6("60.00%"); |
|
|
|
if (detailsList.get(5).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv6(detailsList.get(5).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
if (detailsList.size()>6){ |
|
|
|
if (detailsList.get(6).getInt("Days") != null) { |
|
|
|
details1b.setDays7(detailsList.get(6).getInt("Days") + ""); |
|
|
|
@ -216,7 +229,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
if (detailsList.get(6).getInt("LiveNumber") != null) { |
|
|
|
details1b.setCunhuo7(detailsList.get(6).getInt("LiveNumber") + ""); |
|
|
|
} |
|
|
|
details1b.setChenghuolv7("70.00%"); |
|
|
|
if (detailsList.get(6).getDecimal("LiveRate") != null) { |
|
|
|
details1b.setChenghuolv7(detailsList.get(6).getDecimal("LiveRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString() + "%"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|