mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-28 23:15:11 +08:00
Merge branch 'dev-new' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev-new
This commit is contained in:
@@ -891,24 +891,25 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
||||
if(CollectionUtils.isEmpty(list)){
|
||||
return null;
|
||||
}
|
||||
|
||||
for (PersonalPileInfoVO personalPileInfoVO : list) {
|
||||
String pileSn = personalPileInfoVO.getPileSn();
|
||||
|
||||
// 获取桩状态
|
||||
Map<String, String> pileStatus = pileConnectorInfoService.getPileStatus(Lists.newArrayList(pileSn));
|
||||
personalPileInfoVO.setPileStatus(pileStatus.get(pileSn));
|
||||
personalPileInfoVO.setPileStatusDesc(PileStatusEnum.getStatusDesc(pileStatus.get(pileSn)));
|
||||
if (StringUtils.equals("1", personalPileInfoVO.getType())) {
|
||||
personalPileInfoVO.setType("管理员用户");
|
||||
}else {
|
||||
personalPileInfoVO.setType("普通用户");
|
||||
}
|
||||
if (StringUtils.equals("1", personalPileInfoVO.getSpeedType())) {
|
||||
personalPileInfoVO.setSpeedType("快充");
|
||||
}else {
|
||||
personalPileInfoVO.setSpeedType("慢充");
|
||||
}
|
||||
// if (StringUtils.equals(Constants.ONE, personalPileInfoVO.getType())) {
|
||||
// personalPileInfoVO.setType("管理员用户");
|
||||
// }else {
|
||||
// personalPileInfoVO.setType("普通用户");
|
||||
// }
|
||||
personalPileInfoVO.setType(StringUtils.equals(Constants.ONE, personalPileInfoVO.getType()) ? "管理员用户" : "普通用户");
|
||||
// if (StringUtils.equals(Constants.ONE, personalPileInfoVO.getSpeedType())) {
|
||||
// personalPileInfoVO.setSpeedType("快充");
|
||||
// }else {
|
||||
// personalPileInfoVO.setSpeedType("慢充");
|
||||
// }
|
||||
personalPileInfoVO.setSpeedType(StringUtils.equals(Constants.ONE, personalPileInfoVO.getSpeedType()) ? "快充" : "慢充");
|
||||
personalPileInfoVO.setConnectionType(StringUtils.isNotBlank(personalPileInfoVO.getDeviceId()) ? "BT" : "4G");
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
||||
List<String> noCachePileSnList = pileSnList.stream()
|
||||
.filter(pileSn -> !collect.containsKey(pileSn))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// TODO 未从缓存获取到的去数据库查询并放缓存
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user