...
|
...
|
@@ -181,11 +181,12 @@ public class TkDeviceProfileController extends BaseController { |
181
|
181
|
@DeleteMapping
|
182
|
182
|
@ApiOperation("删除")
|
183
|
183
|
@PreAuthorize("@check.checkPermissions({'TENANT_ADMIN'},{'api:yt:deviceProfile:delete'})")
|
184
|
|
- public void deleteDevices(@Validated({DeleteGroup.class}) @RequestBody DeleteDTO deleteDTO)
|
|
184
|
+ public void deleteDeviceProfiles(@Validated({DeleteGroup.class}) @RequestBody DeleteDTO deleteDTO)
|
185
|
185
|
throws ThingsboardException {
|
186
|
186
|
String tenantId = getCurrentUser().getCurrentTenantId();
|
187
|
187
|
ytDeviceProfileService.checkDeviceProfiles(tenantId, deleteDTO.getIds());
|
188
|
188
|
|
|
189
|
+
|
189
|
190
|
for (String id : deleteDTO.getIds()) {
|
190
|
191
|
deleteTbDeviceProfile(id);
|
191
|
192
|
}
|
...
|
...
|
|