fix: mtasks_submit 时未填写日志校验
This commit is contained in:
parent
d8be8665eb
commit
0843cf6ce3
|
@ -223,6 +223,8 @@ class PmService:
|
|||
from apps.wpm.services import mlog_confirm, update_mtask
|
||||
for mtask in mtasks:
|
||||
mlogs = Mlog.objects.filter(mtask=mtask)
|
||||
if mlogs.count() == 0:
|
||||
raise ParseError(f'{mtask.mgroup.name}_未填写日志')
|
||||
for mlog in mlogs:
|
||||
mlog_confirm(mlog)
|
||||
update_mtask(mtask)
|
||||
|
|
Loading…
Reference in New Issue