and depart_no = ( ${if(loginuser)='admin','C00001',"select b.c_id from ( select a.* from tm_tree a where a.c_type = '自主经营体' and '"+departs_amb+"' like a.c_id order by a.dn_id ) b where rownum < 2"} 请问一下这个depart_no 需要判断,当登陆人(loginuser)是admin时,这个depart_no 就是C00001,如果不是就执行 select b.c_id from ( select a.* from tm_tree a where a.c_type = '自主经营体' and 'C00001' like a.c_id order by a.dn_id )b where rownum < 2 这一条sql语句。但是我在帆软了 试了好几下都不行.请大神帮助一下 |