From 0127e2a1497611b1ee3dd9fde95b1b02e997e8b0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 7 Jan 2026 14:19:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20get=5Fshift=E9=9C=80=E8=A6=81=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mtm/models.py b/apps/mtm/models.py index b3bae42b..b0788df6 100644 --- a/apps/mtm/models.py +++ b/apps/mtm/models.py @@ -229,7 +229,7 @@ class Mgroup(CommonBModel): # 如果当前时间在结束时间之前,属于前一天 else: return (w_s_time - timedelta(days=1)).date(), shift - # return w_s_time.date(), None + raise ParseError(f"工段{self.name}的班次规则未覆盖时间点{w_s_time.strftime('%H:%M:%S')}") class TeamMember(BaseModel):