@Override public string Getemployeebysup (String EmployeeID) { &nbs P
String str= "";
str = Getemployeebysupselas (employeeid, str);
return str.substring (0, Str.lastindexof (","));  } @Override public string Getemployeebysupselas (string EmployeeID, String str) { str+= "' +employeeid+" ', ";
 SYSTEM.OUT.PRINTLN (str); string sql= "Select U.employeeid from Tbl_system_user u where supervisorid= '" +
Employeeid+ "'";
List<String> list= jdbctemplate.queryforlist (sql, String.class); if (list!=null&&list.size () >0) { for (int i=0;i<list.size (); i++) {&NBSP;&NBSp
str = Getemployeebysupselas (List.get (i), str); } }
return str; }
This is based on my personal needs to do, of course, the structure of the code is so, can be modified according to their own needs.
If you have questions, welcome to visit the Exchange group: 398918539