ソースを参照

报告详情 拼接域名

tags/v1.1.0^2
wanghaoran 1年前
コミット
405db06e5f
1個のファイルの変更12行の追加0行の削除
  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 ファイルの表示

@@ -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);

読み込み中…
キャンセル
保存