Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Termination Lease Request #37

Open
dragonfly90 opened this issue Apr 2, 2015 · 1 comment
Open

Add Termination Lease Request #37

dragonfly90 opened this issue Apr 2, 2015 · 1 comment

Comments

@dragonfly90
Copy link
Contributor

I try to add termination lease request. To achieve this, I want to find the current lease id of the login student. So I find all the leases of login student. And find the lease whose status is current. But
But the return Leases List is null. Actually I put one lease under the student.

public Lease queryCurrentbyStudentId(int sid) {
// TODO Auto-generated method stub
List Leases=this.queryLeasebyStudentId(sid);
System.out.println(sid);
for (Lease element : Leases) // or sArray
{
if(element.getStatus().equals("current"))
return element;
}
return null;
}

@jessexu20
Copy link
Member

Do we need to meet?
On Thu, Apr 2, 2015 at 13:05 Liang Dong [email protected] wrote:

I try to add termination lease request. To achieve this, I want to find
the current lease id of the login student. So I find all the leases of
login student. And find the lease whose status is current. But
But the return Leases List is null. Actually I put one lease under the
student.

public Lease queryCurrentbyStudentId(int sid) {
// TODO Auto-generated method stub
List Leases=this.queryLeasebyStudentId(sid);
System.out.println(sid);
for (Lease element : Leases) // or sArray
{
if(element.getStatus().equals("current"))
return element;

}
return null;
}

Reply to this email directly or view it on GitHub
#37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants