|
@ -905,7 +905,14 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
" LEFT(pr.create_time,19) AS createTime, " +
|
|
|
" pr.doctor, " +
|
|
|
" pr.dispensary_type AS dispensaryType ," +
|
|
|
" e.expressage_name AS expressageName " +
|
|
|
" e.expressage_code AS expressageCode, " +
|
|
|
" e.expressage_name AS expressageName, " +
|
|
|
" e.expressage_hospital_address AS expressageHospitalAddress, " +
|
|
|
" e.expressage_hospital_name AS expressageHospitalName, " +
|
|
|
" e.expressage_hospital_code AS expressageHospitalCode, " +
|
|
|
" e.patient_hospital_address AS patientHospitalAddress, " +
|
|
|
" e.patient_hospital_name AS patientHospitalName, " +
|
|
|
" e.patient_hospital_code AS patientHospitalCode " +
|
|
|
" FROM " +
|
|
|
" wlyy_prescription pr " +
|
|
|
" LEFT JOIN wlyy_patient p ON pr.patient = p.`code` " +
|
|
@ -1583,9 +1590,10 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
" d.`code`," +
|
|
|
" d.`name`," +
|
|
|
" d.job," +
|
|
|
" d.photo " +
|
|
|
" d.photo," +
|
|
|
" j.name AS jobName " +
|
|
|
" FROM" +
|
|
|
" wlyy_doctor d" +
|
|
|
" wlyy_doctor d LEFT JOIN dm_job j ON d.job = j.`code`" +
|
|
|
" WHERE" +
|
|
|
" d.hospital = ?" +
|
|
|
" AND d.`level` = 3 " ;
|
|
@ -1598,7 +1606,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
String totalSql = "SELECT " +
|
|
|
" count(1) AS total" +
|
|
|
" FROM" +
|
|
|
" wlyy_doctor d" +
|
|
|
" wlyy_doctor d " +
|
|
|
" WHERE" +
|
|
|
" d.hospital = ?" +
|
|
|
" AND d.`level` = 3 ";
|