diff --git a/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java b/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java index 6e0a5b3..72fa17d 100644 --- a/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java +++ b/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java @@ -339,9 +339,9 @@ public class ChannelCtrlService { throw new IllegalArgumentException("Formulation 或其字段 volume/revolutions 不能为空"); } Integer pumpConversionFactor = systemConfigService.getValueByKeyToInteger(SystemConfigKey.PUMP_CONVERSION_FACTOR); - double deltaRevolutions = afterPosition - beforePosition; - double targetVolume = formulation.getVolume() / pumpConversionFactor; - double targetRevs = formulation.getRevolutions() / pumpConversionFactor; + double deltaRevolutions = (afterPosition - beforePosition) / pumpConversionFactor; + double targetVolume = formulation.getVolume(); + double targetRevs = formulation.getRevolutions(); if (targetRevs == 0) { throw new IllegalArgumentException("Formulation.revolutions 不能为 0"); }