whyclxw
2025-05-29 6c13a67934178804ba4845ed821a07145e679a0e
src/main/java/com/whyc/service/BatttestdataInfService.java
@@ -64,8 +64,8 @@
                    Float restTime= BattCapFactory.getTheoryTime(battRtstate.getGroupCurr(), restCap, binf.getMoncapstd());
                    tinf.setRestTime(restTime);
                }
                //保留2位小数
                String precentCap = String.format("%.2f",(restCap/binf.getMoncapstd()*100));
                //保留5位小数
                String precentCap = String.format("%.5f",(restCap/binf.getMoncapstd()*100));
                tinf.setPrecentCap(precentCap);
            }
        }