Commit d7a6ffb7 authored by 喻春霖's avatar 喻春霖

修复学科异常bug

parent 0e120f17
...@@ -91,9 +91,14 @@ public class ConvertMessageMapToBean { ...@@ -91,9 +91,14 @@ public class ConvertMessageMapToBean {
authUserInfo.setTeacherGrade(GradeLevel.getByName(type.name())); authUserInfo.setTeacherGrade(GradeLevel.getByName(type.name()));
} }
if(StringUtils.isNotBlank(map.get("SXMASTERSUBJECT"))) { if(StringUtils.isNotBlank(map.get("SXMASTERSUBJECT"))) {
DianjiaoguanSubjectType dType = DianjiaoguanSubjectType.getByCode(Integer.valueOf(map.get("SXMASTERSUBJECT").toString())); try{
if(null != dType) DianjiaoguanSubjectType dType = DianjiaoguanSubjectType.getByCode(Integer.valueOf(map.get("SXMASTERSUBJECT").toString()));
authUserInfo.setTeacherSubject(SubjectType.getByCode(dType.getOperationCode())); if(null != dType) {
authUserInfo.setTeacherSubject(SubjectType.getByCode(dType.getOperationCode()));
}
}catch (Exception e){
e.printStackTrace();
}
} }
if(StringUtils.isNotBlank(map.get("SXSCHOOLID"))) if(StringUtils.isNotBlank(map.get("SXSCHOOLID")))
authUserInfo.setTeacherSchoolId(map.get("SXSCHOOLID").toString()); authUserInfo.setTeacherSchoolId(map.get("SXSCHOOLID").toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment