From d36e04ead532f9bb14925f57e8fb49d68eed9671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sun, 28 Sep 2025 16:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property/models/property_meter_archives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property/models/property_meter_archives.py b/yuthon_property/models/property_meter_archives.py index 733dfb48e..864ba990e 100644 --- a/yuthon_property/models/property_meter_archives.py +++ b/yuthon_property/models/property_meter_archives.py @@ -217,7 +217,7 @@ class MeterArchivesLine(models.Model): def compute_meter_values(self): """合并计算当前用量和上次用量""" for line in self: - if line.current_read > line.last_read: + if line.current_read >= line.last_read: line.current_meter = line.current_read - line.last_read else: if line.maximum_count > 0: