|
@@ -194,10 +194,12 @@ public class RtkDeviceServiceImpl extends ServiceImpl<IRtkDeviceMapper, RtkDevic
|
|
|
errorIndex.add(index -3);
|
|
|
continue;
|
|
|
}
|
|
|
- RtkDevice rtkDevice2 = this.getByCameraSn(cameraSn);
|
|
|
- if(rtkDevice2 !=null){
|
|
|
- errorIndex.add(index -3);
|
|
|
- continue;
|
|
|
+ if(StringUtils.isNotBlank(cameraSn)){
|
|
|
+ RtkDevice rtkDevice2 = this.getByCameraSn(cameraSn);
|
|
|
+ if(rtkDevice2 !=null){
|
|
|
+ errorIndex.add(index -3);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
RtkDeviceInParam param = new RtkDeviceInParam(cameraSn,rtkTypeEnum.getCode(),rtkSn,rtkSgSn);
|
|
|
params.add(param);
|