king
2020-12-21 251d38fbae6c39af380cb5794424a5d24e3ba2e4
src/templates/sharecomponent/settingcomponent/settingform/utils.jsx
@@ -38,7 +38,7 @@
    let _regoptions = regoptions.map(item => {
      return {
        reg: new RegExp('@' + item.key + '@', 'ig'),
        value: `'${item.value}'`
        value: `'0'`
      }
    })
@@ -78,15 +78,19 @@
    }
    if (_customScript) {
      sql = `${_customScript}
      sql = `/* sql 验证 */
        ${_customScript}
        ${_dataresource}
        aaa:
        if @ErrorCode!=''
          insert into tmp_err_retmsg (ID, ErrorCode, retmsg, CreateUserID) select @time_id@,@ErrorCode, @retmsg,@UserID@
      `
    } else {
      sql = _dataresource
      sql = `/* sql 验证 */
        ${_dataresource}`
    }
    sql = sql.replace(/\n\s{8}/ig, '\n')
    console.info(sql)
    return sql
  }