From 70f71874e7a10a7e2c513f4cdf2f5caf8587ccf4 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 20 Oct 2021 14:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=B5=81=E8=BD=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wf/services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hb_server/apps/wf/services.py b/hb_server/apps/wf/services.py index e9a0cb4..7ff0fbe 100644 --- a/hb_server/apps/wf/services.py +++ b/hb_server/apps/wf/services.py @@ -112,6 +112,9 @@ class WfService(object): destination_state = transition.destination_state ticket_all_value = cls.get_ticket_all_field_value(ticket) ticket_all_value.update(**ticket_data) + for key, value in ticket_all_value.items(): + if isinstance(ticket_all_value[key], str): + ticket_all_value[key] = "'''" + ticket_all_value[key] + "'''" if transition.condition_expression: for i in transition.condition_expression: expression = i['expression'].format(**ticket_all_value)