From 2613b672d87eab2de7ffd410f4e54cc63e814646 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: Wed, 29 Oct 2025 16:29:58 +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/inherit_yuthon_property.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 8602ee33c..ae628d0aa 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -1063,7 +1063,7 @@ class PropertyRentList(models.Model): 'original_amount': rec.original_amount, 'due_date': due_date, 'acc_type': rec.acc_type, - 'charging_range': f"{due_date.strftime('%Y-%m-%d')} 到 {due_date_end.strftime('%Y-%m-%d')}", + 'charging_range': f"{due_date} 到 {due_date_end}", 'due_date_end': due_date_end, 'create_time': datetime.now(), 'management_type_id': management_type.id, @@ -1220,7 +1220,7 @@ class PropertyManagementList(models.Model): 'original_amount': rec.original_amount, 'due_date': rec.due_date, 'due_date_end': due_date_end, - 'charging_range': f"{due_date.strftime('%Y-%m-%d')} 到 {due_date_end.strftime('%Y-%m-%d')}", + 'charging_range': f"{due_date} 到 {due_date_end}", 'create_time': datetime.now(), 'management_type_id': management_type_id.id, })