修改rpj_audit_end
This commit is contained in:
parent
2a57b77425
commit
b0949549ca
|
@ -58,7 +58,7 @@ def rpj_audit_end(ticket):
|
|||
ct.save()
|
||||
# 更新相关方资料库
|
||||
for i in Rpjfile.objects.filter(rpj=rpj):
|
||||
rf = Rfile.objects.filter(file_cate=i.file_cate, rparty=i.rparty).first()
|
||||
rf = Rfile.objects.filter(file_cate=i.file_cate, rparty=i.rpj.rparty).first()
|
||||
if rf:
|
||||
pass
|
||||
else:
|
||||
|
|
|
@ -442,7 +442,7 @@ class TicketViewSet(CreateUpdateCustomMixin, CreateModelMixin, ListModelMixin, R
|
|||
if not ticket.script_run_last_result:
|
||||
ticket.script_run_last_result = True
|
||||
ticket.save()
|
||||
run_task(ticket.id)
|
||||
run_task.delay(ticket.id)
|
||||
return Response()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue