|
|
@@ -64,12 +64,12 @@ public class DelNoRealnameSMD
|
|
64
|
64
|
List<Map<String,Object>> smdlist=RCPService.getBaseService().getMapList(sql);
|
|
65
|
65
|
if (smdlist != null && !smdlist.isEmpty()) {
|
|
66
|
66
|
String sn = String.valueOf(smdlist.get(0).get("sn"));
|
|
67
|
|
- long sevenDays = 1 * 24 * 60 * 60 * 1000;
|
|
|
67
|
+ long between = 12 * 60 * 60 * 1000;
|
|
68
|
68
|
sql = "select devid,lastcntm from device" + Long.parseLong(sn) % 32 + " where devid='" + sn + "' ";
|
|
69
|
69
|
|
|
70
|
70
|
List<Map<String, Object>> devlist = RCPService.getMifiService().getMapList(sql);
|
|
71
|
71
|
long lastcntm = Long.parseLong(devlist.get(0).get("lastcntm").toString());
|
|
72
|
|
- if (devlist != null && !devlist.isEmpty() && System.currentTimeMillis() - lastcntm < sevenDays) {
|
|
|
72
|
+ if (devlist != null && !devlist.isEmpty() && System.currentTimeMillis() - lastcntm < between) {
|
|
73
|
73
|
|
|
74
|
74
|
} else {
|
|
75
|
75
|
if (devlist != null && !devlist.isEmpty()) {
|
|
|
@@ -81,7 +81,7 @@ public class DelNoRealnameSMD
|
|
81
|
81
|
}
|
|
82
|
82
|
}
|
|
83
|
83
|
}
|
|
84
|
|
- logger.info("未实名的卡数:"+norealnamesimsize+"==>需要删除1天没有上线的设备卡数量:"+delsmdsize);
|
|
|
84
|
+ logger.info("未实名的卡数:"+norealnamesimsize+"==>需要删除12小时没有上线的设备卡数量:"+delsmdsize);
|
|
85
|
85
|
if (iccidbuilder.length()>0){
|
|
86
|
86
|
String delsql = "delete from smd where iccid in ("+iccidbuilder.substring(0,iccidbuilder.length()-1)+")";
|
|
87
|
87
|
logger.info(delsmdsize+"==>"+delsql);
|