Ver código fonte

修改任务详情中返回缩略图字段添加前缀

tags/v1.0.0^2
wanjing 1 ano atrás
pai
commit
06240d87a7
1 arquivos alterados com 4 adições e 1 exclusões
  1. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/query/QueryInspectionFilePageListByInspectionIdService.java

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspectionfile/query/QueryInspectionFilePageListByInspectionIdService.java Ver arquivo

@@ -12,6 +12,7 @@ import com.tuoheng.admin.enums.code.inspectionfile.QueryInspectionFilePageListBy
import com.tuoheng.admin.mapper.*;
import com.tuoheng.admin.request.inspectionfile.QueryInspectionFilePageListByInspectionIdRequest;
import com.tuoheng.admin.vo.InspectionFilePageListByInspectionIdVo;
import com.tuoheng.common.core.config.common.CommonConfig;
import com.tuoheng.common.core.utils.JsonResult;
import com.tuoheng.common.core.utils.StringUtils;
import lombok.extern.slf4j.Slf4j;
@@ -99,7 +100,8 @@ public class QueryInspectionFilePageListByInspectionIdService {
}

/**
* 1)、查找问题类型字段
* 1)、查找问题类型字段
* 2)、拼接缩略图路径
*
* @param inspectionFileList
* @return
@@ -119,6 +121,7 @@ public class QueryInspectionFilePageListByInspectionIdService {
questionName = questionType.getName();
inspectionFilePageListVo.setQuestionName(Integer.toString(questionName));
}
inspectionFilePageListVo.setFileThumbnail(CommonConfig.imageURL + inspectionFilePageListVo.getFileThumbnail());
}
return inspectionFilePageListVoList;
}

Carregando…
Cancelar
Salvar