fix: schedue_mtasks 修改utask状态
This commit is contained in:
parent
5eb4eaaaec
commit
ef971c6501
|
@ -58,7 +58,7 @@ class PmService:
|
|||
"""
|
||||
if utask.state != Utask.UTASK_CREATED:
|
||||
raise ParseError('任务状态异常')
|
||||
utask.sate = Utask.UTASK_DECOMPOSE
|
||||
utask.state = Utask.UTASK_DECOMPOSE
|
||||
utask.save()
|
||||
number, product, count, start_date, end_date = utask.number, utask.material, utask.count, utask.start_date, utask.end_date
|
||||
# 计算相差天数
|
||||
|
|
Loading…
Reference in New Issue