Browse Source

Merge branch 'dev' of trick9191/patient-co-management into dev

trick9191 7 năm trước cách đây
mục cha
commit
cb2f2c95a7

+ 13 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/scheme/DoctorSchemeService.java

@ -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;
    }