|
@@ -237,6 +237,7 @@ public class CameraServiceImpl extends ServiceImpl<ICameraMapper, Camera> implem
|
|
|
List<Integer> errorIndexList = new ArrayList<>();
|
|
|
Set<String> wifiNameSet = new HashSet<>();
|
|
|
Integer index = 0;
|
|
|
+ List<String> snCodes = new ArrayList<>();
|
|
|
for (String wifiName : wifiNameList) {
|
|
|
index ++;
|
|
|
if(StringUtils.isBlank(wifiName)){
|
|
@@ -253,11 +254,16 @@ public class CameraServiceImpl extends ServiceImpl<ICameraMapper, Camera> implem
|
|
|
}
|
|
|
String[] split = wifiName.split("_");
|
|
|
String cameraPrefix = split[0] +"_";
|
|
|
-
|
|
|
+ String snCode = split[1];
|
|
|
if(!wifiNamePrefixList.contains(cameraPrefix)){
|
|
|
errorIndexList.add(index);
|
|
|
continue;
|
|
|
}
|
|
|
+ if(snCodes.contains(snCode)){
|
|
|
+ errorIndexList.add(index);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ snCodes.add(snCode);
|
|
|
wifiNameSet.add(wifiName);
|
|
|
}
|
|
|
return errorIndexList;
|