| | |
| | | import com.moral.common.util.ValidateUtil;
|
| | | import com.moral.entity.Device;
|
| | | import com.moral.entity.DeviceProperty;
|
| | | import com.moral.entity.MonitorPoint;
|
| | | import com.moral.mapper.DeviceMapper;
|
| | | import com.moral.mapper.DevicePropertyMapper;
|
| | | import com.moral.mapper.DeviceVersionMapper;
|
| | |
| | | Example.Criteria deviceCriteria = deviceExample.createCriteria();
|
| | | deviceCriteria.orEqualTo("isDelete", Constants.IS_DELETE_FALSE);
|
| | | List<Device> devicesInfo = deviceMapper.selectByExample(deviceExample);
|
| | | Example monitorExample = new Example(MonitorPoint.class);//实例化
|
| | | Example.Criteria monitorCriteria = monitorExample.createCriteria();
|
| | | monitorCriteria.orEqualTo("isDelete", Constants.IS_DELETE_FALSE);
|
| | | List<MonitorPoint> monitorsInfo = monitorPointMapper.selectByExample(monitorExample);
|
| | | for (Device d : deviceList) {
|
| | | if (dv.contains(d.getDeviceVersionId())) {
|
| | | d.setHasWindInfo(true);
|
| | |
| | | d.setState(temp.getState());
|
| | | }
|
| | | }
|
| | | for (MonitorPoint mp : monitorsInfo) {
|
| | | if (d.getMonitorPointId().equals(mp.getId())) {
|
| | | d.setMonitorPoint(mp);
|
| | | }
|
| | | }
|
| | | }
|
| | | return deviceList;
|
| | | }
|
| | |
| | | moralMap.MoralMarker = function (option) { |
| | | var _option = option; |
| | | var _pointObj = new BMap.Point(_option['longitude'], _option['latitude']); |
| | | if (_option["description"]=="国控站"){ |
| | | _option["state"]="5"; |
| | | } |
| | | if (_option["description"]=="省控站"){ |
| | | _option["state"]="6"; |
| | | } |
| | | if (_option["description"]=="县控站"){ |
| | | _option["state"]="8"; |
| | | } |
| | | var _iconObj = _getMapIcon(_option["state"]); |
| | | this._point = _pointObj; |
| | | |
| | |
| | | if (longitude < bounds.northeastLng && longitude > bounds.southwestLng && latitude < bounds.northeastLat && latitude > bounds.southwestLat) { |
| | | markers.push(oldmarker); |
| | | } |
| | | if("国控站"===option["monitorPoint"]["description"]){ |
| | | var icon05 = new BMap.Icon("/img/ico05.png", new BMap.Size(50, 50)); |
| | | var mark05 = new BMap.Marker(new BMap.Point(option["monitorPoint"]["longitude"], option["monitorPoint"]["latitude"]), {icon: icon05}); |
| | | markers.push(mark05); |
| | | }else if("省控站"===obj["monitorPoint"]["description"]){ |
| | | var icon06 = new BMap.Icon("/img/ico06.png", new BMap.Size(50, 50)); |
| | | var mark06 = new BMap.Marker(new BMap.Point(obj["monitorPoint"]["longitude"], obj["monitorPoint"]["latitude"]), {icon: icon06}); |
| | | markers.push(mark06); |
| | | }else if("县控站"===obj["monitorPoint"]["description"]){ |
| | | var icon08 = new BMap.Icon("/img/ico08.png", new BMap.Size(50, 50)); |
| | | var mark08 = new BMap.Marker(new BMap.Point(obj["monitorPoint"]["longitude"], obj["monitorPoint"]["latitude"]), {icon: icon08}); |
| | | markers.push(mark08); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | background: url(/img/charts_btn_bg_2.png) left top no-repeat; |
| | | background-size: 70%; |
| | | } |
| | | |
| | | .wind_explain{ |
| | | position: absolute; |
| | | height: 200px; |
| | |
| | | top: 110px; |
| | | z-index: 1; |
| | | } |
| | | |
| | | .wind_explain li{ |
| | | height: 25px; |
| | | } |
| | | |
| | | .wind_explain li span{ |
| | | display: inline-block; |
| | | height: 25px; |
| | | line-height: 25px; |
| | | } |
| | | |
| | | .wind_explain li img{ |
| | | vertical-align: top; |
| | | } |
| | |
| | | alert(equStr); |
| | | } |
| | | } |
| | | if("国控站"===obj["monitorPoint"]["description"]){ |
| | | var icon05 = new BMap.Icon("/img/ico05.png", new BMap.Size(50, 50)); |
| | | var mark05 = new BMap.Marker(new BMap.Point(obj["monitorPoint"]["longitude"], obj["monitorPoint"]["latitude"]), {icon: icon05}); |
| | | moralMap.addOverlay(mark05); |
| | | }else if("省控站"===obj["monitorPoint"]["description"]){ |
| | | var icon06 = new BMap.Icon("/img/ico06.png", new BMap.Size(50, 50)); |
| | | var mark06 = new BMap.Marker(new BMap.Point(obj["monitorPoint"]["longitude"], obj["monitorPoint"]["latitude"]), {icon: icon06}); |
| | | moralMap.addOverlay(mark06); |
| | | }else if("县控站"===obj["monitorPoint"]["description"]){ |
| | | var icon08 = new BMap.Icon("/img/ico08.png", new BMap.Size(50, 50)); |
| | | var mark08 = new BMap.Marker(new BMap.Point(obj["monitorPoint"]["longitude"], obj["monitorPoint"]["latitude"]), {icon: icon08}); |
| | | moralMap.addOverlay(mark08); |
| | | } |
| | | var moralMask = new moralMap.Equipment(obj); |
| | | moralMap.addOverlay(moralMask); |
| | | if (obj['hasWindInfo'] && obj['state'] != 4) { |