| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.common.R; |
| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Loc, BaseParam> pageParam = new PageParam<>(baseParam, Loc.class); |
| | | return R.ok().add(locService.page(pageParam, pageParam.buildWrapper(true))); |
| | | List<String> list = new ArrayList<>(); |
| | | list.add("row"); |
| | | list.add("col"); |
| | | list.add("lev"); |
| | | return R.ok().add(locService.page(pageParam, pageParam.buildWrapper(true,list))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:loc:list')") |
| | |
| | | if (Objects.isNull(param.getEndLev())) { |
| | | return R.error("终止层不能为空!!"); |
| | | } |
| | | return locService.initLocs(param); |
| | | return locService.initLocs(param, getLoginUserId()); |
| | | } |
| | | |
| | | } |