!3534 添加功能

Merge pull request !3534 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-06-26 11:16:29 +00:00
committed by Gitee
@@ -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: