|
@@ -258,7 +258,9 @@ public class ParkSystemServiceImpl implements ParkSystemService {
|
|
|
outCountResult.set(outCount.intValue() + outCountResult.get());
|
|
|
outCountOldResult.set(outCountOld.intValue() + outCountOldResult.get());
|
|
|
List<Map> exceptionResult = new ArrayList<>();
|
|
|
- exceptionData.keySet().forEach(x -> exceptionResult.addAll((List<Map>) exceptionData.get(x)));
|
|
|
+ if (exceptionData != null) {
|
|
|
+ exceptionData.keySet().forEach(x -> exceptionResult.addAll((List<Map>) exceptionData.get(x)));
|
|
|
+ }
|
|
|
for (int i = 0; i < indexs.size(); i++) {
|
|
|
Levi levi = result.get(i);
|
|
|
levi.set("in", levi.getInt("in") + (inObjList == null ? 0 : inObjList.getJSONObject(indexs.get(i)).getJSONArray("data").size()));
|
|
@@ -593,7 +595,7 @@ public class ParkSystemServiceImpl implements ParkSystemService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public ResponseBean getExceptionTrend(String parkCode) {
|
|
|
+ public ResponseBean exceptionAnalysis(String parkCode) {
|
|
|
List<String> parkCodeList = Arrays.asList(parkCode);
|
|
|
if (StringUtils.isBlank(parkCode)) {
|
|
|
parkCodeList = ParkUtils.getParkCodeList();
|
|
@@ -617,7 +619,7 @@ public class ParkSystemServiceImpl implements ParkSystemService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public ResponseBean getExceptionTrendByPage(ExceptionTrendReq params) {
|
|
|
+ public ResponseBean exceptionAnalysisByPage(ExceptionTrendReq params) {
|
|
|
String parkCode = params.getParkCode();
|
|
|
String paramsCode = params.getCode();
|
|
|
List<String> parkCodeList = Arrays.asList(parkCode);
|
|
@@ -704,22 +706,6 @@ public class ParkSystemServiceImpl implements ParkSystemService {
|
|
|
return ResponseBuilder.ok(PageBean.<Map>builder().total(resStream.get().count()).row(resultsList).build());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 异常趋势统计查询
|
|
|
- *
|
|
|
- * @param parkCode
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public ResponseBean exceptionAnalysis(String parkCode) {
|
|
|
- List<String> parkCodeList = Arrays.asList(parkCode);
|
|
|
- if (StringUtils.isBlank(parkCode)) {
|
|
|
- parkCodeList = ParkUtils.getParkCodeList();
|
|
|
- }
|
|
|
- // TODO 异常还未统计
|
|
|
- return ResponseBuilder.ok("");
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 查询已配置的crm项目列表
|
|
|
*
|