|
|
@@ -19,9 +19,6 @@ import com.nb.bus.service.dto.DeviceQuery;
|
|
|
import com.nb.bus.service.dto.DeviceResult;
|
|
|
import com.nb.common.annotation.Log;
|
|
|
import com.nb.common.crud.BaseService;
|
|
|
-import com.nb.common.crud.controller.BaseCrudController;
|
|
|
-import com.nb.common.crud.controller.BaseDeleteController;
|
|
|
-import com.nb.common.crud.controller.BaseQueryController;
|
|
|
import com.nb.common.crud.controller.BaseSaveController;
|
|
|
import com.nb.common.exception.CustomException;
|
|
|
import com.nb.common.result.R;
|
|
|
@@ -47,8 +44,7 @@ import java.util.List;
|
|
|
@RequestMapping("/bus/device/info")
|
|
|
@Api(tags = "设备管理",description = "统一权限前缀(device:info),device:info:add")
|
|
|
public class BusDeviceController implements
|
|
|
- BaseSaveController<BusDeviceEntity, String>,
|
|
|
- BaseDeleteController<BusDeviceEntity, String> {
|
|
|
+ BaseSaveController<BusDeviceEntity, String> {
|
|
|
private final LocalBusDeviceService deviceService;
|
|
|
|
|
|
@Log(title = "设备换绑")
|
|
|
@@ -163,6 +159,19 @@ public class BusDeviceController implements
|
|
|
// }else {
|
|
|
// return R.fail("同步失败");
|
|
|
// }
|
|
|
+// }
|
|
|
+
|
|
|
+// @PostMapping("/remove")
|
|
|
+// @ApiImplicitParams({
|
|
|
+// @ApiImplicitParam(name = "id",value = "主键id",required = true)
|
|
|
+// })
|
|
|
+// @SaCheckPermission("device:info:delete")
|
|
|
+// @ApiOperation(value = "根据ID删除")
|
|
|
+// public R delete(@RequestParam("id") String id) {
|
|
|
+// if(CharSequenceUtil.isNullOrUndefined(String.valueOf(id))){
|
|
|
+// return R.success();
|
|
|
+// }
|
|
|
+// return R.success(deviceService.removeIotById(id));
|
|
|
// }
|
|
|
|
|
|
/**
|
|
|
@@ -171,7 +180,6 @@ public class BusDeviceController implements
|
|
|
* @return
|
|
|
*/
|
|
|
@Log(title = "从阿里云更新本地设备")
|
|
|
-
|
|
|
@SaCheckPermission("device:info:poll")
|
|
|
@ApiOperation(value = "从阿里云更新本地设备",notes = "从阿里云平台获取设备并更新,参数为设备id列表,格式如['123456','456123'],参数可为空。权限【device:info:poll】")
|
|
|
@PutMapping("/sync-device/batch")
|