|
@@ -952,7 +952,13 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
queryWrapper1.eq("bill_status", 2);
|
|
queryWrapper1.eq("bill_status", 2);
|
|
Integer count1 = billCleanMapper.selectCount(queryWrapper1);//异常
|
|
Integer count1 = billCleanMapper.selectCount(queryWrapper1);//异常
|
|
Integer allCount = count + count1;
|
|
Integer allCount = count + count1;
|
|
- Double rank = (Double.valueOf(count.toString()) / Double.valueOf(allCount.toString())) * 100;
|
|
|
|
|
|
+ Double rank;
|
|
|
|
+ if (allCount == 0 || allCount == null) {
|
|
|
|
+ rank = Double.valueOf("0");
|
|
|
|
+ } else {
|
|
|
|
+ rank = (Double.valueOf(count.toString()) / Double.valueOf(allCount.toString())) * 100;
|
|
|
|
+ }
|
|
|
|
+
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
jsonObject.put("count", allCount);
|
|
jsonObject.put("count", allCount);
|
|
jsonObject.put("count1", count);
|
|
jsonObject.put("count1", count);
|