Przeglądaj źródła

+ 项目层级变更

chen.cheng 3 miesięcy temu
rodzic
commit
446878bff4

+ 3 - 1
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/service/impl/MachineProcessResultServiceImpl.java

@@ -123,7 +123,9 @@ public class MachineProcessResultServiceImpl implements IMachineProcessResultSer
             consResult = ConsResult.getByCode(consUnitResult.getResultEvaluation());
             resultCADCsv.setEvaluation(consResult.getValue());
             resultCADCsv.setPullValue(consUnitResult.getSprayVolume());
-            resultCADCsv.setActualDepth(consUnitResult.getPileLength() - consUnitResult.getSprayVolume());
+            // 实际深度 = 桩长 - 回带量
+            resultCADCsv.setActualDepth(
+                (float) Math.round((consUnitResult.getPileLength() - consUnitResult.getSprayVolume()) * 100) / 100.0f);
             resultCADCsv.setEndingPress(consUnitResult.getEndPress());
             resultCADCsv.setAvgSprayPressure(consUnitResult.getEndPress());
             resultCADCsv.setAvgSpeed(consUnitResult.getAvgSpeed());