Corrección de nombre de variable.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-24 17:50:56 +01:00
parent aa50eccbac
commit 31b794e4c9

View File

@@ -481,19 +481,19 @@ public class CommonFacadeBean implements CommonFacadeRemote, CommonFacadeLocal {
return qsTO; return qsTO;
} }
public VisitTO getPOJOforVisitJPA(VisitJPA qs, int nestedProps) { public VisitTO getPOJOforVisitJPA(VisitJPA vi, int nestedProps) {
VisitTO qsTO = null; VisitTO qsTO = null;
if (qs != null) { if (vi != null) {
FamilyDoctorJPA fd = null; FamilyDoctorJPA fd = null;
PatientJPA pat = null; PatientJPA pat = null;
if (nestedProps > 0) { if (nestedProps > 0) {
fd = qs.getFamilyDoctor(); fd = vi.getFamilyDoctor();
pat = qs.getPatient(); pat = vi.getPatient();
} }
nestedProps--; nestedProps--;
qsTO = new VisitTO(qs.getId(), qs.getDate(), qs.getTime(), qs.getObservations(), qs.getResult(), this.getPOJOforFamilyDoctorJPA(fd, nestedProps), qsTO = new VisitTO(vi.getId(), vi.getDate(), vi.getTime(), vi.getObservations(), vi.getResult(), this.getPOJOforFamilyDoctorJPA(fd, nestedProps),
this.getPOJOforPatientJPA(pat, nestedProps)); this.getPOJOforPatientJPA(pat, nestedProps));
} }