|
|
@ -30,28 +30,15 @@ public class SelfTestController { |
|
|
|
|
|
|
|
@Operation(summary = "自检完毕") |
|
|
|
@PostMapping("/finish") |
|
|
|
public Result<?> selfTestFinish() throws Exception { |
|
|
|
public Result<?> selfTestFinish(){ |
|
|
|
deviceStateService.getDeviceState().setSelfTest(true); |
|
|
|
new Thread(() -> { |
|
|
|
try { |
|
|
|
//deviceCommandUtilService.capMotorMove(21); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("拍子存放区初始化上升失败", e); |
|
|
|
} |
|
|
|
}).start(); |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
@Operation(summary = "改变自检状态") |
|
|
|
|
|
|
|
@Operation(summary = "手动改变自检状态") |
|
|
|
@PostMapping("/isFinish") |
|
|
|
public Result<?> selfTestFinish(boolean isFinish) throws Exception { |
|
|
|
public Result<?> selfTestFinish(boolean isFinish){ |
|
|
|
deviceStateService.getDeviceState().setSelfTest(isFinish); |
|
|
|
new Thread(() -> { |
|
|
|
try { |
|
|
|
//deviceCommandUtilService.capMotorMove(21); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("拍子存放区初始化上升失败", e); |
|
|
|
} |
|
|
|
}).start(); |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
} |