From a09cff714f32c84894b9ece2ddfb8c7ed4db4d96 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 28 二月 2022 18:12:24 +0800 Subject: [PATCH] 2022-02-28 --- 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