mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-08 20:10:16 +08:00
update
This commit is contained in:
@@ -64,6 +64,7 @@ public class JumpController extends BaseController {
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 针对汇鑫大厦的用户,自动加入集团中
|
||||||
private void addMember2MemberGroup(String memberId, PileConnectorVO vo) {
|
private void addMember2MemberGroup(String memberId, PileConnectorVO vo) {
|
||||||
if (vo == null || StringUtils.isBlank(memberId)) {
|
if (vo == null || StringUtils.isBlank(memberId)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -696,6 +696,12 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
|||||||
int slowFree = 0; // 慢充空闲数
|
int slowFree = 0; // 慢充空闲数
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(connectorList)) {
|
if (CollectionUtils.isNotEmpty(connectorList)) {
|
||||||
|
// 批量查询redis中的枪口状态
|
||||||
|
List<String> redisKeyList = connectorList.stream()
|
||||||
|
.map(x -> CacheConstants.PILE_CONNECTOR_STATUS_KEY + x.getPileConnectorCode())
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
List<String> statusList = redisCache.multiGet(redisKeyList);
|
||||||
|
|
||||||
for (ConnectorInfoVO connectorVO : connectorList) {
|
for (ConnectorInfoVO connectorVO : connectorList) {
|
||||||
String redisKey = CacheConstants.PILE_CONNECTOR_STATUS_KEY + connectorVO.getPileConnectorCode();
|
String redisKey = CacheConstants.PILE_CONNECTOR_STATUS_KEY + connectorVO.getPileConnectorCode();
|
||||||
String status = redisCache.getCacheObject(redisKey);
|
String status = redisCache.getCacheObject(redisKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user