|
|
@@ -394,19 +394,23 @@ public class DataboardController {
|
|
|
List<Integer> city_in = new ArrayList<>();
|
|
|
city_in.add(1);city_in.add(0);
|
|
|
for (Integer i : city_in) {
|
|
|
+ String item = "";
|
|
|
+ if(i == 1){
|
|
|
+ item = "市外";
|
|
|
+ }else{
|
|
|
+ item = "室内";
|
|
|
+ }
|
|
|
+ Double amount = 0D;
|
|
|
for (Map<String, Object> objectMap : list) {
|
|
|
Object cityInObj = objectMap.get("city_in");
|
|
|
- String item = "";
|
|
|
if (cityInObj != null && Integer.parseInt(cityInObj.toString()) == i) {
|
|
|
- item = "市外";
|
|
|
- } else if (cityInObj != null && Integer.parseInt(cityInObj.toString()) == i) {
|
|
|
- item = "室内";
|
|
|
+ amount = Double.parseDouble(objectMap.get("total_amount").toString());
|
|
|
}
|
|
|
- ItemCountAmountVo amountVo = new ItemCountAmountVo();
|
|
|
- amountVo.setItem(item);
|
|
|
- amountVo.setAmount(Double.parseDouble(objectMap.get("total_amount").toString()));
|
|
|
- amountList.add(amountVo);
|
|
|
}
|
|
|
+ ItemCountAmountVo amountVo = new ItemCountAmountVo();
|
|
|
+ amountVo.setItem(item);
|
|
|
+ amountVo.setAmount(amount);
|
|
|
+ amountList.add(amountVo);
|
|
|
}
|
|
|
|
|
|
result.setAmountList(amountList);
|