feat: mlogbw关于wpr的校验修改以支持手动新增

This commit is contained in:
caoqianming 2025-11-25 10:20:11 +08:00
parent f70605129c
commit 5db4a99611
1 changed files with 1 additions and 1 deletions

View File

@ -1103,7 +1103,7 @@ class MlogbwViewSet(CustomModelViewSet):
checked = True
wpr: Wpr = ins.wpr
mlogb: Mlogb = ins.mlogb
if wpr.wm != mlogb.wm_in:
if wpr and wpr.wm != mlogb.wm_in:
raise ParseError("单个与所属批次不一致")
route: Route = mlogb.route if mlogb.route else mlog.route
Mlogbw.cal_count_notok(mlogb)