update 桩登录时更新sim卡信息方法

This commit is contained in:
Lemon
2023-09-15 10:55:14 +08:00
parent 77774f2895
commit dfe202777b
3 changed files with 4 additions and 2 deletions

View File

@@ -202,7 +202,8 @@ public class LoginRequestHandler extends AbstractHandler{
// 充电桩使用的sim卡把信息存库 // 充电桩使用的sim卡把信息存库
if (StringUtils.equals("00", internetConnection)) { if (StringUtils.equals("00", internetConnection)) {
try { try {
pileBasicInfoService.updatePileSimInfo(pileSn, iccid); // pileBasicInfoService.updatePileSimInfo(pileSn, iccid);
pileBasicInfoService.updatePileSimInfoV2(pileSn, iccid);
} catch (Exception e) { } catch (Exception e) {
log.error("更新充电桩sim卡信息失败", e); log.error("更新充电桩sim卡信息失败", e);
} }

View File

@@ -149,7 +149,7 @@ public interface IPileBasicInfoService {
// 更新充电桩的sim卡信息 // 更新充电桩的sim卡信息
void updatePileSimInfo(String pileSn, String iccid); void updatePileSimInfo(String pileSn, String iccid);
void updatePileSimInfoV2(String pileSn, String iccid);
/** /**
* 后管首页基本信息查询 * 后管首页基本信息查询
* *

View File

@@ -554,6 +554,7 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
return stringBuilder.toString(); return stringBuilder.toString();
} }
@Override
public void updatePileSimInfoV2(String pileSn, String iccid) { public void updatePileSimInfoV2(String pileSn, String iccid) {
// 清缓存 // 清缓存
cleanRedisCache(pileSn); cleanRedisCache(pileSn);