SQL("cloud","select org_type from sys_depart where org_code = (SELECT org_code FROM sys_user WHERE username ="+$fine_username+")",1,1)
SQL("cloud","select org_type from sys_depart where org_code = (SELECT org_code FROM sys_user WHERE username ='"+$fine_username+"')",1,1)
先$fine_username前后加'好
2、确保在决策系统擦能生效
3、cloud数据库连接,区分大小写的
SQL("cloud","select org_type from sys_depart where org_code in (SELECT org_code FROM sys_user WHERE username ='"+$fine_username+"')",1,1)
----------
不用=号 用IN ;fine_username 是字符串加引号