Browse Source

小数位数处理

王苗苗 4 ngày trước cách đây
mục cha
commit
c17a4c09b1

+ 4 - 4
slibra-system/src/main/java/com/slibra/business/service/impl/TCallRecordServiceImpl.java

@@ -269,10 +269,10 @@ public class TCallRecordServiceImpl implements ITCallRecordService
         int traditionTotal = this.tCallRecordMapper.getTotalByIsAi(0);
         callRecordCount.setTraditionTotal(traditionTotal);
         if(total > 0){
-            callRecordCount.setHumanPercent((double) (humanTotal / total));
-            callRecordCount.setWhiteListPercent((double) (whiteListTotal / total));
-            callRecordCount.setAiPercent((double) (aiTotal / total));
-            callRecordCount.setTraditionPercent((double) (traditionTotal / total));
+            callRecordCount.setHumanPercent((double)humanTotal / total);
+            callRecordCount.setWhiteListPercent((double)whiteListTotal / total);
+            callRecordCount.setAiPercent((double)aiTotal / total);
+            callRecordCount.setTraditionPercent((double)traditionTotal / total);
         }
         callRecordCount.setSpecialCount(this.tCallRecordMapper.getSpecialCount());
         int transferCount = this.tCallRecordMapper.getTransferCount();