Registered-reservation-syst.../src/Springboot_hosptial/src/main/java/com/baiyun/service/front/impl/PatientsServiceImpl.java

46 lines
980 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.baiyun.service.front.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baiyun.dao.PatientsDao;
import com.baiyun.enity.Patients;
import com.baiyun.service.front.PatientsService;
/**
* @author huan
* @date 2021/6/9 8:50
* @descriptionTODO
**/
@Service
public class PatientsServiceImpl implements PatientsService {
@Autowired
private PatientsDao patientsDao;
@Override
public Patients plogin(String name, String password) {
Patients plogin = patientsDao.patientLogin(name, password);
return plogin;
}
@Override
public List<Patients> searchAllPatients() {
return patientsDao.searchAllPatients();
}
@Override
public void registerPatient(Patients patients) {
patientsDao.registerPatient(patients);
}
@Override
public Patients findPatientById(int id) {
Patients patient = patientsDao.findPatientById(id);
return patient;
}
}