Skip to content

Commit cf54dff

Browse files
committed
List<Appointment> findAll() added
1 parent b29e2fa commit cf54dff

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

bioMedical/src/main/java/com/spring/bioMedical/service/AppointmentServiceImplementation.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package com.spring.bioMedical.service;
22

3+
import java.util.List;
4+
35
import org.springframework.beans.factory.annotation.Autowired;
46
import org.springframework.stereotype.Service;
57

8+
import com.spring.bioMedical.entity.Admin;
69
import com.spring.bioMedical.entity.Appointment;
710
import com.spring.bioMedical.repository.AppointmentRepository;
811

@@ -24,6 +27,11 @@ public void save(Appointment app)
2427

2528
appointmentRepository.save(app);
2629
}
30+
31+
32+
public List<Appointment> findAll() {
33+
return appointmentRepository.findAll();
34+
}
2735

2836

2937

bioMedical/src/main/resources/templates/admin/appointment.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
<td th:text="${temp.des}" />
182182
<td th:text="${temp.time}" />
183183
<td th:text="${temp.description}" />
184+
<td th:text="${temp.regtime}" />
184185

185186
</tr>
186187

0 commit comments

Comments
 (0)