From 614915fa4d0bf470515ac30821fb651cf5238fc9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 21 十二月 2024 21:48:21 +0800 Subject: [PATCH] 2024-12-21 --- src/templates/zshare/verifycard/index.jsx | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/templates/zshare/verifycard/index.jsx b/src/templates/zshare/verifycard/index.jsx index 7d0eff2..74f14fc 100644 --- a/src/templates/zshare/verifycard/index.jsx +++ b/src/templates/zshare/verifycard/index.jsx @@ -2075,6 +2075,10 @@ } }) } else { + let sql = this.getSysExecSql(verify, false) + + Api.sDebug(sql, true) + this.setState({ verify }) } } @@ -2144,6 +2148,10 @@ } }) } else { + let sql = this.getSysExecSql(verify, false) + + Api.sDebug(sql, true) + MKEmitter.emit('editLineId', values.uuid) this.setState({ verify }) @@ -2209,6 +2217,29 @@ this.setState({ verify }) } } else { + let sql = this.getSysBackSql(verify.cbScripts, card.cbTable) + + if (sql) { + let defSql = this.getSysExecSql(verify, true) + + sql = `${defSql} + ${sql} + ` + + if (card.output) { + sql += ` + aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg,${card.output} as mk_b_id` + } else { + sql += ` + aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg` + } + + sql = sql.replace(/@typename@/ig, `'typename'`) + sql = sql.replace(/@\$|\$@/ig, '').replace(/@datam@/ig, `''`) + + Api.sDebug(sql, true) + } + MKEmitter.emit('editLineId', values.uuid) this.setState({ verify }) -- Gitblit v1.8.0