APP-吊装监控
This commit is contained in:
parent
839cc6eaf6
commit
0f45964c05
|
|
@ -79,7 +79,6 @@ public interface ConsControlMapper {
|
|||
* @author cwchen
|
||||
* @date 2024/8/9 15:13
|
||||
*/
|
||||
@MapKey("id")
|
||||
Map<String, Object> getTowerInfo(BraceletParamsDto dto);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -173,8 +173,8 @@ public class ConsControlServiceImpl implements IConsControlService {
|
|||
Map<String, Object> towerMap = mapper.getTowerInfo(dto);
|
||||
String distance = mapper.getDistance();
|
||||
Double distanceValue = 0D;
|
||||
if (StringUtils.isEmpty(distance)) {
|
||||
distanceValue = StringUtils.isEmpty(distance) ? 50 : Double.parseDouble(distance);
|
||||
if (StringUtils.isNotBlank(distance)) {
|
||||
distanceValue = Double.parseDouble(distance);
|
||||
}
|
||||
List<Map<String, Object>> personList = mapper.getWorkPersonInfo(dto);
|
||||
if (CollectionUtils.isNotEmpty(personList)) {
|
||||
|
|
@ -340,9 +340,9 @@ public class ConsControlServiceImpl implements IConsControlService {
|
|||
return map;
|
||||
}
|
||||
for (Map<String, Object> mapData : shMapDataList) {
|
||||
if (Objects.equals(String.valueOf(map.get("dataCode")), BusinessConstants.LAT)) {
|
||||
if (Objects.equals(String.valueOf(mapData.get("dataCode")), BusinessConstants.LAT)) {
|
||||
map.put("lat", mapData.get("dataVal"));
|
||||
} else if (Objects.equals(String.valueOf(map.get("dataCode")), BusinessConstants.LON)) {
|
||||
} else if (Objects.equals(String.valueOf(mapData.get("dataCode")), BusinessConstants.LON)) {
|
||||
map.put("lon", mapData.get("dataVal"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue