Commit 8b02cf6f authored by tangwei's avatar tangwei

修改bug

parent 487fbdd7
......@@ -353,7 +353,14 @@ public class EquipmentSpecificController extends AbstractBaseController {
@ApiOperation(httpMethod = "POST", value = "摄像头解绑设备", notes = "摄像头绑定设备")
public ResponseModel delVideoOnEquipmentjb( @RequestBody Map<String,List<String>> ids) {
List<String> equipmentSpecificIds = ids.get("ids");
return CommonResponseUtil.success(equipmentSpecificSerivce.delVideoOnEquipmentjb( equipmentSpecificIds));
if(equipmentSpecificIds!=null&&equipmentSpecificIds.size()>0){
return CommonResponseUtil.success(equipmentSpecificSerivce.delVideoOnEquipmentjb( equipmentSpecificIds));
} else {
throw new RuntimeException("未获取到此设备!");
}
}
@RequestMapping(value = "/videoOnEquipmentSpecific/bj", method = RequestMethod.POST)
@TycloudOperation(ApiLevel = UserType.AGENCY)
......
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 to comment