pull/3/head
rekoe 2016-05-04 14:46:00 +08:00
parent 674a20fb74
commit 06c45a85ab
1 changed files with 3 additions and 2 deletions

View File

@ -48,9 +48,10 @@ public class SvnUserService extends BaseService<Usr> {
return Lang.isEmpty(dao().fetch(getEntityClass(), Cnd.where("usr", "=", name)));
}
public Usr get(String usr){
public Usr get(String usr) {
return dao().fetch(getEntityClass(), Cnd.where("usr", "=", usr));
}
/**
*
*
@ -71,7 +72,7 @@ public class SvnUserService extends BaseService<Usr> {
* @return (*)
*/
public List<Usr> listUnSelected(String pj, String gr) {
Sql sql = Sqls.create("select usr,name,psw,role from usr a where a.usr <> '*' " + " and not exists (select usr from pj_gr_usr b where a.usr = b.usr and b.pj=@pj and b.gr=@gr) order by a.usr");
Sql sql = Sqls.create("select usr,name,psw,email,role from usr a where a.usr <> '*' " + " and not exists (select usr from pj_gr_usr b where a.usr = b.usr and b.pj=@pj and b.gr=@gr) order by a.usr");
sql.setParam("pj", pj).setParam("gr", gr);
final List<Usr> list = new ArrayList<Usr>();
sql.setCallback(new SqlCallback() {