From 77720100af1735dc1afcb629f9c2d234d5cce066 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 26 Jun 2025 19:15:05 +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_approval/models/property_lease_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 40abee9c2..c652b5c60 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -1244,7 +1244,7 @@ class PropertyLeaseContract(models.Model): if not actual_start or today < actual_start: # 待执行:实际开始时间未到或未设置 contract.contact_state = 'to' - elif actual_start and (not actual_end or today > actual_end): + elif actual_start and (not actual_end or today < actual_end): # 执行中:已开始且未结束(或结束时间未设置) contract.contact_state = 'ing' elif today == actual_end: