46 lines
980 B
Java
46 lines
980 B
Java
|
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
|
|||
|
* @description:TODO
|
|||
|
**/
|
|||
|
@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;
|
|||
|
}
|
|||
|
|
|||
|
}
|