searchKey = "";
}
condition.put("searchKey", searchKey);
int count = dataMatrixService.getCount(condition);
Paginator paginator = new Paginator();
paginator.setItems(count);
paginator.setPage(pageIndex);
condition.put("offset", paginator.getOffset());
condition.put("length", paginator.getLength());
List<DataMatrix> matrixs = new ArrayList<DataMatrix>();
if ((null != matrixId) && (matrixId != 0l)) {
DataMatrix matrix = dataMatrixService.findById(matrixId);
matrixs.add(matrix);
paginator.setItems(1);
paginator.setPage(0);
searchKey = String.valueOf(matrixId); // 定义为新的searchKey
} else if (StringUtils.isNotEmpty(groupKey)) {
DataMatrix matrix = dataMatrixService.findByGroupKey(groupKey);
matrixs.add(matrix);
paginator.setItems(1);
paginator.setPage(0);
searchKey = String.valueOf(groupKey); // 定义为新的searchKey
} else {
matrixs = dataMatrixService.listByCondition(condition);
}