|
@ -1,5 +1,6 @@
|
|
package com.yihu.wlyy.service.specialist;
|
|
package com.yihu.wlyy.service.specialist;
|
|
|
|
|
|
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
@ -62,27 +63,34 @@ public class SpecialistService extends BaseService {
|
|
return "1";
|
|
return "1";
|
|
}
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> findHealthAssistant(){
|
|
|
|
|
|
public List<Map<String,Object>> findHealthAssistant(String doctor){
|
|
|
|
|
|
String sql="SELECT " +
|
|
String sql="SELECT " +
|
|
" d.`code`, " +
|
|
" d.`code`, " +
|
|
" d.`name`, " +
|
|
" d.`name`, " +
|
|
" d.photo," +
|
|
|
|
" d.dept_name AS deptName," +
|
|
|
|
" d.dept," +
|
|
|
|
" d.job," +
|
|
|
|
|
|
" d.photo, " +
|
|
|
|
" d.dept_name AS deptName, " +
|
|
|
|
" d.dept, " +
|
|
|
|
" d.job, " +
|
|
" d.job_name AS jobName " +
|
|
" d.job_name AS jobName " +
|
|
" FROM " +
|
|
" FROM " +
|
|
" wlyy_doctor d " +
|
|
|
|
|
|
" wlyy_admin_team_member m " +
|
|
|
|
" JOIN wlyy_doctor d ON d. CODE = m.doctor_code " +
|
|
" WHERE " +
|
|
" WHERE " +
|
|
" d.`level` = '4' " +
|
|
|
|
" AND `status` = 1";
|
|
|
|
|
|
|
|
|
|
" m.team_id = ( " +
|
|
|
|
" SELECT " +
|
|
|
|
" t.id " +
|
|
|
|
" FROM " +
|
|
|
|
" wlyy_admin_team t " +
|
|
|
|
" WHERE " +
|
|
|
|
" t.leader_code = '"+doctor+"' " +
|
|
|
|
" )";
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> findHealthAssistantPatientCount()throws Exception{
|
|
|
|
List<Map<String,Object>> list = findHealthAssistant();
|
|
|
|
|
|
public List<Map<String,Object>> findHealthAssistantPatientCount(String doctor)throws Exception{
|
|
|
|
List<Map<String,Object>> list = findHealthAssistant(doctor);
|
|
if(list!=null&&list.size()>0){
|
|
if(list!=null&&list.size()>0){
|
|
for(Map<String,Object> map:list){
|
|
for(Map<String,Object> map:list){
|
|
map.put("count",getAssistantPatientCount(map.get("code").toString()));
|
|
map.put("count",getAssistantPatientCount(map.get("code").toString()));
|
|
@ -101,6 +109,19 @@ public class SpecialistService extends BaseService {
|
|
return 0L;
|
|
return 0L;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public JSONObject findPatientNoAssistant(String doctor,Integer page,Integer size)throws Exception{
|
|
|
|
Map<String,Object> param = new HashedMap();
|
|
|
|
param.put("doctor",doctor);
|
|
|
|
param.put("page",page);
|
|
|
|
param.put("size",size);
|
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl+"svr-specialist/findPatientNoAssistant",param);
|
|
|
|
JSONObject rs = new JSONObject(response.getContent());
|
|
|
|
if("succes".equals(rs.getString("message"))){
|
|
|
|
return rs;
|
|
|
|
}
|
|
|
|
return rs;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<SignPatientLabel> findLabelbyType(String type,Long teamCode){
|
|
public List<SignPatientLabel> findLabelbyType(String type,Long teamCode){
|
|
//自定义标签
|
|
//自定义标签
|