From 54ed8543c068580573118e951c7936d5aae22838 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 13 九月 2023 22:10:52 +0800
Subject: [PATCH] 2023-09-13

---
 src/menu/datasource/verifycard/customscript/index.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/menu/datasource/verifycard/customscript/index.jsx b/src/menu/datasource/verifycard/customscript/index.jsx
index 63146d0..5126286 100644
--- a/src/menu/datasource/verifycard/customscript/index.jsx
+++ b/src/menu/datasource/verifycard/customscript/index.jsx
@@ -19,7 +19,8 @@
     searches: PropTypes.array,      // 鎼滅储鏉′欢
     systemScripts: PropTypes.array, // 绯荤粺鑴氭湰
     scriptSubmit: PropTypes.func,   // 鑴氭湰楠岃瘉鍚庢彁浜�
-    scriptsChange: PropTypes.func   // 鑴氭湰楠岃瘉
+    scriptsChange: PropTypes.func,
+    addProcess: PropTypes.func
   }
 
   state = {
@@ -220,6 +221,9 @@
 
     if (value === 'defaultsql') {
       value = this.props.defaultsql
+    } else if (value === 'flowsql') {
+      value = `/* select a.*,w.remark as remark_w,w.statusname as statusname_w,w.status as status_w,w.works_flow_param from (鏁版嵁婧�) a inner join (select * from  s_my_works_flow  where works_flow_code=@works_flow_code@ and status=0 and deleted=0) w on a.id=w.works_flow_id */`
+      this.props.addProcess()
     }
 
     _sql = _sql.replace(/\s{6}$/, '')
@@ -341,6 +345,7 @@
                 onSelect={this.selectScript}
               >
                 <Select.Option style={{whiteSpace: 'normal'}} key="default" value="defaultsql">榛樿sql</Select.Option>
+                {window.GLOB.process ? <Select.Option style={{whiteSpace: 'normal'}} key="default" value="flowsql">榛樿sql锛堝伐浣滄祦锛�</Select.Option> : null}
                 <Select.Option key="debugger" value={`z_debug: select @ErrorCode='E',@retmsg='娴嬭瘯鏂偣' goto aaa`}>
                   娴嬭瘯鏂偣
                 </Select.Option>

--
Gitblit v1.8.0