From d82fec9e2a4238ff1833e67c01bc9b34e525d904 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 二月 2022 16:37:12 +0800
Subject: [PATCH] 2022-02-25

---
 src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx
index 1389b88..f89a973 100644
--- a/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx
@@ -44,7 +44,13 @@
 
     fields.push('jskey')
 
-    let _sql = `Declare @${btn.sheet} table (${columns.map(item => item.Column + ' ' + item.type).join(',')},jskey nvarchar(50) )
+    let _dec = columns.map(item => item.Column + ' ' + item.type).join(',')
+
+    if (_dec) {
+      _dec += ','
+    }
+
+    let _sql = `Declare @${btn.sheet} table (${_dec}jskey nvarchar(50) )
       Declare @UserName nvarchar(50),@FullName nvarchar(50),@RoleID nvarchar(512),@mk_departmentcode nvarchar(50),@mk_organization nvarchar(50),@login_city nvarchar(50),@ErrorCode nvarchar(50), @retmsg nvarchar(4000),@tbid Nvarchar(512)
       Select @ErrorCode='', @retmsg=''
     `
@@ -315,6 +321,9 @@
                 <Select.Option key="default" value={'default'}>
                   榛樿sql
                 </Select.Option>
+                <Select.Option key="debugger" value={`z_debug: select @ErrorCode='E',@retmsg='娴嬭瘯鏂偣' goto aaa`}>
+                  娴嬭瘯鏂偣
+                </Select.Option>
                 {systemScripts.map((option, i) =>
                   <Select.Option key={i} value={option.value}>
                     {option.name}

--
Gitblit v1.8.0