UniHousing / UnivHousing

A demo for mvc
0 stars 1 forks source link

Add Termination Lease Request #37

Open dragonfly90 opened 9 years ago

dragonfly90 commented 9 years ago

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 commented 9 years ago

Do we need to meet? On Thu, Apr 2, 2015 at 13:05 Liang Dong notifications@github.com 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 https://github.com/UniHousing/UnivHousing/issues/37.