Commit 28b7e4f7 authored by chenzhao's avatar chenzhao

修改代码

parent e980350c
......@@ -1369,10 +1369,10 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
for (IndicatorsDto data : listDatas) {
String url = "";
String[] urls = data.getPictureName().split(",");
if (StringUtils.isNotEmpty(data.getValue()) && data.getValue().equals("true")){
url =pictureUrl+urls[0];
if (StringUtils.isNotEmpty(data.getValue()) && data.getValue().equals("false")){
url =pictureUrl+urls[1];
}else {
url =pictureUrl+ urls[1];;
url =pictureUrl+ urls[0];;
}
if (data.getDisplayName().split("_").length > 2){
photoUrls.put(KGName.getCode(data.getDisplayName().split("_")[1]),url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment