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: