|
|
@@ -175,7 +175,7 @@ public class SalesRankingActivity extends BaseActivity {
|
|
|
holder = (ViewHolder) convertView.getTag();
|
|
|
}
|
|
|
holder.tv_name.setText(mdata.getJSONObject(position).getString("name"));
|
|
|
- holder.tv_money.setText(mdata.getJSONObject(position).getString("id"));
|
|
|
+ holder.tv_money.setText(mdata.getJSONObject(position).getFloatValue("id")+"万元");
|
|
|
holder.tv_depart.setText(mdata.getJSONObject(position).getString("position")
|
|
|
+"\n"+mdata.getJSONObject(position).getString("depart"));
|
|
|
holder.tv_desc.setText(mdata.getJSONObject(position).getString("desc"));
|
|
|
@@ -212,7 +212,7 @@ public class SalesRankingActivity extends BaseActivity {
|
|
|
JSONObject s=new JSONObject();
|
|
|
JSONObject p=new JSONObject();
|
|
|
|
|
|
- int s_id=sales.getIntValue(0);
|
|
|
+ float s_id=sales.getFloatValue(0);
|
|
|
String s_name=sales.getString(1);
|
|
|
String s_position=sales.getString(2);
|
|
|
String s_depart=sales.getString(3);
|
|
|
@@ -224,7 +224,7 @@ public class SalesRankingActivity extends BaseActivity {
|
|
|
s.put("imId",s_imid);
|
|
|
s.put("desc","销售总额冠军");
|
|
|
|
|
|
- int p_id=profits.getIntValue(0);
|
|
|
+ float p_id=profits.getFloatValue(0);
|
|
|
String p_name=profits.getString(1);
|
|
|
String p_position=profits.getString(2);
|
|
|
String p_depart=profits.getString(3);
|