fix: 工单三方审批不支持修改资产 (#8582)

Co-authored-by: feng626 <1304903146@qq.com>
pull/8584/head
fit2bot 2 years ago committed by GitHub
parent 5155b3c184
commit 11e538d417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,9 +64,14 @@ class BaseHandler:
diff_context = {}
if state != TicketState.approved:
return diff_context
if self.ticket.type not in [TicketType.apply_asset, TicketType.apply_application]:
return diff_context
# 企业微信钉钉审批不做diff
if not hasattr(self.ticket, 'old_rel_snapshot'):
return diff_context
old_rel_snapshot = self.ticket.old_rel_snapshot
current_rel_snapshot = self.ticket.get_local_snapshot()
diff = set(current_rel_snapshot.items()) - set(old_rel_snapshot.items())

Loading…
Cancel
Save