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