Commit cbfa7c0b by 杨林龙

1.7.0 开发区域查车接口--优化没有设备时候的提示

1 parent 9a0283c6
......@@ -54,6 +54,8 @@ public class RegionalSearchService {
List<RegionalSearchVO> regionalSearchVOList = vehicleService.getVehicleInfoListBySns(snList);
sw.stop();
log.info(sw.getLastTaskName() + "耗时:" + sw.getLastTaskTimeMillis() + "ms");
snList = regionalSearchVOList.stream().map(RegionalSearchVO::getSn).distinct().collect(Collectors.toList());
if (CollectionUtil.isEmpty(snList)) {
log.warn("该区域内不存在设备:" + JSONUtil.toJsonStr(search));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!