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):