|
|
@ -20,17 +20,10 @@ import com.iflytop.gd.common.enums.data.DevicePositionCode; |
|
|
|
import com.iflytop.gd.common.exception.AppException; |
|
|
|
import com.iflytop.gd.common.result.ResultCode; |
|
|
|
import com.iflytop.gd.common.utils.CommandUtil; |
|
|
|
import com.iflytop.gd.hardware.drivers.DODriver.OutputIOCtrlDriver; |
|
|
|
import com.iflytop.gd.hardware.drivers.TricolorLightDriver; |
|
|
|
import com.iflytop.gd.hardware.exception.HardwareException; |
|
|
|
import com.iflytop.gd.hardware.type.IO.OutputIOMId; |
|
|
|
import com.iflytop.gd.hardware.type.MId; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
|
|
|
|
/** |
|
|
|
* 工艺步骤执行服务 |
|
|
|
*/ |
|
|
@ -93,7 +86,7 @@ public class CraftsStepService { |
|
|
|
Double volume = addLiquid.getDouble("volume"); |
|
|
|
Container container = containerService.getContainerBySolutionId(solId); |
|
|
|
if (container == null) { |
|
|
|
throw new AppException(ResultCode.CRAFT_CONTAINER_NOT_FOUND);//未找到对应溶液容器 |
|
|
|
throw new AppException(ResultCode.CONTAINER_NOT_FOUND);//未找到对应溶液容器 |
|
|
|
} |
|
|
|
AcidPumpDeviceCode acidPumpDevice = AcidPumpDeviceCode.valueOf(container.getPumpId());//泵 |
|
|
|
int scale = container.getScale() == null ? 120 : container.getScale();//系数 |
|
|
|