int getCount(Long user, Long role) { String sql = "select count(*) num from um_roleuser where roleId = ? and userId = ?"; Object result = SQLExcutor.query(DMConstants.LOCAL_CONN_POOL, sql, role, user).get(0).get("num"); return EasyUtils.obj2Int(result); }