打印日志update

This commit is contained in:
2023-07-11 17:18:34 +08:00
parent b101ebca20
commit 1980c58bd5

View File

@@ -175,7 +175,6 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
// public int deletePileConnectorInfoByIds(Integer[] ids) {
// return pileConnectorInfoMapper.deletePileConnectorInfoByIds(ids);
// }
@Override
public int deletePileConnectorInfoByPileSnList(List<String> pileSnList) {
return pileConnectorInfoMapper.deletePileConnectorInfoByPileSnList(pileSnList);
@@ -288,6 +287,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
/**
* 充电桩枪口的二维码
*
* @param pileConnectorCode 枪口编号 如枪口编号为空,则返回前缀 https://api.jsowellcloud.com/app-xcx-h5/pile/connectorDetail/
* @return
*/
@@ -515,7 +515,6 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
*/
@Override
public int updateConnectorStatus(String pileConnectorCode, String status) {
// log.info("更新枪口状态 pileConnectorCode:{}, status:{}", pileConnectorCode, status);
int num = 0;
if (StringUtils.isBlank(pileConnectorCode) || StringUtils.isBlank(status)) {
return num;
@@ -524,7 +523,6 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
String redisStatus = redisCache.getCacheObject(redisKey);
log.info("更新枪口状态-枪口编号:{}, 缓存状态:{}, 传来的状态:{}, 状态描述:{}", pileConnectorCode, redisStatus, status, PileConnectorDataBaseStatusEnum.getStatusDescription(status));
if (!StringUtils.equals(redisStatus, status)) {
// log.info("更新枪口状态 枪口编号:{}, 缓存状态:{}, 状态值:{}, 状态:{}", pileConnectorCode, redisStatus, status, PileConnectorDataBaseStatusEnum.getStatusDescription(status));
String pileSn = pileConnectorCode.substring(0, pileConnectorCode.length() - 2);
// 只修改一个枪口的状态
num = pileConnectorInfoMapper.updateConnectorStatus(pileConnectorCode, status);
@@ -612,6 +610,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
/**
* 根据站点id查询快、慢充设备数量
*
* @param stationId
* @return
*/