| | |
| | | } |
| | | |
| | | /** |
| | | * 查询区域菜单树-带层级 |
| | | * @param parentCode |
| | | * @param obj |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectAttAdBaseTree") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "区划编号", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "name", value = "区划名称", paramType = "query", dataType = "string") |
| | | }) |
| | | @ApiOperation(value = "加载树列表", notes = "传入code") |
| | | public R selectAttAdBaseTree(String parentCode, @ApiIgnore @RequestParam Map<String, Object> obj) { |
| | | String code = obj.get("code").toString(); |
| | | if (code.substring(0,4).indexOf("00") > -1) { |
| | | obj.put("code",code.substring(0,2)); |
| | | } else if (code.substring(0,6).indexOf("00") > -1) { |
| | | obj.put("code",code.substring(0,4)); |
| | | } |
| | | // 查询并返回 |
| | | return R.data(attAdBaseService.selectAttAdBaseTree(parentCode, obj)); |
| | | } |
| | | |
| | | /** |
| | | * 懒加载列表 懒加载待优化 |
| | | */ |
| | | @GetMapping("/lazy-tree") |