Browse Source

代码修改

pt
hyy-alt 4 years ago
parent
commit
616d8d7211
  1. 4
      tcm/src/main/java/com/ccsens/tcm/service/PatientService.java
  2. 2
      tcm/src/main/resources/mapper_dao/PatientDao.xml

4
tcm/src/main/java/com/ccsens/tcm/service/PatientService.java

@ -268,9 +268,6 @@ public class PatientService implements IPatientService {
@Override
public PageInfo<PatientVo.SelPatient> selPatientInformationList(PatientDto.SelPatientList param, Long userId) {
PageHelper.startPage(param.getPageNum(),param.getPageSize());
if (param.getQueryAuthority() == Constant.QUERY_AUTHORITY_HOSPITAL) {
List<DoctorVo.Detail> doctors = doctorDao.queryDetail(userId);
for (DoctorVo.Detail doctor: doctors) {
@ -284,6 +281,7 @@ public class PatientService implements IPatientService {
}
}
}
PageHelper.startPage(param.getPageNum(),param.getPageSize());
List<PatientVo.SelPatient> selPatientList= patientDao.selPatientInformationList(param, userId);
return new PageInfo<>(selPatientList);
}

2
tcm/src/main/resources/mapper_dao/PatientDao.xml

@ -161,7 +161,7 @@
tpi.user_id as userId,
d.`name` as doctorName
FROM
t_patient_information tpi left join t_inpatient ti on ti.rec_status=0 and ti.id=tpi.inpatient_id
t_patient_information tpi left join t_inpatient ti on ti.rec_status in(0 , 1) and ti.id=tpi.inpatient_id
LEFT JOIN t_doctor d on d.user_id = tpi.user_id and d.rec_status = 0
WHERE
tpi.rec_status =0

Loading…
Cancel
Save