feat: get_shift需要报错

This commit is contained in:
caoqianming 2026-01-07 14:19:43 +08:00
parent f5b1b13a63
commit 0127e2a149
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class Mgroup(CommonBModel):
# 如果当前时间在结束时间之前,属于前一天 # 如果当前时间在结束时间之前,属于前一天
else: else:
return (w_s_time - timedelta(days=1)).date(), shift 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): class TeamMember(BaseModel):