|
@ -1070,7 +1070,19 @@ public class DoctorSchemeService extends BaseService{
|
|
|
public Map<String,Object> getDoctorSwitchTrackPatient(String doctor){
|
|
|
DoctorSwitch doctorSwitch = doctorSwitchDao.findByDoctor(doctor);
|
|
|
Map<String,Object> rs = new HashedMap();
|
|
|
rs.put("alertPatientSwitch",doctorSwitch.getAlertPatientSwitch());
|
|
|
if(doctorSwitch!=null){
|
|
|
rs.put("alertPatientSwitch",doctorSwitch.getAlertPatientSwitch());
|
|
|
}else{
|
|
|
|
|
|
DoctorSwitch dw = new DoctorSwitch();
|
|
|
dw.setDoctor(doctor);
|
|
|
dw.setAlertPatientSwitch("0");
|
|
|
dw.setCreateTime(new Date());
|
|
|
doctorSwitchDao.save(dw);
|
|
|
|
|
|
rs.put("alertPatientSwitch","0");
|
|
|
}
|
|
|
|
|
|
return rs;
|
|
|
}
|
|
|
|