|
@@ -42,6 +42,8 @@ public class QuestionnaireUserResultServiceImpl extends BaseServiceImpl<Long, Qu
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
@Autowired
|
|
|
private TeacherDao teacherDao;
|
|
|
+ @Autowired
|
|
|
+ private StudentDao studentDao;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, QuestionnaireUserResult> getDAO() {
|
|
@@ -104,15 +106,22 @@ public class QuestionnaireUserResultServiceImpl extends BaseServiceImpl<Long, Qu
|
|
|
nameList = MapUtil.convertMybatisMap(questionnaireUserResultDao.queryUserName(activeType));
|
|
|
}
|
|
|
Map<Integer, String> phoneList = MapUtil.convertMybatisMap(teacherDao.queryPhoneByIds(StringUtils.join(userIdList,",")));
|
|
|
+
|
|
|
+ Map<Integer, String> organNameMap = MapUtil.convertMybatisMap(studentDao.queryStudentOrganNameMap(userIdList));
|
|
|
for (Integer userId : userIdList) {
|
|
|
List<QuestionnaireUserResult> userResultList = userIdMap.get(userId);
|
|
|
if(userResultList != null && userResultList.size() > 0){
|
|
|
+ QuestionnaireUserResult result1 = userResultList.get(0);
|
|
|
Map<String,Object> jsonObject = new LinkedHashMap<>();
|
|
|
body.add("cooperationId");
|
|
|
+ body.add("organName");
|
|
|
+ body.add("createTime");
|
|
|
body.add("userId");
|
|
|
body.add("userName");
|
|
|
body.add("phone");
|
|
|
jsonObject.put("cooperationId",cooperationId);
|
|
|
+ jsonObject.put("organName",organNameMap.get(userId));
|
|
|
+ jsonObject.put("createTime",result1.getCreateTime());
|
|
|
jsonObject.put("userId",userId);
|
|
|
jsonObject.put("userName",nameList.get(userId));
|
|
|
jsonObject.put("phone",phoneList.get(userId));
|