|
@ -378,57 +378,63 @@ public class RehabilitationManageService {
|
|
|
m = map.get(executeTime);
|
|
|
Map<String,Integer> family = null;
|
|
|
Map<String,Integer> specialist = null;
|
|
|
if((Integer)one.get("type")==1){//家庭医生
|
|
|
if(m.containsKey("family")){
|
|
|
family = (Map<String,Integer>)m.get("family");
|
|
|
}else{
|
|
|
family = new HashMap<>();
|
|
|
family.put("all",0);
|
|
|
family.put("finish",0);
|
|
|
}
|
|
|
if((Integer)one.get("status")==1){
|
|
|
family.put("finish",family.get("finish")+1);
|
|
|
}
|
|
|
family.put("all",family.get("all")+1);
|
|
|
m.put("family",family);
|
|
|
}else if((Integer)one.get("type")==2){//专科医生
|
|
|
if(one.get("type")!=null){
|
|
|
if((Integer)one.get("type")==1){//家庭医生
|
|
|
if(m.containsKey("family")){
|
|
|
family = (Map<String,Integer>)m.get("family");
|
|
|
}else{
|
|
|
family = new HashMap<>();
|
|
|
family.put("all",0);
|
|
|
family.put("finish",0);
|
|
|
}
|
|
|
if((Integer)one.get("status")==1){
|
|
|
family.put("finish",family.get("finish")+1);
|
|
|
}
|
|
|
family.put("all",family.get("all")+1);
|
|
|
m.put("family",family);
|
|
|
}else if((Integer)one.get("type")==2){//专科医生
|
|
|
|
|
|
if(m.containsKey("specialist")){
|
|
|
if(m.containsKey("specialist")){
|
|
|
|
|
|
specialist = (Map<String,Integer>)m.get("specialist");
|
|
|
}else{
|
|
|
specialist = new HashMap<>();
|
|
|
specialist.put("all",0);
|
|
|
specialist.put("finish",0);
|
|
|
}
|
|
|
if((Integer)one.get("status")==1){
|
|
|
specialist.put("finish",(specialist.get("finish"))+1);
|
|
|
specialist = (Map<String,Integer>)m.get("specialist");
|
|
|
}else{
|
|
|
specialist = new HashMap<>();
|
|
|
specialist.put("all",0);
|
|
|
specialist.put("finish",0);
|
|
|
}
|
|
|
if((Integer)one.get("status")==1){
|
|
|
specialist.put("finish",(specialist.get("finish"))+1);
|
|
|
}
|
|
|
specialist.put("all",(specialist.get("all"))+1);
|
|
|
m.put("specialist",specialist);
|
|
|
}
|
|
|
specialist.put("all",(specialist.get("all"))+1);
|
|
|
m.put("specialist",specialist);
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
m = new HashMap<>();
|
|
|
// m.put("specialist",new HashMap<String,Object>());
|
|
|
if((Integer)one.get("type")==1){//家庭医生
|
|
|
Map<String,Integer> family = new HashMap<>();
|
|
|
family.put("all",0);
|
|
|
family.put("finish",0);
|
|
|
if((Integer)one.get("status")==1){
|
|
|
family.put("finish",family.get("finish")+1);
|
|
|
}
|
|
|
family.put("all",family.get("all")+1);
|
|
|
m.put("family",family);
|
|
|
}else if((Integer)one.get("type")==2){//专科医生
|
|
|
Map<String,Integer> specialist = new HashMap<>();
|
|
|
specialist.put("all",0);
|
|
|
specialist.put("finish",0);
|
|
|
if((Integer)one.get("status")==1){
|
|
|
specialist.put("finish",specialist.get("finish")+1);
|
|
|
if(one.get("type")!=null){
|
|
|
if((Integer)one.get("type")==1){//家庭医生
|
|
|
Map<String,Integer> family = new HashMap<>();
|
|
|
family.put("all",0);
|
|
|
family.put("finish",0);
|
|
|
if((Integer)one.get("status")==1){
|
|
|
family.put("finish",family.get("finish")+1);
|
|
|
}
|
|
|
family.put("all",family.get("all")+1);
|
|
|
m.put("family",family);
|
|
|
}else if((Integer)one.get("type")==2){//专科医生
|
|
|
Map<String,Integer> specialist = new HashMap<>();
|
|
|
specialist.put("all",0);
|
|
|
specialist.put("finish",0);
|
|
|
if((Integer)one.get("status")==1){
|
|
|
specialist.put("finish",specialist.get("finish")+1);
|
|
|
}
|
|
|
specialist.put("all",specialist.get("all")+1);
|
|
|
m.put("specialist",specialist);
|
|
|
}
|
|
|
specialist.put("all",specialist.get("all")+1);
|
|
|
m.put("specialist",specialist);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//myTaskFlag,1:有自己任务,0:没有自己任务
|
|
|
if(StringUtils.isNotEmpty(doctorCode)){
|