|
|
@@ -160,10 +160,16 @@ public class CommonService extends BaseService<Map<String, Object>> {
|
|
|
* @author : 周兴
|
|
|
* @date : 2023/1/6 11:41
|
|
|
*/
|
|
|
- public ResponseResultVO<List<Map<String, Object>>> getDataKind(Map<String, Object> param) {
|
|
|
- // 获取系统基础数据
|
|
|
- List<Map<String, Object>> list = commonMapper.getDataKind(param);
|
|
|
- return ResponseResultUtil.success(list);
|
|
|
+ public ResponseResultVO<PageList<Map<String, Object>>> getDataKind(Map<String, Object> param) {
|
|
|
+ // 校验分页参数
|
|
|
+ if (param.get("pageSize") == null || param.get("currentPage") == null) {
|
|
|
+ return ResponseResultUtil.error(ResponseCodeEnum.OPERATE_FAIL, "请检查分页参数!");
|
|
|
+ }
|
|
|
+ // 分页参数赋值
|
|
|
+ param = this.getLimit(param);
|
|
|
+ return super.mergeListWithCount(param, commonMapper.getDataKind(param),
|
|
|
+ commonMapper.getDataKindCount(param));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|