Commit 675666a7 by lzy

更新

parent f9025892
...@@ -199,7 +199,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev ...@@ -199,7 +199,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
.eq(PlatDevice::getOriDeviceId, dto.getOriDeviceId())); .eq(PlatDevice::getOriDeviceId, dto.getOriDeviceId()));
if (db == null) { if (db == null) {
throw new RuntimeException("设备不存在:" + db.getOriDeviceId()); throw new RuntimeException("设备不存在:" + dto.getOriDeviceId());
} }
String id = null; String id = null;
...@@ -222,6 +222,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev ...@@ -222,6 +222,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
saveOrUpdate(db); saveOrUpdate(db);
id = db.getId(); id = db.getId();
log.error("设备---" + db);
deviceCacheUtil.put(db); deviceCacheUtil.put(db);
BeanUtils.copyProperties(dto, other); BeanUtils.copyProperties(dto, other);
......
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