|
|
@ -143,7 +143,6 @@ public class CMDService { |
|
|
|
private Boolean injectFluid(CMDForm cmdForm) { |
|
|
|
List<Supplier<Boolean>> cmdList = new ArrayList<>(); |
|
|
|
// TODO 计算出试管的坐标 |
|
|
|
// TODO 获取加液位是否有试管(传感器?) |
|
|
|
// TODO 溶液id 容量 |
|
|
|
Map<String, Object> params = cmdForm.getParams(); |
|
|
|
cmdList.add(() -> deviceService.addLiquid((String) params.get("pumpId"), ((Integer)params.get("volume")))); |
|
|
@ -180,7 +179,7 @@ public class CMDService { |
|
|
|
return false; |
|
|
|
} |
|
|
|
WebsocketResult websocketResult = new WebsocketResult(); |
|
|
|
websocketResult.setType("cmd"); |
|
|
|
websocketResult.setType("warn"); |
|
|
|
ExecutionResult executionResult = new ExecutionResult(); |
|
|
|
executionResult.setCommandId(cmdForm.getCommandId()); |
|
|
|
executionResult.setCommandName(cmdForm.getCommand()); |
|
|
|