mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-30 20:17:59 +08:00
打印日志update
This commit is contained in:
@@ -175,7 +175,6 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
// public int deletePileConnectorInfoByIds(Integer[] ids) {
|
// public int deletePileConnectorInfoByIds(Integer[] ids) {
|
||||||
// return pileConnectorInfoMapper.deletePileConnectorInfoByIds(ids);
|
// return pileConnectorInfoMapper.deletePileConnectorInfoByIds(ids);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int deletePileConnectorInfoByPileSnList(List<String> pileSnList) {
|
public int deletePileConnectorInfoByPileSnList(List<String> pileSnList) {
|
||||||
return pileConnectorInfoMapper.deletePileConnectorInfoByPileSnList(pileSnList);
|
return pileConnectorInfoMapper.deletePileConnectorInfoByPileSnList(pileSnList);
|
||||||
@@ -203,7 +202,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
PileStationVO stationInfo = pileStationInfoService.getStationInfo(p.getStationId());
|
PileStationVO stationInfo = pileStationInfoService.getStationInfo(p.getStationId());
|
||||||
if (StringUtils.isNotBlank(stationInfo.getQrcodePrefix())) {
|
if (StringUtils.isNotBlank(stationInfo.getQrcodePrefix())) {
|
||||||
p.setConnectorQrCodeUrl(stationInfo.getQrcodePrefix());
|
p.setConnectorQrCodeUrl(stationInfo.getQrcodePrefix());
|
||||||
}else {
|
} else {
|
||||||
p.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(p.getPileConnectorCode()));
|
p.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(p.getPileConnectorCode()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -288,6 +287,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 充电桩枪口的二维码
|
* 充电桩枪口的二维码
|
||||||
|
*
|
||||||
* @param pileConnectorCode 枪口编号 如枪口编号为空,则返回前缀 https://api.jsowellcloud.com/app-xcx-h5/pile/connectorDetail/
|
* @param pileConnectorCode 枪口编号 如枪口编号为空,则返回前缀 https://api.jsowellcloud.com/app-xcx-h5/pile/connectorDetail/
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -515,16 +515,14 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int updateConnectorStatus(String pileConnectorCode, String status) {
|
public int updateConnectorStatus(String pileConnectorCode, String status) {
|
||||||
// log.info("更新枪口状态 pileConnectorCode:{}, status:{}", pileConnectorCode, status);
|
|
||||||
int num = 0;
|
int num = 0;
|
||||||
if (StringUtils.isBlank(pileConnectorCode) || StringUtils.isBlank(status)) {
|
if (StringUtils.isBlank(pileConnectorCode) || StringUtils.isBlank(status)) {
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
String redisKey = CacheConstants.PILE_CONNECTOR_STATUS_KEY + pileConnectorCode;
|
String redisKey = CacheConstants.PILE_CONNECTOR_STATUS_KEY + pileConnectorCode;
|
||||||
String redisStatus = redisCache.getCacheObject(redisKey);
|
String redisStatus = redisCache.getCacheObject(redisKey);
|
||||||
log.info("更新枪口状态-枪口编号:{}, 缓存状态:{}, 传来的状态:{}, 状态描述:{}",pileConnectorCode, redisStatus, status, PileConnectorDataBaseStatusEnum.getStatusDescription(status));
|
log.info("更新枪口状态-枪口编号:{}, 缓存状态:{}, 传来的状态:{}, 状态描述:{}", pileConnectorCode, redisStatus, status, PileConnectorDataBaseStatusEnum.getStatusDescription(status));
|
||||||
if (!StringUtils.equals(redisStatus, status)) {
|
if (!StringUtils.equals(redisStatus, status)) {
|
||||||
// log.info("更新枪口状态 枪口编号:{}, 缓存状态:{}, 状态值:{}, 状态:{}", pileConnectorCode, redisStatus, status, PileConnectorDataBaseStatusEnum.getStatusDescription(status));
|
|
||||||
String pileSn = pileConnectorCode.substring(0, pileConnectorCode.length() - 2);
|
String pileSn = pileConnectorCode.substring(0, pileConnectorCode.length() - 2);
|
||||||
// 只修改一个枪口的状态
|
// 只修改一个枪口的状态
|
||||||
num = pileConnectorInfoMapper.updateConnectorStatus(pileConnectorCode, status);
|
num = pileConnectorInfoMapper.updateConnectorStatus(pileConnectorCode, status);
|
||||||
@@ -612,6 +610,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据站点id查询快、慢充设备数量
|
* 根据站点id查询快、慢充设备数量
|
||||||
|
*
|
||||||
* @param stationId
|
* @param stationId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user