|
@ -59,6 +59,8 @@ public class RehabilitationManageService extends BaseService {
|
|
|
private String serviceDoctorList = "/svr-specialist/serviceDoctorList";//康复管理-医生端居民详情服务医生列表
|
|
|
private String appCalendarPlanDetailList = "/svr-specialist/appCalendarPlanDetailList";//康复管理-app端、微信端计划的服务项目列表
|
|
|
private String dailyJob = "/svr-specialist/dailyJob";//每日康复服务通知
|
|
|
private String saveRehabilitationOperateRecodr ="/svr-specialist/saveRehabilitationOperateRecodr";//新增operateRecodr
|
|
|
private String updateNoteAndImageRehabilitationOperate ="/svr-specialist/updateNoteAndImageRehabilitationOperate";//康复计划完成时更新服务完成笔记和图片接口;
|
|
|
/************************************************************* end ************************************************************************/
|
|
|
|
|
|
/**
|
|
@ -206,7 +208,7 @@ public class RehabilitationManageService extends BaseService {
|
|
|
*/
|
|
|
public JSONObject serviceItem(String planDetailId) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
param.put("planDetailIds", planDetailId);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceItem, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
@ -390,15 +392,7 @@ public class RehabilitationManageService extends BaseService {
|
|
|
param.put("generalDoctorName", generalDoctorName);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceDoctorList, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
String doctorCode ="";
|
|
|
Doctor doctor = null;
|
|
|
if(result.getInt("status")==200){
|
|
|
JSONArray jsonArray = result.getJSONArray("obj");
|
|
|
for(int i=0;i<jsonArray.length();i++){
|
|
|
doctorCode = jsonArray.getJSONObject(i).get("doctorCode")+"";
|
|
|
doctor = doctorDao.findByCode(doctorCode);
|
|
|
jsonArray.getJSONObject(i).put("doctorPhoto",doctor!=null?doctor.getPhoto():"");
|
|
|
}
|
|
|
return result.getJSONArray("obj");
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
@ -429,18 +423,40 @@ public class RehabilitationManageService extends BaseService {
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
|
|
|
|
public JSONArray dailyJob(String startTime,String endTime) throws Exception{
|
|
|
public JSONObject dailyJob(String executeStartTime, String executeEndTime, String planId, Integer searchTask, Integer status) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("startTime", startTime);
|
|
|
param.put("endTime", endTime);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + dailyJob, param);
|
|
|
param.put("executeStartTime", executeStartTime);
|
|
|
param.put("executeEndTime", executeEndTime);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + appCalendarPlanDetailList, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
|
return result.getJSONArray("obj");
|
|
|
return result.getJSONObject("obj");
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
|
|
|
|
|
|
|
public JSONObject saveRehabilitationOperateRecodr(String dataJson) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("dataJson", dataJson);
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + saveRehabilitationOperateRecodr, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
public JSONObject updateNodeAndRelationRecordImg(String planDetailId,String node,String image) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
param.put("node", node);
|
|
|
param.put("image", image);
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + updateNoteAndImageRehabilitationOperate, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 每天8点,16点的job
|
|
|
* @param startTime
|