|
|
|
@ -119,30 +119,31 @@ public class InfraredController { |
|
|
|
//添加画框数据 |
|
|
|
@PostMapping("/ir/addBoxData") |
|
|
|
@ResponseBody |
|
|
|
public int addBoxData(@RequestBody InfraPictureInfo infraPictureInfo) { |
|
|
|
return hikVisionService.insertInfraredBoxList(infraPictureInfo); |
|
|
|
public AjaxResult addBoxData(@RequestBody InfraPictureInfo infraPictureInfo) { |
|
|
|
int i = hikVisionService.insertInfraredBoxList(infraPictureInfo); |
|
|
|
return AjaxResult.success().put("data", i); |
|
|
|
} |
|
|
|
|
|
|
|
//删除选择图片的全部框 |
|
|
|
@PostMapping("/ir/deleteBoxData") |
|
|
|
@ResponseBody |
|
|
|
public int deleteBoxData(@RequestBody InfraredBox infraredBox) { |
|
|
|
public AjaxResult deleteBoxData(@RequestBody InfraredBox infraredBox) { |
|
|
|
int i = -1; |
|
|
|
if (StringUtils.isNotEmpty(infraredBox.getImgName())) { |
|
|
|
i=hikVisionService.deleteInfraredBoxListByImgName(infraredBox.getImgName()); |
|
|
|
} |
|
|
|
return i; |
|
|
|
return AjaxResult.success().put("data", i); |
|
|
|
} |
|
|
|
|
|
|
|
//获取选择图片的全部框 |
|
|
|
@PostMapping("/ir/selectBoxData") |
|
|
|
@ResponseBody |
|
|
|
public List<InfraredBox> selectBoxData(@RequestBody InfraredBox infraredBox) { |
|
|
|
public AjaxResult selectBoxData(@RequestBody InfraredBox infraredBox) { |
|
|
|
List<InfraredBox> list=new ArrayList<>(); |
|
|
|
if (StringUtils.isNotEmpty(infraredBox.getImgName())) { |
|
|
|
list = hikVisionService.selectInfraredBoxListByImgName(infraredBox.getImgName()); |
|
|
|
} |
|
|
|
return list; |
|
|
|
return AjaxResult.success().put("data", list); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/ir/status") |
|
|
|
|