| | |
| | | |
| | | @ApiOperation(value = "检查步骤") |
| | | @GetMapping("checkStatus") |
| | | public Response checkStatus(@RequestParam int deviceId, @RequestParam int battGroupId, @RequestParam int type, HttpServletRequest request){ |
| | | public Response checkStatus(@RequestParam int deviceId, |
| | | @RequestParam int battGroupId, |
| | | @RequestParam int index, |
| | | @RequestParam int type, HttpServletRequest request){ |
| | | Response response = new Response<>(); |
| | | |
| | | switch (type){ |
| | |
| | | } |
| | | break; |
| | | //母联开关模式无告警 |
| | | //检查项: 空开状态 1 返回1,其他返回0 |
| | | //检查项: 空开状态 1和3 返回1,其他返回0 |
| | | case 4: { |
| | | response = checkService.checkFour(request,deviceId); |
| | | } |
| | |
| | | response = checkService.checkFive(request,battGroupId); |
| | | } |
| | | break; |
| | | //切换箱接触器状态 |
| | | //对应电池组正负极全为1则正常 |
| | | case 6: { |
| | | response = checkService.checkSix(request,deviceId,index); |
| | | } |
| | | break; |
| | | } |
| | | try { |
| | | sleep(1000); |