Commit 624c867b by huangjy

fix: 设备编辑问题

parent b45aa62b
......@@ -550,13 +550,13 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
}
PlatDeviceBaseAttrDTO.DeviceAttrRange radarDistance = platDeviceBaseAttrDTO.getRadarDistance();
if (!Objects.equals(radarDistance, dto.getRadarDistance())) {
if (radarDistance.getMax() != null && radarDistance.getMin() != null) {
if (radarDistance != null && radarDistance.getMax() != null && radarDistance.getMin() != null) {
map.put("radarDistance", JSON.toJSONString(dto.getRadarDistance()));
}
}
PlatDeviceBaseAttrDTO.DeviceAttrRange radarAngle = platDeviceBaseAttrDTO.getRadarAngle();
if (!Objects.equals(radarAngle, dto.getRadarAngle())) {
if (radarAngle.getMax() != null && radarAngle.getMin() != null) {
if (radarAngle != null && radarAngle.getMax() != null && radarAngle.getMin() != null) {
map.put("radarAngle", JSON.toJSONString(dto.getRadarAngle()));
}
}
......
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 sign in to comment