|
|
|
|
|
|
|
|
import com.tuoheng.common.utils.HttpUtils; |
|
|
import com.tuoheng.common.utils.HttpUtils; |
|
|
import com.tuoheng.common.utils.JacksonUtil; |
|
|
import com.tuoheng.common.utils.JacksonUtil; |
|
|
import com.tuoheng.common.utils.JsonResult; |
|
|
import com.tuoheng.common.utils.JsonResult; |
|
|
|
|
|
import com.tuoheng.common.utils.StringUtils; |
|
|
import com.tuoheng.system.utils.ShiroUtils; |
|
|
import com.tuoheng.system.utils.ShiroUtils; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.apache.commons.compress.utils.Lists; |
|
|
import org.apache.commons.compress.utils.Lists; |
|
|
|
|
|
|
|
|
getQuestionListDto.setEndTime(getQuestionListDto.getEndTime() + " 23:59:59"); |
|
|
getQuestionListDto.setEndTime(getQuestionListDto.getEndTime() + " 23:59:59"); |
|
|
} |
|
|
} |
|
|
List<QuestionListDto> questionListDtoList = questionMapper.getIndexQuestion(getQuestionListDto); |
|
|
List<QuestionListDto> questionListDtoList = questionMapper.getIndexQuestion(getQuestionListDto); |
|
|
questionListDtoList.forEach(it ->{ |
|
|
|
|
|
if(it.getHandlerImage() != null){ |
|
|
|
|
|
it.setHandlerImage(CommonConfig.imageURL + it.getHandlerImage()); |
|
|
|
|
|
|
|
|
for(QuestionListDto questionListDto : questionListDtoList){ |
|
|
|
|
|
String[] imgHanders = questionListDto.getHandlerImage().split(","); |
|
|
|
|
|
for (int i = 0; i < imgHanders.length; i++) { |
|
|
|
|
|
imgHanders[i] = CommonConfig.imageURL + imgHanders[i]; |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
String handerImg = StringUtils.join(imgHanders, ","); |
|
|
|
|
|
questionListDto.setHandlerImage(handerImg); |
|
|
|
|
|
} |
|
|
return questionListDtoList; |
|
|
return questionListDtoList; |
|
|
} |
|
|
} |
|
|
|
|
|
|