mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-03 03:32:08 +08:00
fix(manager): preserve profile binding when toggling device enable state
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ public class DeviceServiceImpl implements DeviceService {
|
||||
// 删除的模版
|
||||
Set<Long> delete = new HashSet<>(oldProfileIds);
|
||||
delete.removeAll(newProfileIds);
|
||||
delete.forEach(profileId -> profileBindService.removeByDeviceIdAndProfileId(entityBO.getId(), profileId));
|
||||
// delete.forEach(profileId -> profileBindService.removeByDeviceIdAndProfileId(entityBO.getId(), profileId));
|
||||
|
||||
entityDO = deviceBuilder.buildDOByBO(entityBO);
|
||||
entityBO.setOperateTime(null);
|
||||
|
||||
Reference in New Issue
Block a user