Commit 200efea7 by 杨林龙

优化假性离线查询

1 parent 16e74abe
......@@ -244,9 +244,9 @@ public class FakeOfflineService extends AbstractCommonService {
log.info("userId:" + ShieldContextHolder.getUserId() + ";deptIds:" + JSONUtil.toJsonStr(deptIds));
// 从白名单列表获取白名单设备号及其车架号
List<String> writeListVinList = whitelistSnMapper.getWriteListVin(deptIds);
writeListVinList.forEach(vin -> reasonMap.put(vin, FakeOfficeReasonEnum.WHITELIST.getCode()));
List<String> collectList = offlineVehicleNumMapList.stream().map(FakeOfficeMapDto::getVin).filter(writeListVinList::contains).collect(Collectors.toList());
collectList.forEach(vin -> reasonMap.put(vin, FakeOfficeReasonEnum.WHITELIST.getCode()));
log.info("假性离线白名单车架号 size:" + writeListVinList.size());
vinList.addAll(writeListVinList);
log.info("假性离线车架号集合大小size:" + vinList.size());
return vinList;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!