|
|
@ -759,6 +759,8 @@ public class IcTripReportRecordServiceImpl extends BaseServiceImpl<IcTripReportR |
|
|
|
// 7天旅居史字典
|
|
|
|
Result<List<SysDictDataDTO>> sojournMapRes = adminOpenFeignClient.dictDataList(DictTypeEnum.SOJOURN_HISTORY.getCode()); |
|
|
|
Map<String, String> sojournMap = sojournMapRes.success() && CollectionUtils.isNotEmpty(sojournMapRes.getData()) ? sojournMapRes.getData().stream().collect(Collectors.toMap(SysDictDataDTO::getDictValue, SysDictDataDTO::getDictLabel)) : new HashMap<>(); |
|
|
|
//交通方式
|
|
|
|
Map<String, String> trafficTypeMap = adminOpenFeignClient.dictMap(DictTypeEnum.TRAFFIC_TYPE.getCode()).getData(); |
|
|
|
|
|
|
|
// 隔离状态字典
|
|
|
|
Map<String, String> isolateMap = new HashMap<>(); |
|
|
@ -768,6 +770,7 @@ public class IcTripReportRecordServiceImpl extends BaseServiceImpl<IcTripReportR |
|
|
|
result.getList().forEach(l -> { |
|
|
|
l.setIsolateTypeName(isolateMap.get(l.getIsolateType())); |
|
|
|
l.setSojournHistoryName(sojournMap.get(l.getSojournHistory())); |
|
|
|
l.setTrafficTypeName(trafficTypeMap.containsKey(l.getTrafficType()) ? trafficTypeMap.get(l.getTrafficType()) : "无"); |
|
|
|
}); |
|
|
|
} |
|
|
|
return result; |
|
|
|