From ec78271b69369d9595111e9f9b6f3ae2456700e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Thu, 19 Mar 2026 20:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=9D=A2=E7=A7=AF=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_report/models/management_area_report.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/yuthon_report/models/management_area_report.py b/yuthon_report/models/management_area_report.py index c6af41a63..7107646f8 100644 --- a/yuthon_report/models/management_area_report.py +++ b/yuthon_report/models/management_area_report.py @@ -11,9 +11,6 @@ class ManagementAreaReport(models.Model): @api.model def get_management_area_report(self, params): """管理面积报表数据源。""" - import logging - _logger = logging.getLogger(__name__) - _logger.warning('=== 管理面积报表 params: %s', params) domain = [] keyword = params.get("keyword") @@ -51,13 +48,7 @@ class ManagementAreaReport(models.Model): # 查询管理信息明细行(过滤掉没有关联物业的无效行) domain.append(('yuthon_property_id', '!=', False)) - _logger.warning('=== 管理面积报表 domain: %s, query_date_obj: %s', domain, query_date_obj) manage_lines = self.env['manage.information.line'].search(domain) - _logger.warning('=== 管理面积报表 manage_lines count: %s', len(manage_lines)) - # 如果有数据,打印第一条看看字段内容 - if manage_lines: - first = manage_lines[0] - _logger.warning('=== 第一条 end_date=%s, yuthon_property_id=%s', first.end_date, first.yuthon_property_id) rows = [] total_management_area = 0.0 @@ -119,7 +110,6 @@ class ManagementAreaReport(models.Model): return { "rows": rows, - "_debug_rows_count": len(rows), "summary": { "序号": False, "物业id": "合计",