mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update
This commit is contained in:
@@ -168,7 +168,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
||||
/**
|
||||
* 批量删除充电桩枪口信息
|
||||
*
|
||||
* @param ids 需要删除的充电桩枪口信息主键
|
||||
* @param pileSnList 需要删除的充电桩枪口信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
// @Override
|
||||
@@ -515,14 +515,14 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
||||
*/
|
||||
@Override
|
||||
public int updateConnectorStatus(String pileConnectorCode, String status) {
|
||||
log.info("更新枪口状态 pileConnectorCode:{}, status:{}", pileConnectorCode, status);
|
||||
// log.info("更新枪口状态 pileConnectorCode:{}, status:{}", pileConnectorCode, status);
|
||||
int num = 0;
|
||||
if (StringUtils.isBlank(pileConnectorCode) || StringUtils.isBlank(status)) {
|
||||
return num;
|
||||
}
|
||||
String redisKey = CacheConstants.PILE_CONNECTOR_STATUS_KEY + pileConnectorCode;
|
||||
String redisStatus = redisCache.getCacheObject(redisKey);
|
||||
// log.info("修改充电桩枪口状态 缓存状态:{}, 传来的状态:{}", redisStatus, status);
|
||||
log.info("更新枪口状态 pileConnectorCode:{}, 缓存状态:{}, 传来的状态:{}",pileConnectorCode, redisStatus, status);
|
||||
if (!StringUtils.equals(redisStatus, status)) {
|
||||
log.info("更新枪口状态 枪口编号:{}, 缓存状态:{}, 状态值:{}, 状态:{}", pileConnectorCode, redisStatus, status, PileConnectorDataBaseStatusEnum.getStatusDescription(status));
|
||||
String pileSn = pileConnectorCode.substring(0, pileConnectorCode.length() - 2);
|
||||
|
||||
Reference in New Issue
Block a user