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

修复学科异常bug

parent 0e120f17
...@@ -91,10 +91,15 @@ public class ConvertMessageMapToBean { ...@@ -91,10 +91,15 @@ 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"))) {
try{
DianjiaoguanSubjectType dType = DianjiaoguanSubjectType.getByCode(Integer.valueOf(map.get("SXMASTERSUBJECT").toString())); DianjiaoguanSubjectType dType = DianjiaoguanSubjectType.getByCode(Integer.valueOf(map.get("SXMASTERSUBJECT").toString()));
if(null != dType) if(null != dType) {
authUserInfo.setTeacherSubject(SubjectType.getByCode(dType.getOperationCode())); 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());
if(StringUtils.isNotBlank(map.get("SXSCHOOL_NAME"))) if(StringUtils.isNotBlank(map.get("SXSCHOOL_NAME")))
......
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