|
|
@@ -100,7 +100,7 @@ public class ConnectorInfoServiceImpl extends MPJBaseServiceImpl<ConnectorInfoMa
|
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
var res = connectorInfos.stream().collect(Collectors.groupingBy(ConnectorInfo::getStatus, Collectors.counting()));
|
|
|
- res.put(EquipmentInfo.SERVICE_STATUS_已连接, res.get(EquipmentInfo.SERVICE_STATUS_已连接) - orderInfos);
|
|
|
+ res.putIfAbsent(EquipmentInfo.SERVICE_STATUS_已连接, res.get(EquipmentInfo.SERVICE_STATUS_已连接) - orderInfos);
|
|
|
res.put(EquipmentInfo.SERVICE_STATUS_预约中, orderInfos);
|
|
|
return res;
|
|
|
}
|