|
@ -476,7 +476,7 @@ public class RehabilitationManageService {
|
|
|
for (int i=1;i<planIdlist.length;i++){
|
|
|
planCondition .append(",'"+planIdlist[i]+"'");
|
|
|
}
|
|
|
String sql = " select d.*,DATE_FORMAT(d.execute_time,'%Y/%m/%d %H:%i') as executeTime ,i.code,i.name,1 as flag from wlyy_specialist.wlyy_rehabilitation_plan_detail d " +
|
|
|
String sql = " select d.*,DATE_FORMAT(d.execute_time,'%Y/%m/%d %H:%i') as executeTime ,i.code,IF(d.followup_detail_type=1,'康复随访(社区)',i.name) name,1 as flag from wlyy_specialist.wlyy_rehabilitation_plan_detail d " +
|
|
|
" LEFT JOIN wlyy_rehabilitation_service_item i on i.code = d.hospital_service_item_id " +
|
|
|
" where d.plan_id in ("+planCondition+" )AND d.execute_time IS NOT NULL and d.execute_time <>'' " ;
|
|
|
if(searchTask!=null){
|
|
@ -484,7 +484,7 @@ public class RehabilitationManageService {
|
|
|
if(StringUtils.isNotBlank(doctorCode)){
|
|
|
sql+=" and d.doctor='"+doctorCode+"' ";
|
|
|
}
|
|
|
sql+=" and i.code="+searchTask+" " ;
|
|
|
//sql+=" and i.code="+searchTask+" " ;
|
|
|
}else {
|
|
|
sql+=" and i.code="+searchTask+" " ;
|
|
|
}/*else if(searchTask==5){
|
|
@ -521,7 +521,7 @@ public class RehabilitationManageService {
|
|
|
|
|
|
list = jdbcTemplate.queryForList(cfxfSql);
|
|
|
}
|
|
|
if (6 == searchTask || searchTask == 8){ //随访
|
|
|
if (6 == searchTask){ //随访
|
|
|
String sfSql = "SELECT DISTINCT DATE_FORMAT(wf.followup_date,'%Y/%m/%d %H:%i') followupDate,DATE_FORMAT(wf.followup_plan_date,'%Y/%m/%d %H:%i') executeTime,wf.doctor_code doctorCode,wf.followup_class followupClass, " +
|
|
|
" wf.patient_code AS patientCode,wf.patient_name AS patientName,wf.doctor_name doctorName,wf.`status` AS `status`,wf.org_name orgName," +
|
|
|
" wf.org_code orgCode,sd.value AS `value`, wf.followup_type followupType,wf.id AS id, 6 AS code,2 as flag FROM wlyy.wlyy_followup wf " +
|