Commit 4f386477a81020b22845c8cd71b3e8eeb78d9086

Authored by dongqin
1 parent 463db6e6d9

修改统计率

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java View file @ 4f38647
... ... @@ -1951,7 +1951,7 @@
1951 1951 totalCount = okCount + errorCount;
1952 1952 double okPercentage = 0, errorPercentage = 0;
1953 1953 if (totalCount > 0) {
1954   - okPercentage = new BigDecimal(okCount.toString()).divide(new BigDecimal(totalCount.toString()), 1, BigDecimal.ROUND_HALF_UP).doubleValue() * 100;
  1954 + okPercentage = new BigDecimal(okCount.toString()).divide(new BigDecimal(totalCount.toString()), 3, BigDecimal.ROUND_HALF_UP).doubleValue() * 100;
1955 1955 errorPercentage = 100 - okPercentage;
1956 1956 }
1957 1957 matDeliverQuery.setVisitResult(matdeliverFollowRequest.getVisitResult());