From dedefa06e62e001b69fa52bb18c759f5fe951c08 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 06 六月 2025 18:32:28 +0800
Subject: [PATCH] 替换百度key

---
 springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
index c8469d3..ac31ea7 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java
@@ -258,16 +258,16 @@
         //page = baseMapper.selectComplaintPage(page, query, targetId, isSuperior);
         page = baseMapper.selectComplaintPage1(page, query, accountLevel, targetId);
 
-        for (ComplaintVO s : page.getRecords()) {
+     /*   for (ComplaintVO s : page.getRecords()) {
             buttonPermission(s, systemUserByPhone, loginUserInfoVO);
             Integer auditButtonStatus = s.getAuditButtonStatus();
 
             Long reporterId = s.getReporterId();
             Long superiorId = s.getSuperiorId2();
             if (!targetId.equals(reporterId) && !targetId.equals(superiorId) && (s.getStatus() == 5)) {
-//                s.setStatus(0);
+                s.setStatus(0);
             }
-        }
+        }*/
         return page;
     }
 
@@ -1468,9 +1468,15 @@
         } else {
             lastYearMonth = LocalDate.now().minusMonths(1).getYear() + "-" + LocalDate.now().minusMonths(1).getMonth().getValue();
         }
+
+
         // 要根据驳回表来改状态
         List<Long> ids = complaints.stream().map(Complaint::getId).collect(Collectors.toList());
+        if (CollUtil.isEmpty(ids)) {
+            ids.add(0, -1L);
+        }
         complaints = this.baseMapper.getStatusForList(ids);
+
         AnalyticStatisticsOneVo vo = new AnalyticStatisticsOneVo();
 
         // 诉求单量总计
@@ -1496,7 +1502,7 @@
         vo.setPostponeTransactTotal(postponeTransactTotal);
 
         // 已办结
-        int completeTransactTotal = (int) complaints.stream().filter(e -> e.getStatus() == 3).count();
+        int completeTransactTotal = (int) complaints.stream().filter(e -> e.getStatus() == 3 || e.getStatus() == 8).count();
         vo.setCompleteTransactTotal(completeTransactTotal);
 
         // 超时办理总量
@@ -1561,6 +1567,8 @@
             if (lastMonthSize > 0) {
                 BigDecimal multiply2 = BigDecimal.valueOf(count2).divide(new BigDecimal(lastMonthSize), 2, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100"));
                 vo.setLastMonthCompareSatisfactionRate(vo.getThisMonthSatisfactionRate() - multiply2.doubleValue());
+            }else {
+                vo.setLastMonthCompareSatisfactionRate(vo.getThisMonthSatisfactionRate());
             }
         }
         return vo;

--
Gitblit v1.7.1