From c5a07dba94694d13f0a78e051dfa26c3522933ee Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 15 十一月 2024 18:10:02 +0800
Subject: [PATCH] 2024-11-15

---
 src/utils/utils-custom.js |   49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 48 insertions(+), 1 deletions(-)

diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js
index f49d9b3..e83a9ea 100644
--- a/src/utils/utils-custom.js
+++ b/src/utils/utils-custom.js
@@ -1733,6 +1733,7 @@
 
   if (config.interfaces) {
     config.interfaces.forEach(item => {
+      if (item.status !== 'true') return
       if (item.setting && item.setting.interType === 'outer' && item.setting.sysInterface !== 'true') {
         inters = 'true'
       }
@@ -2193,6 +2194,40 @@
     notification.warning({
       top: 92,
       message: label + `${lines}锛屼笉鍙嚭鐜拌繛缁殑鑻辨枃閫楀彿,,`,
+      duration: 5
+    })
+    return false
+  } else if (/,\./ig.test(sql)) {
+    let lines = []
+    sql.split(/\n/).forEach((s, i) => {
+      if (/,\./ig.test(s)) {
+        lines.push(i + 1)
+      }
+    })
+
+    lines = lines.join('銆�')
+    lines = lines ? '(绗�' + lines + '琛�)' : ''
+
+    notification.warning({
+      top: 92,
+      message: label + `${lines}锛屼笉鍙嚭鐜拌嫳鏂囬�楀彿,.`,
+      duration: 5
+    })
+    return false
+  } else if (/\.,/ig.test(sql)) {
+    let lines = []
+    sql.split(/\n/).forEach((s, i) => {
+      if (/\.,/ig.test(s)) {
+        lines.push(i + 1)
+      }
+    })
+
+    lines = lines.join('銆�')
+    lines = lines ? '(绗�' + lines + '琛�)' : ''
+
+    notification.warning({
+      top: 92,
+      message: label + `${lines}锛屼笉鍙嚭鐜拌嫳鏂囬�楀彿.,`,
       duration: 5
     })
     return false
@@ -4205,7 +4240,7 @@
 
               if @works_begin_branch@ = 'Y'
               begin
-                  update s_my_works_flow_role set deleted=0,modifydate=getdate(),upid=@time_id@,modifyuserid=@userid@,modifyuser=@username,modifystaff=@fullname
+                  update s_my_works_flow_role set deleted=0,modifydate=getdate(),upid=@time_id@,modifyuserid=@userid@,modifyuser=@username,modifystaff=@fullname,works_flow_detail_id=@works_flow_detail_id@
                   where works_flow_id=@ID@ and works_flow_code=@works_flow_code@ and typecharone='begin'
               end
               else
@@ -4357,6 +4392,12 @@
         reps.push(s)
       }
     })
+
+    if (new RegExp('@mk_submit_type[^0-9a-z_]', 'ig').test(_sql)) {
+      decSql.push(`@mk_submit_type nvarchar(50)`)
+      secSql.push(`@mk_submit_type=@mk_submit_type@`)
+      reps.push('mk_submit_type')
+    }
 
     decSql = [...decSql, ..._declares]
 
@@ -4670,6 +4711,12 @@
       }
     })
 
+    if (new RegExp('@mk_submit_type[^0-9a-z_]', 'ig').test(_sql)) {
+      decSql.push(`@mk_submit_type nvarchar(50)`)
+      secSql.push(`@mk_submit_type=@mk_submit_type@`)
+      reps.push('mk_submit_type')
+    }
+
     decSql = [...decSql, ..._declares]
 
     _sql = `/* ${btn.logLabel}(鍥炶皟) */

--
Gitblit v1.8.0