Ver código fonte

重构获取问题列表

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

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

@@ -141,17 +141,11 @@ public class QueryInspectionFilePageListService {
private List<InspectionFilePageListVo> buildInspectionFilePageListVoList(List<InspectionFileExtend> inspectionFileExtendList) {
Map<String, RoadInformation> roadMap = this.getRoadMap(inspectionFileExtendList);
Map<String, Dept> deptMap = this.getDeptMap(inspectionFileExtendList);
Map<String, QuestionType> questionTypeMap = this.getQuestionTypeMap();
// Map<String, QuestionType> questionTypeMap = this.getQuestionTypeMap();
List<InspectionFilePageListVo> inspectionFilePageListVoList = InspectionFileConverMapper.INSTANCE.fromInspectionFileExtendListToInspectionFilePageListVoList(inspectionFileExtendList);
QuestionType questionType;
RoadInformation road;
Dept dept;
for (InspectionFilePageListVo inspectionFilePageListVo : inspectionFilePageListVoList) {
questionType = questionTypeMap.get(inspectionFilePageListVo.getQuestionId());
if (null != questionType) {
inspectionFilePageListVo.setQuestionName(Integer.toString(questionType.getName()));
inspectionFilePageListVo.setQuestionContent(questionType.getContent());
}
road = roadMap.get(inspectionFilePageListVo.getRoadId());
dept = deptMap.get(inspectionFilePageListVo.getDeptId());
if (ObjectUtil.isNotNull(road)) {

Carregando…
Cancelar
Salvar