mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-06 19:10:20 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -55,6 +55,14 @@ public interface IPileBasicInfoService {
|
||||
*/
|
||||
int updatePileBasicInfo(PileBasicInfo pileBasicInfo);
|
||||
|
||||
/**
|
||||
* 修改设备sim卡信息
|
||||
*
|
||||
* @param pileBasicInfo 设备管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updateSimInfo(PileBasicInfo pileBasicInfo);
|
||||
|
||||
/**
|
||||
* 批量删除设备管理
|
||||
*
|
||||
|
||||
@@ -173,6 +173,22 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
|
||||
return pileBasicInfoMapper.updatePileBasicInfo(pileBasicInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备sim卡信息
|
||||
*
|
||||
* @param pileBasicInfo 设备管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSimInfo(PileBasicInfo pileBasicInfo) {
|
||||
Long stationId = pileBasicInfo.getStationId();
|
||||
// 清缓存
|
||||
cleanRedisCache(pileBasicInfo.getSn());
|
||||
pileBasicInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
redisCache.deleteObject(CacheConstants.GET_PILE_LIST_BY_STATION_ID + stationId);
|
||||
return pileBasicInfoMapper.updatePileBasicInfo(pileBasicInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备管理
|
||||
*
|
||||
@@ -576,7 +592,7 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
|
||||
// sim信息已经存库了 然后更新充电桩的sim卡
|
||||
basicInfo.setSimId(simInfo.getId());
|
||||
}
|
||||
updatePileBasicInfo(basicInfo);
|
||||
updateSimInfo(basicInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -433,7 +433,7 @@ public class PileMerchantInfoServiceImpl implements IPileMerchantInfoService {
|
||||
if (merchant == null) {
|
||||
return null;
|
||||
}
|
||||
return merchant.getAppId();
|
||||
return merchant.getDelayMode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -962,5 +962,6 @@
|
||||
<if test="pileSn != null and pileSn != ''"> and t1.pile_sn = #{pileSn}</if>
|
||||
<if test="pileConnectorCode != null and pileConnectorCode != ''"> and t1.pile_connector_code = #{pileConnectorCode}</if>
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user