|
@@ -136,7 +136,7 @@ public class HardwareCommDebugController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/buildMsg/")
|
|
@GetMapping(value = "/buildMsg/")
|
|
- @ApiOperation("拼写带CRC16校验的命令")
|
|
|
|
|
|
+ @ApiOperation("拼写带CRC16校验的命令,但是不发送")
|
|
public AjaxResult buildSendMsg(@RequestParam final String simNum,
|
|
public AjaxResult buildSendMsg(@RequestParam final String simNum,
|
|
@RequestParam final String orn,
|
|
@RequestParam final String orn,
|
|
@RequestParam final String cmd,
|
|
@RequestParam final String cmd,
|
|
@@ -145,15 +145,15 @@ public class HardwareCommDebugController extends BaseController {
|
|
return commBuildService.buildSendMsgAR(simNum, orn, cmd, cmdId, data);
|
|
return commBuildService.buildSendMsgAR(simNum, orn, cmd, cmdId, data);
|
|
}
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/buildMsgAndSend/")
|
|
|
|
- @ApiOperation("拼写带CRC16校验的命令并发送")
|
|
|
|
- public AjaxResult buildMsgAndSend(@RequestParam final String simNum,
|
|
|
|
|
|
+ @GetMapping(value = "/buildMsgAndSend/{seatId}")
|
|
|
|
+ @ApiOperation("拼写带CRC16校验的命令,并发送,返回响应结果")
|
|
|
|
+ public AjaxResult buildMsgAndSend(@PathVariable("seatId") final Long seatId,
|
|
|
|
+ @RequestParam final String simNum,
|
|
@RequestParam final String orn,
|
|
@RequestParam final String orn,
|
|
@RequestParam final String cmd,
|
|
@RequestParam final String cmd,
|
|
@RequestParam final String cmdId,
|
|
@RequestParam final String cmdId,
|
|
@RequestParam final String data) {
|
|
@RequestParam final String data) {
|
|
- // todo:
|
|
|
|
- return commBuildService.buildSendMsgAR(simNum, orn, cmd, cmdId, data);
|
|
|
|
|
|
+ return commBuildService.buildSendMsgAndSendAR(seatId, simNum, orn, cmd, cmdId, data);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|