|
@@ -126,13 +126,11 @@ public class LaserService {
|
|
|
if(StringUtils.isNotBlank(param.getChildName())){
|
|
|
List<Camera> cameraList = cameraService.getLikeChildName(param.getChildName());
|
|
|
List<String> snCodes = cameraList.stream().map(Camera::getSnCode).collect(Collectors.toList());
|
|
|
- if(snCodes.size() >0){
|
|
|
- if(param.getSnCodes() != null && param.getSnCodes().size() >0){
|
|
|
- List<String> list3 = param.getSnCodes().stream().filter(snCodes::contains).collect(Collectors.toList());
|
|
|
- param.setSnCodes(list3);
|
|
|
- }else {
|
|
|
- param.setSnCodes(snCodes);
|
|
|
- }
|
|
|
+ if(param.getSnCodes() != null && param.getSnCodes().size() >0){
|
|
|
+ List<String> list3 = param.getSnCodes().stream().filter(snCodes::contains).collect(Collectors.toList());
|
|
|
+ param.setSnCodes(list3);
|
|
|
+ }else {
|
|
|
+ param.setSnCodes(snCodes);
|
|
|
}
|
|
|
}
|
|
|
BeanUtils.copyProperties(param,newParam);
|