1.List<SmartCell> smartCellList = smartCellMapper.selectByExample(cellExample);
SmartCell[] smartCells = new SmartCell[smartCellList.size()];
Object[] objcets = smartCellList.toArray();
System.arraycopy(objcets, 0, smartCells, 0, smartCellList.size());
2.List<String> fullIds2 = new ArrayList<>();
String[] ownedLockerAndCellIdsArr = new String[fullIds2.size()];
for(int i=0;i<fullIds2.size();i++){
ownedLockerAndCellIdsArr[i] = fullIds2.get(i);
}