| | |
| | | @PutMapping("/start") |
| | | public AjaxResult start(@RequestParam Long testId) |
| | | { |
| | | return toAjax(testService.startTest(testId, getUsername())); |
| | | testService.startReception(testId, getUserId(), getUsername()); |
| | | return success(testService.selectTestById(testId)); |
| | | } |
| | | |
| | | /** 独立的开始接收动作;只改变系统数据归属,不向设备发送控制命令。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:test:start')") |
| | | @Log(title = "测试数据接收", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/{testId}/reception/start") |
| | | public AjaxResult startReception(@PathVariable Long testId) |
| | | { |
| | | testService.startReception(testId, getUserId(), getUsername()); |
| | | return success(testService.selectTestById(testId)); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:test:remove')") |