lxw
2023-07-31 c0c2a91df6dd1ac910234200b4391911d22b93a0
修复bmd的bug
1个文件已修改
6 ■■■■ 已修改文件
src/main/java/com/whyc/service/BatttestdataInfService.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BatttestdataInfService.java
@@ -181,10 +181,10 @@
            allCap += cap;
            // and test_stoptype in (3, 4, 6)
            // or (test_stoptype=2 and test_timelong>=7200))
            if ((binf.getTestStoptype() == 3 || binf.getTestStoptype() == 4 || binf.getTestStoptype() == 6) ||
            /*if ((binf.getTestStoptype() == 3 || binf.getTestStoptype() == 4 || binf.getTestStoptype() == 6) ||
                    (binf.getTestStoptype() == 2 && binf.getTestTimelong() >= 7200)) {
                sum++;
            }
            }*/
            sum++;
        }
        if(sum!=0){
            avgCap=allCap/sum;//平均容量