|
|
@@ -154,6 +154,7 @@ public class IotTemplateManagerService extends SuperService {
|
|
|
BeanUtils.copyProperties(it, main, "id", "createTime", "updateTime");
|
|
|
if (oldList.contains(it.getId())) {
|
|
|
main.setId(map.get(it.getId()));
|
|
|
+
|
|
|
map.remove(it.getId());
|
|
|
}
|
|
|
main.setIotThingId(iotThingId);
|
|
|
@@ -180,7 +181,7 @@ public class IotTemplateManagerService extends SuperService {
|
|
|
}
|
|
|
iotMainDao.saveAll(saveList);
|
|
|
if (!map.isEmpty()) {
|
|
|
- List<String> ids = new ArrayList<>(map.keySet());
|
|
|
+ List<String> ids = new ArrayList<>(map.values());
|
|
|
iotMainDao.deleteAllById(ids);
|
|
|
}
|
|
|
return ResultContent.buildSuccess();
|