请问这是什么错误
Sql sql = Sqls.createf("select UserId,EnCode from Base_User where Encode=@email and Password=@password ", new Object[]{email,password});
sql.setParam("email", email);
sql.setParam("password", password);
sql.setCallback(new SqlCallback() {
@Override
public UserBean invoke(Connection conn, ResultSet rs, Sql sq) throws SQLException {
// TODO Auto-generated method stub
if(rs.next()){
UserBean ub=new UserBean();
ub.setUserid(rs.getString(0));
ub.setEncode(rs.getString(1));
return ub;
}else{
return null;
}
}
});
dao.execute(sql);
UserBean user = sql.getObject(UserBean.class);