Teacher teacherInSession = (Teacher) request.getSession().getAttribute("teacher"); teacher.setTecNum(teacherInSession.getTecNum());
if(teacher.getTecNum()==null || "".equals(teacher.getAcademy())) { Teacher teacherInSession = (Teacher) request.getSession().getAttribute("teacher"); teacher.setTecNum(teacherInSession.getTecNum()); }
	public void updateTeacherInfo(@ModelAttribute Teacher teacher,HttpServletRequest request, HttpServletResponse response) {		ResultMessage resultMessage = new ResultMessage();		Teacher teacherInSession = (Teacher) request.getSession().getAttribute("teacher");		teacher.setTecNum(teacherInSession.getTecNum());		boolean result = teacherInfoService.updateTeacherInfo(teacher);		if(result) {			resultMessage.setStatus(ResultMessage.SUCCESS);			resultMessage.setInfo("更新教师信息成功！");		}else {			resultMessage.setStatus(ResultMessage.FAILED);			resultMessage.setInfo("更新教师信息失败！");		}	}