Compare commits
No commits in common. "d97c2c880dafa6e974246b30ac6b42d67b1c6b2b" and "23a13922ca111c3bd4d48db4731b5bcf0615f3b7" have entirely different histories.
d97c2c880d
...
23a13922ca
@ -37,10 +37,6 @@ public class TrafficCardService {
|
||||
// ICCID变更,关闭旧映射,创建新映射
|
||||
closeExistingMapping(activeMapping);
|
||||
createNewMapping(device.getDeviceid(), currentIccid);
|
||||
|
||||
// 重置MSISDN以强制更新SIM卡号
|
||||
// 换卡了必须重置这些内容,否则会显示旧卡号,后续的查询会出现问题
|
||||
resetCardMsisdn(currentIccid);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -105,12 +101,4 @@ public class TrafficCardService {
|
||||
private void closeExistingMapping(TrafficDeviceMapping mapping) {
|
||||
mappingMapper.endMapping(mapping.getId());
|
||||
}
|
||||
|
||||
public void resetCardMsisdn(String iccid) {
|
||||
TrafficCard card = trafficCardMapper.findByIccid(iccid);
|
||||
if (card != null && card.getMsisdn() != null && !card.getMsisdn().isEmpty()) {
|
||||
card.setMsisdn("");
|
||||
trafficCardMapper.updateCardInfo(card);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user