| | |
| | | public Map<String, Object> summary() { |
| | | Map<String, Object> row = mapper.selectSummary(); |
| | | if (row == null) { |
| | | throw new BusinessException(ErrorCode.INTERNAL_ERROR, "\u5de5\u4f5c\u53f0\u7edf\u8ba1\u67e5\u8be2\u5931\u8d25"); |
| | | throw new BusinessException(ErrorCode.INTERNAL_ERROR, "工作台统计查询失败"); |
| | | } |
| | | long subsidyCents = number(row.get("subsidyAmountCents")); |
| | | long monthlyVerification = number(row.get("monthlyVerificationCount")); |
| | |
| | | result.put("budgetUsageRateText", "0.00%"); |
| | | |
| | | List<Map<String, Object>> alerts = new ArrayList<>(); |
| | | addAlert(alerts, "\u5f85\u5904\u7406\u8ba2\u5355", number(row.get("pendingOrderCount"))); |
| | | addAlert(alerts, "\u5f85\u5ba1\u6838\u5546\u54c1", number(row.get("pendingProductCount"))); |
| | | addAlert(alerts, "\u5f85\u5904\u7406\u9884\u7ea6", number(row.get("pendingApplicationCount"))); |
| | | addAlert(alerts, "待处理订单", number(row.get("pendingOrderCount"))); |
| | | addAlert(alerts, "待审核商品", number(row.get("pendingProductCount"))); |
| | | addAlert(alerts, "待处理预约", number(row.get("pendingApplicationCount"))); |
| | | result.put("alertCount", alerts.stream().mapToLong(a -> number(a.get("count"))).sum()); |
| | | result.put("alerts", alerts); |
| | | result.put("statisticsBasis", "\u8865\u8d34\u4ec5\u7edf\u8ba1\u653f\u5e9c\u627f\u62c5\u7684\u5546\u54c1\u8865\u8d34\u548c\u653f\u5e9c\u8865\u8d34\u5238\u91d1\u989d\uff0c\u5546\u5bb6\u81ea\u884c\u8ba9\u5229\u4e0d\u8ba1\u5165\u653f\u5e9c\u8865\u8d34"); |
| | | result.put("statisticsBasis", "补贴仅统计政府承担的商品补贴和政府补贴券金额,商家自行让利不计入政府补贴"); |
| | | return result; |
| | | } |
| | | |