去除ng_sign 的bug
This commit is contained in:
parent
5861ed4745
commit
5771e6d555
|
|
@ -76,8 +76,9 @@ class WpmService(object):
|
|||
if wt.step.process == test.step.process:
|
||||
wproduct.ng_sign = None
|
||||
ticket = wt.ticket
|
||||
ticket_data = wt.ticket_data
|
||||
ticket_data = ticket.ticket_data
|
||||
ticket_data['retest_result'] = 1
|
||||
ticket.ticket_data = ticket_data
|
||||
ticket.update_by = user
|
||||
ticket.save()
|
||||
# 创建处理日志
|
||||
|
|
|
|||
|
|
@ -71,7 +71,9 @@ def handleTicket(sender, instance, created, **kwargs):
|
|||
|
||||
elif decision in [WProduct.NG_ACCEPT, WProduct.NG_PERMIT]:
|
||||
wp.act_state = WProduct.WPR_ACT_STATE_OK
|
||||
if wp.test_wproduct.filter(is_submited=True).order_by('-id').last().type == TestRecord.TEST_PROCESS_RE:
|
||||
# 获取最后一次检验
|
||||
test= wp.test_wproduct.filter(is_submited=True).order_by('-id').last()
|
||||
if test.type == TestRecord.TEST_PROCESS_RE or test.is_midtesting:
|
||||
wp.act_state = WProduct.WPR_ACT_STATE_DOWAIT
|
||||
wp.ng_sign = decision
|
||||
wt.save()
|
||||
|
|
|
|||
Loading…
Reference in New Issue