|
@ -93,14 +93,15 @@ public class SpecialistService extends BaseService {
|
|
|
List<Map<String,Object>> list = findHealthAssistant(doctor);
|
|
|
if(list!=null&&list.size()>0){
|
|
|
for(Map<String,Object> map:list){
|
|
|
map.put("count",getAssistantPatientCount(map.get("code").toString()));
|
|
|
map.put("count",getAssistantPatientCount(doctor,map.get("code").toString()));
|
|
|
}
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
public Long getAssistantPatientCount(String doctor)throws Exception{
|
|
|
public Long getAssistantPatientCount(String doctor,String assistant)throws Exception{
|
|
|
Map<String,Object> param = new HashedMap();
|
|
|
param.put("doctor",doctor);
|
|
|
param.put("assistant",assistant);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl+"svr-specialist/getAssistantPatientCount",param);
|
|
|
JSONObject rs = new JSONObject(response.getContent());
|
|
|
if("succes".equals(rs.getString("message"))){
|
|
@ -200,8 +201,9 @@ public class SpecialistService extends BaseService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
public JSONArray findPatientRelatioByAssistant(String assistant,Integer page,Integer size)throws Exception{
|
|
|
public JSONArray findPatientRelatioByAssistant(String doctor,String assistant,Integer page,Integer size)throws Exception{
|
|
|
Map<String,Object> param = new HashedMap();
|
|
|
param.put("doctor",doctor);
|
|
|
param.put("assistant",assistant);
|
|
|
param.put("page",page);
|
|
|
param.put("size",size);
|
|
@ -295,8 +297,7 @@ public class SpecialistService extends BaseService {
|
|
|
" wlyy_doctor dd " +
|
|
|
" WHERE " +
|
|
|
" dd. CODE = '"+doctor+"' " +
|
|
|
" ) " +
|
|
|
" AND d.`level` = 4 ";
|
|
|
" ) " ;
|
|
|
if(StringUtils.isNotBlank(name)){
|
|
|
sql = sql +" AND d.`name` LIKE '%"+name+"%'";
|
|
|
}
|