|
@@ -15,6 +15,7 @@ import cn.com.qmth.examcloud.core.basic.dao.entity.StudentEntity;
|
|
|
import cn.com.qmth.examcloud.core.basic.service.StudentService;
|
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.StudentInfo;
|
|
|
import cn.com.qmth.examcloud.core.basic.service.cache.StudentCache;
|
|
|
+import cn.com.qmth.examcloud.support.filestorage.FileStorageUtil;
|
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import com.google.common.collect.Lists;
|
|
@@ -299,7 +300,13 @@ public class StudentCloudServiceProvider extends ControllerSupport implements St
|
|
|
|
|
|
Map<Long, StudentBean> studentMaps = new HashMap<>();
|
|
|
for (Map.Entry<Long, StudentEntity> entry : students.entrySet()) {
|
|
|
- studentMaps.put(entry.getKey(), toStudentBean(entry.getValue()));
|
|
|
+ StudentBean studentBean = toStudentBean(entry.getValue());
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(studentBean.getPhotoPath())) {
|
|
|
+ studentBean.setPhotoPath(FileStorageUtil.realPath(FileStorageUtil.getIntactPath("student_base_photo", studentBean.getPhotoPath())));
|
|
|
+ }
|
|
|
+
|
|
|
+ studentMaps.put(entry.getKey(), studentBean);
|
|
|
}
|
|
|
|
|
|
GetStudentMapsResp resp = new GetStudentMapsResp();
|