| | |
| | | import com.java110.intf.common.IFileRelInnerServiceSMO; |
| | | import com.java110.intf.user.IQuestionAnswerInnerServiceSMO; |
| | | import com.java110.user.bmo.questionAnswer.IGetQuestionAnswerBMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | List<QuestionAnswerDto> questionAnswerDtos = new ArrayList<>(); |
| | | if (count > 0) { |
| | | List<QuestionAnswerDto> questionAnswers = questionAnswerInnerServiceSMOImpl.queryQuestionAnswers(questionAnswerDto); |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | for (QuestionAnswerDto questionAnswer : questionAnswers) { |
| | | List<String> fileUrls = new ArrayList<>(); |
| | | FileRelDto fileRelDto = new FileRelDto(); |
| | |
| | | List<FileRelDto> fileRelDtos = fileRelInnerServiceSMOImpl.queryFileRels(fileRelDto); |
| | | if (fileRelDtos != null && fileRelDtos.size() > 0) { |
| | | for (FileRelDto fileRel : fileRelDtos) { |
| | | fileUrls.add(imgUrl + fileRel.getFileRealName()); |
| | | fileUrls.add(fileRel.getFileRealName()); |
| | | } |
| | | } |
| | | questionAnswer.setFileUrls(fileUrls); |
| | | questionAnswerDtos.add(questionAnswer); |
| | | } |
| | | } else { |