|
@ -1772,6 +1772,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
rs.put("outpatientCount",0);
|
|
rs.put("outpatientCount",0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//协同门诊量
|
|
|
|
Integer coordinationCout = outpatientDao.countByDoctorAndStatusAndOutpatientType(doctor,"2","2");
|
|
|
|
rs.put("coordinationCout",coordinationCout);
|
|
|
|
|
|
if(StringUtils.isNotBlank(withWork)&&"1".equals(withWork)){
|
|
if(StringUtils.isNotBlank(withWork)&&"1".equals(withWork)){
|
|
List<WlyyDoctorWorkTimeVO> times = findDoctorWorkTime(doctor);
|
|
List<WlyyDoctorWorkTimeVO> times = findDoctorWorkTime(doctor);
|
|
rs.put("workTime",times);
|
|
rs.put("workTime",times);
|
|
@ -1825,7 +1829,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
if(scoreList!=null&&scoreList.size()>0){
|
|
if(scoreList!=null&&scoreList.size()>0){
|
|
|
|
|
|
Set<String> datelist = new HashSet<>();
|
|
|
|
|
|
// Set<String> datelist = new HashSet<>();
|
|
|
|
|
|
HashMap<String,List<Map<String,Object>>> waitinglist = new HashMap<>();
|
|
HashMap<String,List<Map<String,Object>>> waitinglist = new HashMap<>();
|
|
|
|
|
|
@ -1854,6 +1858,60 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
return rs;
|
|
return rs;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Map<String,Object> findDoctorBaseInfo(String doctor){
|
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findOne(doctor);
|
|
|
|
|
|
|
|
Map<String,Object> rs = new HashedMap();
|
|
|
|
if(doctorDO!=null){
|
|
|
|
rs.put("doctor",doctor);
|
|
|
|
rs.put("doctor",doctorDO.getName());
|
|
|
|
rs.put("jobTitleCode",doctorDO.getJobTitleCode());
|
|
|
|
rs.put("jobTitleName",doctorDO.getJobTitleName());
|
|
|
|
rs.put("chargeType",doctorDO.getChargeType());
|
|
|
|
rs.put("photo",doctorDO.getPhoto());
|
|
|
|
rs.put("consultStatus",doctorDO.getConsultStatus());
|
|
|
|
rs.put("outpatientType",doctorDO.getOutpatientType());
|
|
|
|
rs.put("expertise",doctorDO.getExpertise());
|
|
|
|
rs.put("introduce",doctorDO.getIntroduce());
|
|
|
|
rs.put("consultStatus",doctorDO.getConsultStatus());// 咨询在线状态
|
|
|
|
|
|
|
|
//机构科室信息
|
|
|
|
List<BaseDoctorHospitalDO> hospitalDOs = baseDoctorHospitalDao.findByDoctorCode(doctorDO.getId());
|
|
|
|
if(hospitalDOs!=null&&hospitalDOs.size()>0){
|
|
|
|
rs.put("hospital",hospitalDOs.get(0));
|
|
|
|
BaseOrgDO org = baseOrgDao.findByCode(hospitalDOs.get(0).getOrgCode());
|
|
|
|
rs.put("winNo",org.getWinNo());
|
|
|
|
rs.put("deptName",hospitalDOs.get(0).getDeptName());
|
|
|
|
rs.put("deptCode",hospitalDOs.get(0).getDeptCode());
|
|
|
|
}else{
|
|
|
|
rs.put("hospital",null);
|
|
|
|
rs.put("winNo",null);
|
|
|
|
rs.put("deptName",null);
|
|
|
|
rs.put("deptCode",null);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//医生角色
|
|
|
|
String sql = "SELECT " +
|
|
|
|
" t. CODE AS roleCode, " +
|
|
|
|
" t. NAME AS roleName" +
|
|
|
|
" FROM " +
|
|
|
|
" base_doctor_role r " +
|
|
|
|
" JOIN base_doctor_role_dict t ON t.`code` = r.role_code " +
|
|
|
|
" WHERE " +
|
|
|
|
" r.doctor_code = '"+doctor+"'";
|
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
|
|
|
|
|
if(list!=null&&list.size()>0){
|
|
|
|
rs.put("roles",list);
|
|
|
|
}else{
|
|
|
|
rs.put("roles",null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return rs;
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 居民取消复诊或者医生拒绝接诊
|
|
* 居民取消复诊或者医生拒绝接诊
|