Browse Source

阀门打开bug

master
王梦远 2 months ago
parent
commit
ce4d070071
  1. 2
      src/main/java/com/iflytop/sgs/app/cmd/debug/DebugLiquidValveOpenThickCommand.java
  2. 2
      src/main/java/com/iflytop/sgs/app/cmd/debug/DebugLiquidValveOpenThinCommand.java
  3. 3
      src/main/java/com/iflytop/sgs/app/controller/CraftsController.java

2
src/main/java/com/iflytop/sgs/app/cmd/debug/DebugLiquidValveOpenThickCommand.java

@ -28,7 +28,7 @@ public class DebugLiquidValveOpenThickCommand extends BaseCommandHandler {
@Override
public CompletableFuture<Void> handle(CmdDTO cmdDTO) {
return runAsync(() -> {
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.valveTurn(SolutionCode.thin.getChannel());
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.valveTurn(SolutionCode.thick.getChannel());
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand);
CommandUtil.wait(deviceCommandFuture);
});

2
src/main/java/com/iflytop/sgs/app/cmd/debug/DebugLiquidValveOpenThinCommand.java

@ -28,7 +28,7 @@ public class DebugLiquidValveOpenThinCommand extends BaseCommandHandler {
@Override
public CompletableFuture<Void> handle(CmdDTO cmdDTO) {
return runAsync(() -> {
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.valveTurn(SolutionCode.thick.getChannel());
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.valveTurn(SolutionCode.thin.getChannel());
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand);
CommandUtil.wait(deviceCommandFuture);
});

3
src/main/java/com/iflytop/sgs/app/controller/CraftsController.java

@ -119,7 +119,8 @@ public class CraftsController {
@Operation(summary = "异常工艺恢复")
@PostMapping("/restart")
public Result<SetCraftsVO> restartCrafts(@Valid @RequestBody StartCraftsDTO startCraftsDTO) {
return Result.success(craftsService.startCrafts(startCraftsDTO));
return Result.success();
// return Result.success(craftsService.startCrafts(startCraftsDTO));
}
@Operation(summary = "获取异常工艺列表")

Loading…
Cancel
Save