Browse Source

feat:计算实际出液量

master
白凤吉 2 days ago
parent
commit
acb65864a2
  1. 6
      src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java

6
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");
}

Loading…
Cancel
Save