Commit eac2bf09 authored by Ryan Loong's avatar Ryan Loong

fix 点名未配置头像时缺少头像的bug

parent 23d6aaa5
......@@ -122,7 +122,7 @@ public class StudentInfoService {
}
increaseCallTimeByPrimaryKey(record.getId());
return record;
return updateHead(record);
}
/**
......@@ -279,6 +279,16 @@ public class StudentInfoService {
return list;
}
public static <T extends StudentInfo> T updateHead(T record) {
if (Objects.nonNull(record) && (StringUtils.isBlank(record.getHead()) || StringUtils.equalsIgnoreCase(record.getHead(), STRING_DEFAULT_HEAD))) {
record.setHead(URL_DEFAULT_HEAD);
}
return record;
}
// /**
// * 查询可以被点名的学生名单
// * @param classId 班级ID
......
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