mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-12 01:58:00 +08:00
打印日志update
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user