Quellcode durchsuchen

报告详情 拼接域名

tags/v1.1.0^2
wanghaoran vor 1 Jahr
Ursprung
Commit
405db06e5f
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. +12
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java

+ 12
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ReportServiceImpl.java Datei anzeigen

@@ -21,6 +21,7 @@ import com.tuoheng.admin.service.IThInspectionService;
import com.tuoheng.admin.utils.ImgTypeConvert;
import com.tuoheng.admin.utils.WordUtilsOld;
import com.tuoheng.common.common.BaseServiceImpl;
import com.tuoheng.common.config.CommonConfig;
import com.tuoheng.common.config.UploadFileConfig;
import com.tuoheng.common.exception.ServiceException;
import com.tuoheng.common.utils.DateUtils;
@@ -212,6 +213,17 @@ public class ReportServiceImpl extends BaseServiceImpl<ReportMapper, Report> imp
QuestionReportVO questionReportVO=new QuestionReportVO();
BeanUtils.copyProperties(question,questionReportVO);
List<QuestionHandleVO> questionHandleList = questionHandleMapper.getList(question.getId());
for (QuestionHandleVO questionHandleVO : questionHandleList) {
//拼接图片域名
if(null != questionHandleVO && StringUtils.isNotEmpty(questionHandleVO.getHandlerImage())){
String[] imgHanders = questionHandleVO.getHandlerImage().split(",");
for (int i = 0; i < imgHanders.length; i++) {
imgHanders[i] = CommonConfig.imageURL + imgHanders[i];
}
String handerImg = StringUtils.join(imgHanders, ",");
questionHandleVO.setHandlerImage(handerImg);
}
}
questionReportVO.setQuestionHandleList(questionHandleList);

questionReportVOList.add(questionReportVO);

Laden…
Abbrechen
Speichern