PatientService.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.lemon.lifecenter.service;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import com.lemon.lifecenter.dto.PatientDTO;
  6. import com.lemon.lifecenter.mapper.PatientMapper;
  7. @Service
  8. public class PatientService {
  9. @Autowired
  10. private PatientMapper mapper;
  11. public int selectPatientCount(PatientDTO dto) {
  12. return mapper.selectPatientCount(dto);
  13. }
  14. public List<PatientDTO> selectPatietList(PatientDTO dto) {
  15. return mapper.selectPatientList(dto);
  16. }
  17. public void insertPatientCare( PatientDTO dto ) {
  18. mapper.insertPatientCare(dto);
  19. }
  20. public void insertPatientDisease( PatientDTO dto ) {
  21. mapper.insertPatientDisease(dto);
  22. }
  23. public void insertPatientSymptom( PatientDTO dto ) {
  24. mapper.insertPatientSymptom(dto);
  25. }
  26. public PatientDTO selectPatientOne(PatientDTO dto) {
  27. return mapper.selectPatientOne(dto);
  28. }
  29. public void updatePatientCare( PatientDTO dto ) {
  30. mapper.updatePatientCare(dto);
  31. }
  32. public void updatePatientDisease( PatientDTO dto ) {
  33. mapper.updatePatientDisease(dto);
  34. }
  35. public void updatePatientSymptom( PatientDTO dto ) {
  36. mapper.updatePatientSymptom(dto);
  37. }
  38. }