|
@@ -147,7 +147,11 @@ public class DictionaryService {
|
|
|
if (res.getCode() != ExceptionEnum.SUCCESS.getCode()) {
|
|
|
return res;
|
|
|
}
|
|
|
- return ListUtil.isBlank(res.getData())? res : ResultVoUtil.success(res.getData().subList((param.getPage() - 1) * 10,
|
|
|
- Math.min(res.getData().size(), param.getPage() * 10)));
|
|
|
+ if (ListUtil.isBlank(res.getData())) {
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ List<CodeName> list = res.getData().subList((param.getPage() - 1) * 10,
|
|
|
+ Math.min(res.getData().size(), param.getPage() * 10));
|
|
|
+ return ResultVoUtil.success(list);
|
|
|
}
|
|
|
}
|