feat: get_shift需要报错
This commit is contained in:
parent
f5b1b13a63
commit
0127e2a149
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue