|
|
@ -146,7 +146,7 @@ public class TRecordController extends BaseController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
RecordHistoryDataResp recordHistoryDataResp = new RecordHistoryDataResp();
|
|
|
|
RecordHistoryDataResp recordHistoryDataResp = new RecordHistoryDataResp();
|
|
|
|
List<String> dateList = records.stream().map(tRecord -> DateUtils.parseDateToStr("dd/MM/yyyy",tRecord.getCreateTime())).collect(Collectors.toList());
|
|
|
|
List<Date> dateList = records.stream().map(TRecord::getCreateTime).collect(Collectors.toList());
|
|
|
|
recordHistoryDataResp.setDateList(dateList);
|
|
|
|
recordHistoryDataResp.setDateList(dateList);
|
|
|
|
List<JSONObject> result = records.stream().map(tRecord -> {
|
|
|
|
List<JSONObject> result = records.stream().map(tRecord -> {
|
|
|
|
JSONObject jsonObject;
|
|
|
|
JSONObject jsonObject;
|
|
|
@ -157,7 +157,6 @@ public class TRecordController extends BaseController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return jsonObject;
|
|
|
|
return jsonObject;
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
Map<String,List<Integer>> dataMap = new HashMap<>();
|
|
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(result)){
|
|
|
|
if (!CollectionUtils.isEmpty(result)){
|
|
|
|
List<Integer> shezhiList = new LinkedList<>();
|
|
|
|
List<Integer> shezhiList = new LinkedList<>();
|
|
|
|
List<Integer> shetaiList = new LinkedList<>();
|
|
|
|
List<Integer> shetaiList = new LinkedList<>();
|
|
|
@ -170,11 +169,10 @@ public class TRecordController extends BaseController
|
|
|
|
shetaiList.add(jsonObject.getJSONObject("data").getJSONObject("shetai").getInteger(key1));
|
|
|
|
shetaiList.add(jsonObject.getJSONObject("data").getJSONObject("shetai").getInteger(key1));
|
|
|
|
shexiaList.add(jsonObject.getJSONObject("data").getJSONObject("shexia").getInteger(key2));
|
|
|
|
shexiaList.add(jsonObject.getJSONObject("data").getJSONObject("shexia").getInteger(key2));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
dataMap.put("shezhi",shezhiList);
|
|
|
|
recordHistoryDataResp.setShezhiList(shezhiList);
|
|
|
|
dataMap.put("shetai",shetaiList);
|
|
|
|
recordHistoryDataResp.setShetaiList(shetaiList);
|
|
|
|
dataMap.put("shexia",shexiaList);
|
|
|
|
recordHistoryDataResp.setShexiaList(shexiaList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
recordHistoryDataResp.setDataMap(dataMap);
|
|
|
|
|
|
|
|
return recordHistoryDataResp;
|
|
|
|
return recordHistoryDataResp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|