|
@ -954,10 +954,10 @@ public class RehabilitationInfoService {
|
|
List<Map<String, Object>> list = null;
|
|
List<Map<String, Object>> list = null;
|
|
String detailSql = "SELECT \n" +
|
|
String detailSql = "SELECT \n" +
|
|
" p.idcard, q.id 'planId', p.id 'patientId', p.phone, p.`name` 'patientName', p.sex, p.address, \n" +
|
|
" p.idcard, q.id 'planId', p.id 'patientId', p.phone, p.`name` 'patientName', p.sex, p.address, \n" +
|
|
" d.code 'patientInfoCode', d.ssc , d.mobile, d.age, d.diagnosis_name 'diagnosisName', d.sign_status, d.dept 'deptCode', \n" +
|
|
|
|
|
|
" d.code 'patientInfoCode', d.ssc , d.mobile, d.age, d.diagnosis_name 'diagnosisName', d.sign_status, d.dept 'deptCode', \n" +
|
|
" d.dept_name 'deptName', d.create_user 'createUserId', \n" +
|
|
" d.dept_name 'deptName', d.create_user 'createUserId', \n" +
|
|
" d.create_user_name 'createUserName',DATE_FORMAT(d.create_time, '%Y-%m-%d %H:%i:%s') 'createTime',\n" +
|
|
" d.create_user_name 'createUserName',DATE_FORMAT(d.create_time, '%Y-%m-%d %H:%i:%s') 'createTime',\n" +
|
|
" q.`status` 'planStaus',q.plan_doctor 'planDoctor', q.plan_doctor_name 'planDoctorName' ,\n" +
|
|
|
|
|
|
" q.`status` 'planStaus',q.plan_doctor 'planDoctor', q.plan_doctor_name 'planDoctorName' , q.advice_content 'adviceContent', \n" +
|
|
" DATE_FORMAT(q.create_time, '%Y-%m-%d %H:%i:%s') 'planCreateTime'," +
|
|
" DATE_FORMAT(q.create_time, '%Y-%m-%d %H:%i:%s') 'planCreateTime'," +
|
|
" d.from_source," +
|
|
" d.from_source," +
|
|
" CASE \n" +
|
|
" CASE \n" +
|
|
@ -1123,8 +1123,8 @@ public class RehabilitationInfoService {
|
|
" 0 'totayTask'\n" +
|
|
" 0 'totayTask'\n" +
|
|
"FROM\n" +
|
|
"FROM\n" +
|
|
" base_patient a\n" +
|
|
" base_patient a\n" +
|
|
" INNER JOIN wlyy_patient_rehabilitation_plan b ON a.id = b.patient\n" +
|
|
|
|
" INNER JOIN wlyy_rehabilitation_patient_info c ON c.patient = b.patient \n" +
|
|
|
|
|
|
" left JOIN wlyy_patient_rehabilitation_plan b ON a.id = b.patient\n" +
|
|
|
|
" INNER JOIN wlyy_rehabilitation_patient_info c ON c.patient = a.patient \n" +
|
|
"WHERE\n" +
|
|
"WHERE\n" +
|
|
" 1 = 1 \n" +
|
|
" 1 = 1 \n" +
|
|
" AND a.del = '1'\n";
|
|
" AND a.del = '1'\n";
|