|
@@ -234,6 +234,7 @@ public class PlatPostStationServiceImpl extends ServiceImpl<PlatPostStationMappe
|
|
|
|
|
|
/**
|
|
|
* 处理表格数据
|
|
|
+ * 物业服务 近六个月报修分类占比
|
|
|
* @param appOrg
|
|
|
* @param mapField
|
|
|
*/
|
|
@@ -243,32 +244,32 @@ public class PlatPostStationServiceImpl extends ServiceImpl<PlatPostStationMappe
|
|
|
// 删除当前地区所有数据
|
|
|
iPlatPostStationChartService.remove(chartQueryWrapper);
|
|
|
List<PlatPostStationChart> chartList = new ArrayList<>();
|
|
|
- List<Map<String, Object>> coList = StringUtils.getListMap(mapField.get("coList").toString());
|
|
|
- List<Map<String, Object>> elevatorList = StringUtils.getListMap(mapField.get("ElevatorList").toString());
|
|
|
- List<Map<String, Object>> laList = StringUtils.getListMap(mapField.get("laList").toString());
|
|
|
- List<Map<String, Object>> seList = StringUtils.getListMap(mapField.get("seList").toString());
|
|
|
- List<Map<String, Object>> toList = StringUtils.getListMap(mapField.get("toList").toString());
|
|
|
- List<Map<String, Object>> arList = StringUtils.getListMap(mapField.get("arList").toString());
|
|
|
- List<Map<String, Object>> diList = StringUtils.getListMap(mapField.get("diList").toString());
|
|
|
- List<Map<String, Object>> otList = StringUtils.getListMap(mapField.get("otList").toString());
|
|
|
- List<Map<String, Object>> meList = StringUtils.getListMap(mapField.get("meList").toString());
|
|
|
- List<Map<String, Object>> ofList = StringUtils.getListMap(mapField.get("ofList").toString());
|
|
|
+ Map<String, Object> coList = StringUtils.getListToMap(mapField.get("coList").toString());
|
|
|
+ Map<String, Object> elevatorList = StringUtils.getListToMap(mapField.get("elevatorList").toString());
|
|
|
+ Map<String, Object> laList = StringUtils.getListToMap(mapField.get("laList").toString());
|
|
|
+ Map<String, Object> seList = StringUtils.getListToMap(mapField.get("seList").toString());
|
|
|
+ Map<String, Object> toList = StringUtils.getListToMap(mapField.get("toList").toString());
|
|
|
+ Map<String, Object> arList = StringUtils.getListToMap(mapField.get("arList").toString());
|
|
|
+ Map<String, Object> diList = StringUtils.getListToMap(mapField.get("diList").toString());
|
|
|
+ Map<String, Object> otList = StringUtils.getListToMap(mapField.get("otList").toString());
|
|
|
+ Map<String, Object> meList = StringUtils.getListToMap(mapField.get("meList").toString());
|
|
|
+ Map<String, Object> ofList = StringUtils.getListToMap(mapField.get("ofList").toString());
|
|
|
// List<String> prefixList = Arrays.asList("co","el","la","se","to","ar","di","ot","me","of");
|
|
|
- List<String> keyAppendList = Arrays.asList("One","Two","Three","Four","Five","Six");
|
|
|
+ List<String> keyAppendList = Arrays.asList("one","two","three","four","five","six");
|
|
|
for (int i = 0; i < keyAppendList.size();i++){
|
|
|
PlatPostStationChart platPostStationChart = new PlatPostStationChart();
|
|
|
platPostStationChart.setAppOrg(appOrg);
|
|
|
platPostStationChart.setAppMonth((long) (i+1));
|
|
|
- platPostStationChart.setColNum(Long.parseLong(coList.get(0).get("co" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setElevatorNum(Long.parseLong(elevatorList.get(0).get("el" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setLaNum(Long.parseLong(laList.get(0).get("la" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setSeNum(Long.parseLong(seList.get(0).get("se" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setToNum(Long.parseLong(toList.get(0).get("to" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setArNum(Long.parseLong(arList.get(0).get("ar" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setDiNum(Long.parseLong(diList.get(0).get("di" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setOtNum(Long.parseLong(otList.get(0).get("ot" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setMeNum(Long.parseLong(meList.get(0).get("me" +keyAppendList.get(i)).toString()));
|
|
|
- platPostStationChart.setOfNum(Long.parseLong(ofList.get(0).get("of" +keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setColNum(Long.parseLong(coList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setElevatorNum(Long.parseLong(elevatorList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setLaNum(Long.parseLong(laList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setSeNum(Long.parseLong(seList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setToNum(Long.parseLong(toList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setArNum(Long.parseLong(arList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setDiNum(Long.parseLong(diList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setOtNum(Long.parseLong(otList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setMeNum(Long.parseLong(meList.get(keyAppendList.get(i)).toString()));
|
|
|
+ platPostStationChart.setOfNum(Long.parseLong(ofList.get(keyAppendList.get(i)).toString()));
|
|
|
chartList.add(platPostStationChart);
|
|
|
}
|
|
|
iPlatPostStationChartService.saveBatch(chartList);
|