|
@ -2328,7 +2328,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
public List<JSONObject> findClinicRoomList(String dept,String date) {
|
|
|
|
|
|
public List<JSONObject> findClinicRoomList(String dept,String date,String consult_status) {
|
|
if(StringUtils.isBlank(date)){
|
|
if(StringUtils.isBlank(date)){
|
|
date = DateUtil.getStringDateShort();
|
|
date = DateUtil.getStringDateShort();
|
|
}
|
|
}
|
|
@ -2358,7 +2358,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
jsonObject.put("dept_name","");
|
|
jsonObject.put("dept_name","");
|
|
jsonObject.put("dept_code","");
|
|
jsonObject.put("dept_code","");
|
|
}
|
|
}
|
|
jsonObject.put("visit_status",0);
|
|
|
|
|
|
jsonObject.put("visit_status",1);
|
|
jsonObject.put("waiting_count",0);
|
|
jsonObject.put("waiting_count",0);
|
|
jsonObject.put("patient_name","");
|
|
jsonObject.put("patient_name","");
|
|
jsonObject.put("time_cost",0);
|
|
jsonObject.put("time_cost",0);
|
|
@ -2390,7 +2390,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
}else{
|
|
}else{
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
jsonObject.put("id",doctor);
|
|
jsonObject.put("id",doctor);
|
|
jsonObject.put("visit_status",0);
|
|
|
|
|
|
jsonObject.put("visit_status",1);
|
|
jsonObject.put("waiting_count",waitCount);
|
|
jsonObject.put("waiting_count",waitCount);
|
|
if(StringUtils.isNoneBlank((String)waitObj.get("doctorName"))){
|
|
if(StringUtils.isNoneBlank((String)waitObj.get("doctorName"))){
|
|
jsonObject.put("doctor_name",(String)waitObj.get("doctorName"));
|
|
jsonObject.put("doctor_name",(String)waitObj.get("doctorName"));
|
|
@ -2442,7 +2442,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
String doctor = (String) onlineObj.get("doctor");
|
|
String doctor = (String) onlineObj.get("doctor");
|
|
if(StringUtils.isNoneBlank(doctor)){
|
|
if(StringUtils.isNoneBlank(doctor)){
|
|
if(result.keySet().contains(doctor)){
|
|
if(result.keySet().contains(doctor)){
|
|
result.get(doctor).put("visit_status",1);
|
|
|
|
|
|
result.get(doctor).put("visit_status",2);
|
|
result.get(doctor).put("patient_name",(String) onlineObj.get("patient_name"));
|
|
result.get(doctor).put("patient_name",(String) onlineObj.get("patient_name"));
|
|
result.get(doctor).put("time_cost",(Long) onlineObj.get("time_cost"));
|
|
result.get(doctor).put("time_cost",(Long) onlineObj.get("time_cost"));
|
|
}else{
|
|
}else{
|
|
@ -2454,7 +2454,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
}else{
|
|
}else{
|
|
jsonObject.put("doctor_name","");
|
|
jsonObject.put("doctor_name","");
|
|
}
|
|
}
|
|
jsonObject.put("visit_status",1);
|
|
|
|
|
|
jsonObject.put("visit_status",2);
|
|
jsonObject.put("waiting_count",0);
|
|
jsonObject.put("waiting_count",0);
|
|
jsonObject.put("patient_name",(String) onlineObj.get("patient_name"));
|
|
jsonObject.put("patient_name",(String) onlineObj.get("patient_name"));
|
|
jsonObject.put("time_cost",(Long) onlineObj.get("time_cost"));
|
|
jsonObject.put("time_cost",(Long) onlineObj.get("time_cost"));
|
|
@ -2467,7 +2467,20 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
List<JSONObject> finalresult = new ArrayList<>();
|
|
List<JSONObject> finalresult = new ArrayList<>();
|
|
|
|
|
|
for (JSONObject jsonObject : result.values()) {
|
|
for (JSONObject jsonObject : result.values()) {
|
|
finalresult.add(jsonObject);
|
|
|
|
|
|
//过滤空闲或者接诊中的居民
|
|
|
|
if(StringUtils.isBlank(consult_status)){
|
|
|
|
finalresult.add(jsonObject);
|
|
|
|
}else{
|
|
|
|
if("0".equals(consult_status)){
|
|
|
|
//只显示在线
|
|
|
|
}else if("1".equals(consult_status) && "1".equals(jsonObject.getString("visit_status"))){
|
|
|
|
//空闲
|
|
|
|
finalresult.add(jsonObject);
|
|
|
|
}else if("2".equals(consult_status) && "2".equals(jsonObject.getString("visit_status"))){
|
|
|
|
//接诊
|
|
|
|
finalresult.add(jsonObject);
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
Integer room_no = 1;
|
|
Integer room_no = 1;
|
|
for(JSONObject jsonObject :finalresult){
|
|
for(JSONObject jsonObject :finalresult){
|