|
@ -87,6 +87,8 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
|
|
|
@Autowired
|
|
|
private DictDoctorDutyService dictDoctorDutyService;
|
|
|
@Autowired
|
|
|
private DictHospitalDeptDao dictHospitalDeptDao;
|
|
|
@Value("${wechat.flag}")
|
|
|
private boolean flag;
|
|
|
|
|
@ -497,6 +499,11 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
hospitalIdList.remove(baseDoctorHospitalDO.getId());
|
|
|
}
|
|
|
baseDoctorHospitalDO.setDoctorCode(baseDoctorDO.getId());
|
|
|
String deptCode = baseDoctorHospitalDO.getDeptCode();
|
|
|
DictHospitalDeptDO dictHospitalDeptDO = dictHospitalDeptDao.findByCode(deptCode);
|
|
|
if (dictHospitalDeptDO!=null){
|
|
|
baseDoctorHospitalDO.setDeptName(dictHospitalDeptDO.getName());
|
|
|
}
|
|
|
baseDoctorHospitalService.save(baseDoctorHospitalDO);
|
|
|
}
|
|
|
} catch (IOException e) {
|