|
@ -45,6 +45,8 @@ public class RehabilitationManageService extends BaseService {
|
|
|
private String updateStatusRehabilitationOperate = "/svr-specialist/updateStatusRehabilitationOperate";//康复管理-服务项目-完成项目内容信息
|
|
|
private String patientRehabilitationDetail = "/svr-specialist/patientRehabilitationDetail";//康复管理-居民详情页
|
|
|
private String recentPlanDetailRecord = "/svr-specialist/recentPlanDetailRecord";//居民康复计划详情页-近期康复相关记录
|
|
|
private String createServiceQrCode ="/svr-specialist/createServiceQrCode";//根据康复计划明细id和对话sessionId生成服务码
|
|
|
private String checkAfterQrCode="/svr-specialist/checkAfterQrCode";//居民扫码后验证是否是关联的居民扫码
|
|
|
/************************************************************* end ************************************************************************/
|
|
|
|
|
|
/**
|
|
@ -198,7 +200,6 @@ public class RehabilitationManageService extends BaseService {
|
|
|
* @param messageId
|
|
|
* @param patientCode
|
|
|
* @param doctorCode
|
|
|
* @param doctorType
|
|
|
* @param content
|
|
|
* @param planDetailId
|
|
|
* @return
|
|
@ -291,4 +292,27 @@ public class RehabilitationManageService extends BaseService {
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
|
|
|
|
public String createServiceQrCode(String planDetailId,String sessionId) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
param.put("sessionId", sessionId);
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + createServiceQrCode, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
|
return String.valueOf(result.get("obj"));
|
|
|
}
|
|
|
throw new Exception("获取二维码失败!");
|
|
|
}
|
|
|
|
|
|
public JSONObject checkAfterQrCode(String planDetailId,String patientCode) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
param.put("patientCode", patientCode);
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + checkAfterQrCode, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
return result;
|
|
|
}
|
|
|
}
|