From eb2deb02c2222d0f3a93d3490703c3e35f12589c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 11 Oct 2025 10:22:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20work=5Fstart=5Ftime=20=E5=8F=AF=E4=B8=8D?= =?UTF-8?q?=E5=A1=AB2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 05895df0..7bca34cb 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -152,7 +152,7 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]): """ 生产日志提交后需要执行的操作 """ - if mlog.work_end_time and mlog.work_start_time > timezone.now(): + if mlog.work_start_time and mlog.work_start_time > timezone.now(): raise ParseError('操作开始时间不能晚于当前时间') if mlog.work_start_time and mlog.work_end_time and mlog.work_end_time < mlog.work_start_time: raise ParseError('操作结束时间不能早于操作开始时间')