|
|
@@ -30,6 +30,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.common.config.VersionUtil;
|
|
|
import com.common.data.CalendarUtil;
|
|
|
+import com.common.data.JSONUtil;
|
|
|
import com.common.data.StringUtil;
|
|
|
import com.common.system.DisplayUtil;
|
|
|
import com.core.app.Constants;
|
|
|
@@ -262,12 +263,15 @@ public class BusinessActivity extends BaseActivity implements View.OnClickListen
|
|
|
gridlists.add(items);
|
|
|
for (int i = 0; i < chances.size(); i++) {
|
|
|
items = new ArrayList<>();
|
|
|
- String currentprocess = chances.getJSONObject(i).getString("currentprocess");
|
|
|
- String percent = chances.getJSONObject(i).getString("percent");
|
|
|
- String color = chances.getJSONObject(i).getString("color");
|
|
|
- int detno = chances.getJSONObject(i).getInteger("detno");
|
|
|
- int count = chances.getJSONObject(i).getInteger("count");
|
|
|
- double amount = chances.getJSONObject(i).getDouble("amount");
|
|
|
+ JSONObject chanceObject = chances.getJSONObject(i);
|
|
|
+
|
|
|
+ String currentprocess = JSONUtil.getText(chanceObject, "currentprocess");
|
|
|
+ String percent = JSONUtil.getText(chanceObject, "percent");
|
|
|
+ String color = JSONUtil.getText(chanceObject, "color");
|
|
|
+ int detno = JSONUtil.getInt(chanceObject, "detno");
|
|
|
+ int count = JSONUtil.getInt(chanceObject, "count");
|
|
|
+ double amount = JSONUtil.getDouble(chanceObject,"amount");
|
|
|
+
|
|
|
items.add("#" + color);
|
|
|
colors.add("#" + color);
|
|
|
// items.add(String.valueOf(i + 1));
|